/* Generated by harness/build-viewer-css.py from style.css and storybook.css: the shared photo viewer for pages that do not load those files. Do not edit by hand. */
/* from style.css */
.photo-modal{position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;}
.photo-modal.active{display: flex;}
.modal-overlay{position: absolute;
    inset: 0;
    background: var(--color-overlay);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.2s ease;}
.modal-overlay:hover{background: rgba(0, 0, 0, 0.85);}
.modal-content{position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;}
.modal-close{position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);}
.modal-close:hover{background: var(--color-primary);}
.modal-nav{position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);}
.modal-prev{left: -60px;}
.modal-next{right: -60px;}
.modal-nav:hover{background: var(--color-primary);}
.modal-image{max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);}
.modal-info{margin-top: var(--spacing-md);
    text-align: center;
    color: var(--color-surface);}
.modal-info h3{font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    display: none;
    /* Hide meaningless filename/hash titles */}
.modal-info p{font-size: 0.9rem;
    opacity: 0.8;}
.modal-page-indicator{position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;}
@media (max-width: 768px){.modal-nav{width: 44px;
        height: 44px;
        font-size: 1.8rem;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        opacity: 0.9;}.modal-prev{left: 8px;}.modal-next{right: 8px;}}
.modal-overlay{z-index: 1000;}
.modal-content{z-index: 1001;
    position: relative;}
#confirmModal.modal-overlay,#moveCollectionModal.modal-overlay,#tagModal.modal-overlay,#albumModal.modal-overlay{position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;}
#confirmModal.modal-overlay.hidden,#moveCollectionModal.modal-overlay.hidden,#tagModal.modal-overlay.hidden,#albumModal.modal-overlay.hidden{display: none !important;}
@media (max-width: 768px){.modal-content{max-width: 95vw;
        max-height: 85vh;}.modal-nav{width: 44px;
        height: 44px;
        font-size: 1.8rem;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        opacity: 0.9;
        display: flex;
        /* Ensure arrows are visible */}.modal-prev{left: 8px;}.modal-next{right: 8px;}}
.modal-image-wrapper{position: relative;
    overflow: hidden;}
.modal-image{transition: transform 0.3s ease-out, opacity 0.3s ease-out;}
.modal-image.swipe-left-enter{animation: slideInFromRight 0.3s ease-out forwards;}
.modal-image.swipe-right-enter{animation: slideInFromLeft 0.3s ease-out forwards;}
.modal-image.swipe-left-exit{animation: slideOutToLeft 0.3s ease-out forwards;}
.modal-image.swipe-right-exit{animation: slideOutToRight 0.3s ease-out forwards;}
.modal-close,.upload-modal .modal-close,.photo-modal .modal-close{min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 8px;
    cursor: pointer;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border-radius: var(--radius-full);
    transition: background 0.2s ease;}
.modal-close:hover{background: rgba(0, 0, 0, 0.6);}
@media (max-width: 768px){.upload-modal .modal-close,.upload-modal-content .modal-close{position: fixed !important;
        top: 10px;
        right: 10px;
        z-index: 10002;
        min-width: 44px;
        min-height: 44px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);}}
.modal-download-btn{display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    margin-top: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);}
.modal-download-btn:hover{background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);}
.modal-download-btn:active{transform: scale(0.98);}
@media (max-width: 768px){.modal-download-btn{display: block !important;
        width: calc(100% - 32px);
        margin: 12px 16px;
        z-index: 100;}.photo-modal .modal-content{max-height: 90vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;}.photo-modal .modal-info{max-height: 35vh;
        overflow-y: auto;
        padding-bottom: 16px;}.photo-modal .modal-download-btn{position: sticky;
        bottom: 0;
        width: calc(100% - 24px);
        margin: 8px 12px;
        flex-shrink: 0;
        background: linear-gradient(135deg, #3b82f6, #2563eb);}}
/* from storybook.css */
.storybook-page .photo-modal .modal-overlay{background: #39281ce8;}
.storybook-page .photo-modal .modal-content{display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: minmax(0, 1fr); gap: 16px; width: min(1120px, calc(100vw - 80px)); max-width: 1120px; max-height: 90dvh; align-items: center; background: #493326; padding: 44px 18px 18px; border: 5px solid #f3e9b2; border-radius: 24px;}
.storybook-page .photo-modal .modal-image-wrapper{min-width: 0; width: 100%; grid-column: 1;}
.storybook-page .photo-modal :is(.modal-image, .modal-video){max-height: 70dvh; width: 100%; object-fit: contain; border-radius: 16px; margin: 0;}
.storybook-page .photo-modal .modal-info{grid-column: 2; grid-row: 1; margin: 0; padding: 20px; background: #fffefb; color: #493326; border-radius: 18px; text-align: left; width: 100%; min-width: 0; min-height: 0; max-height: calc(90dvh - 76px); overflow-y: auto; overscroll-behavior: contain;}
.storybook-page .photo-modal .modal-info h3{display: block; color: #493326; overflow-wrap: anywhere; margin-bottom: 14px;}
.storybook-page .photo-modal .modal-info p{color: #736d79; opacity: 1; margin: 8px 0;}
.storybook-page .photo-modal .modal-close{top: 4px; right: 8px; width: 40px; height: 40px; background: transparent; color: white;}
.storybook-page .photo-modal .modal-page-indicator{top: 4px; background: transparent; padding: 4px 12px;}
.storybook-page .photo-modal .modal-prev{left: 24px;}
.storybook-page .photo-modal .modal-next{right: 330px;}
.storybook-page .photo-modal .modal-nav{background: #493326b8; color: white; border: 1px solid #fff8; width: 44px; height: 44px; z-index: 3;}
.storybook-page .modal-download-btn{position: static; bottom: auto; width: 100%; border: 0; background: #d9efff; color: #355875; border-radius: 12px; min-height: 44px; padding: 10px 12px; margin: 16px 0 0;}
@media (max-width: 1100px){.storybook-page .photo-modal .modal-content{grid-template-columns: minmax(0, 1fr) 260px;}.storybook-page .photo-modal .modal-next{right: 300px;}}
@media (max-width: 768px){.storybook-page .photo-modal .modal-content{display: block; width: calc(100vw - 20px); max-height: 92dvh; padding: 42px 10px 12px; overflow-y: auto;}.storybook-page .photo-modal :is(.modal-image, .modal-video){max-height: 43dvh;}.storybook-page .photo-modal .modal-info{padding: 16px; margin-top: 12px; max-height: none; overflow: visible;}.storybook-page .photo-modal .modal-close{position: sticky; float: right; top: 0; margin-top: -36px; margin-right: -2px; background: #493326;}.storybook-page .photo-modal .modal-prev{left: 14px; top: 24dvh;}.storybook-page .photo-modal .modal-next{right: 14px; top: 24dvh;}}
.storybook-page .timehut-dialog .modal-card > .modal-actions{flex: none; margin: 0; padding: 12px 20px; border-top: 1px solid #e9e3d8; background: #fffefb;}
.storybook-page .timehut-dialog .modal-actions{display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px;}
.storybook-page .upload-modal-content > .modal-close{position: sticky; float: right; top: 0; right: auto; margin-left: 10px; width: 44px; height: 44px; border-radius: 12px; background: #f5f0e5; color: #493326; z-index: 3;}
.storybook-page .upload-modal-content > .modal-close{position: absolute; float: none; right: 12px; top: 12px; margin: 0;}
.storybook-page .viewer-decoration{width: 100%; height: 66px; object-fit: contain; opacity: .9; margin: 14px 0 0;}
.storybook-page .viewer-tags{display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0;}
.storybook-page .viewer-tag{padding: 5px 10px; border-radius: 14px; background: #ffe0e7; color: #493326; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere;}
.storybook-page .viewer-tags{min-width: 0; max-width: 100%; max-height: 76px; overflow-y: auto; overscroll-behavior: contain; align-content: flex-start;}
.storybook-page .viewer-tags:empty{display: none;}
.storybook-page .viewer-media-status{padding: 10px 12px; margin: 12px 0; border-radius: 12px; background: #ffe1e3; color: #743e40; overflow-wrap: anywhere;}
.storybook-page .viewer-media-status[hidden]{display: none;}
.storybook-page .modal-info{min-width: 0;}
.storybook-page .toast-container.viewer-toast{position: static; inset: auto; transform: none; width: 100%; margin: 0 0 12px; z-index: auto;}
.storybook-page .toast-container.viewer-toast:empty{display: none;}
.storybook-page .toast-container.viewer-toast .toast{border-radius: 12px; box-shadow: none; white-space: normal; overflow-wrap: anywhere; line-height: 1.5;}
.storybook-page .viewer-tag:nth-child(even){background: #fff0b2;}
.storybook-page .viewer-overview-toggle{width: 100%; margin-top: 14px;}
.storybook-page .photo-modal .viewer-actions{display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; margin-top: 12px;}
.storybook-page .photo-modal .viewer-actions > button{min-width: 0; width: 100%; min-height: 48px; margin: 0; padding: 10px 8px; line-height: 1.5;}
.storybook-page .photo-modal .modal-content.viewer-overview-open{display: block; width: min(760px, calc(100vw - 80px));}
.storybook-page .viewer-overview-open > :not(.viewer-overview):not(.modal-close):not(.modal-page-indicator){display: none !important;}
.storybook-page .viewer-overview{max-height: calc(90dvh - 76px); overflow-y: auto; overscroll-behavior: contain; color: #fffefb;}
.storybook-page .viewer-overview-header{display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; padding-right: 48px;}
.storybook-page .viewer-overview-header h3{margin: 0; color: #fffefb;}
.storybook-page .viewer-filmstrip{display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;}
.storybook-page .viewer-overview-photo{position: relative; min-width: 0; padding: 4px; background: #39281c; color: #fffefb; border: 3px solid transparent; border-radius: 12px; text-align: left;}
.storybook-page .viewer-overview-photo[aria-current="true"]{border-color: #ffe589; background: #715217;}
.storybook-page .viewer-overview-photo img{display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px;}
.storybook-page .viewer-overview-caption{display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 6px 3px; line-height: 1.4; font-size: .8rem;}
.storybook-page .viewer-overview-pages{display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px;}
.storybook-page .viewer-overview-pages p{flex: 1 0 100%; text-align: center; margin: 0;}
.storybook-page .viewer-overview-pages button{border-radius: 12px; padding: 8px 12px; background: #fff3be; color: #493326;}
.storybook-page .viewer-overview-pages button:disabled{opacity: .5;}
@media (max-width: 768px){.storybook-page .photo-modal .modal-content{display: flex; flex-direction: column; align-items: stretch; height: 92dvh; overflow: hidden;}.storybook-page .photo-modal .modal-close{position: absolute; float: none; top: 4px; right: 8px; margin: 0;}.storybook-page .photo-modal .modal-content.viewer-overview-open{width: calc(100vw - 24px);}.storybook-page .viewer-filmstrip{grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;}.storybook-page .photo-modal :is(.modal-image,.modal-video){max-height: 28dvh; flex: 0 0 auto;}.storybook-page .photo-modal .modal-info{display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 12px; overflow: hidden;}.storybook-page .photo-modal .viewer-details{flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;}.storybook-page .photo-modal .modal-info > :not(.viewer-details){flex-shrink: 0;}.storybook-page .photo-modal .modal-info h3{margin-bottom: 8px;}.storybook-page .photo-modal .modal-info p{margin: 4px 0;}.storybook-page .photo-modal .viewer-decoration{display: none;}.storybook-page .photo-modal :is(.save-tags-btn,.modal-download-btn,.viewer-overview-toggle){min-height: 48px;}.storybook-page .photo-modal .modal-prev,.storybook-page .photo-modal .modal-next{top: 18dvh;}}
@media(max-width:360px){.storybook-page .photo-modal :is(.modal-image,.modal-video){max-height: 21dvh;}.storybook-page .photo-modal .viewer-tags{max-height: 38px;}.storybook-page .photo-modal .modal-prev,.storybook-page .photo-modal .modal-next{top: 15dvh;}}
.storybook-page .timehut-dialog .modal-actions > button{flex: 1;}
@media(max-width:760px){.storybook-page .upload-modal-content > .modal-close{width:48px; height:48px; border-radius:12px; top:8px; right:8px;}}
@media(max-width:760px){.storybook-page .upload-modal-content > .modal-close{position:absolute!important; top:8px; right:8px;}}
