/* ═══════════════════════════════════════════════════
   Travel — "Dark Room" Editorial Photo Archive
   Fonts: Cormorant Garamond (display) · Space Mono (mono)
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:ital@0;1&display=swap');

/* ── CSS tokens ──────────────────────────────────────── */
.travel {
    --tv-bg:          #0f0c09;
    --tv-surface:     #1a1510;
    --tv-surface-2:   #221c14;
    --tv-line:        rgba(232, 221, 208, 0.1);
    --tv-line-bright: rgba(232, 221, 208, 0.22);
    --tv-text:        #e8ddd0;
    --tv-muted:       rgba(232, 221, 208, 0.45);
    --tv-dim:         rgba(232, 221, 208, 0.25);
    --tv-accent:      var(--region-accent, #c8905e);
    --tv-serif:       'Cormorant Garamond', Georgia, serif;
    --tv-mono:        'Space Mono', 'Courier New', monospace;
    --tv-r-sm:        10px;
    --tv-r-md:        16px;
    --tv-r-lg:        22px;

    display: grid;
    gap: 40px;
    color: var(--tv-text);
    font-family: var(--tv-serif);
}

/* ═══════════════════════════════════════════════════
   HEADER — editorial masthead
═══════════════════════════════════════════════════ */
.tv-header {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px;
    align-items: end;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--tv-line-bright);
}

.tv-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tv-header__issue,
.tv-header__tagline {
    font-family: var(--tv-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--tv-accent);
}

.tv-header__divider {
    color: var(--tv-line-bright);
}

.tv-header__title {
    font-family: var(--tv-serif);
    font-weight: 300;
    line-height: 0.9;
    margin: 0 0 18px;
    font-size: clamp(52px, 8vw, 88px);
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}

.tv-header__title-main {
    color: var(--tv-text);
}

.tv-header__title-italic {
    font-style: italic;
    font-weight: 300;
    color: var(--tv-accent);
    margin-left: 0.12em;
}

.tv-header__desc {
    margin: 0;
    color: var(--tv-muted);
    font-size: 14px;
    line-height: 1.75;
    font-family: var(--tv-serif);
    font-style: italic;
    max-width: 420px;
}

/* Active region info */
.tv-header__active-region {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(var(--tv-accent-rgb, 200, 144, 94), 0.28);
    border-radius: var(--tv-r-md);
    background: rgba(255, 255, 255, 0.03);
}

.tv-header__region-indicator {
    width: 3px;
    height: 52px;
    border-radius: 999px;
    background: var(--accent, var(--tv-accent));
    flex-shrink: 0;
    margin-top: 2px;
}

.tv-header__region-label {
    font-family: var(--tv-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--tv-dim);
    margin: 0 0 4px;
}

.tv-header__region-name {
    font-family: var(--tv-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--tv-text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.tv-header__region-count {
    font-family: var(--tv-mono);
    font-size: 10px;
    color: var(--tv-muted);
    letter-spacing: 0.14em;
    margin: 0;
}

/* Hint when no region selected */
.tv-header__hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 24px;
    text-align: center;
    border: 1px dashed var(--tv-line-bright);
    border-radius: var(--tv-r-md);
}

.tv-header__hint-icon {
    color: var(--tv-dim);
    opacity: 0.6;
}

.tv-header__hint-text {
    font-family: var(--tv-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tv-muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   MAP SECTION
═══════════════════════════════════════════════════ */
.tv-map-section {
    display: grid;
    gap: 28px;
    transition: opacity 0.35s ease;
}

.tv-map-section.is-dimmed {
    opacity: 0.3;
    pointer-events: none;
}

.tv-map-wrap {
    position: relative;
    border-radius: var(--tv-r-lg);
    overflow: hidden;
    border: 1px solid var(--tv-line-bright);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.tv-map {
    width: 100%;
    height: 480px;
}

@media (max-width: 768px) {
    .tv-map {
        height: 300px;
    }
}

/* Leaflet map tooltip override */
.map-tooltip {
    font-family: var(--tv-mono) !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    background: rgba(15, 12, 9, 0.92) !important;
    border: 1px solid rgba(232, 221, 208, 0.2) !important;
    border-radius: 6px !important;
    color: #e8ddd0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.map-tooltip::before {
    border-top-color: rgba(232, 221, 208, 0.15) !important;
}

/* Map overlay hint */
.tv-map__overlay-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 12, 9, 0.85);
    border: 1px solid rgba(232, 221, 208, 0.2);
    border-radius: 999px;
    padding: 7px 18px;
    pointer-events: none;
}

.tv-map__overlay-hint span {
    font-family: var(--tv-mono);
    font-size: 9px;
    letter-spacing: 0.24em;
    color: var(--tv-muted);
}

/* ── Loading / Error states ──────────────────────── */
.tv-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--tv-muted);
    font-family: var(--tv-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
}

.tv-state__loader {
    display: flex;
    gap: 8px;
}

.tv-state__loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tv-accent);
    animation: tv-pulse 1.2s ease-in-out infinite;
}

.tv-state__loader span:nth-child(2) { animation-delay: 0.2s; }
.tv-state__loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tv-pulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

.tv-state--empty {
    font-family: var(--tv-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-align: center;
}

.tv-error {
    font-family: var(--tv-mono);
    font-size: 11px;
    color: #f2a09a;
    border: 1px solid rgba(242, 160, 154, 0.3);
    border-radius: var(--tv-r-sm);
    padding: 12px 16px;
    background: rgba(242, 160, 154, 0.06);
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════
   ALBUM HEADER
═══════════════════════════════════════════════════ */
.tv-album-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tv-line);
}

.tv-album-header__left {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
}

.tv-album-header__region {
    font-family: var(--tv-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tv-album-header__albums {
    font-family: var(--tv-mono);
    font-size: 10px;
    color: var(--tv-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tv-album-header__count {
    font-family: var(--tv-mono);
    font-size: 11px;
    color: var(--tv-dim);
    letter-spacing: 0.12em;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   PHOTO MOSAIC — 4-column editorial grid
═══════════════════════════════════════════════════ */
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
    gap: 6px;
}

@media (max-width: 1024px) {
    .photo-mosaic {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 640px) {
    .photo-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 4px;
    }
}

/* ═══════════════════════════════════════════════════
   PHOTO CARD
═══════════════════════════════════════════════════ */
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--tv-r-sm);
    cursor: pointer;
    background: var(--tv-surface);

    /* Scroll-reveal */
    opacity: 0;
    transform: scale(0.97) translateY(10px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        box-shadow 0.25s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.photo-card[data-revealed='true'] {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Layout variants */
.photo-card--hero {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-card--tall {
    grid-row: span 2;
}

.photo-card--wide {
    grid-column: span 2;
}

/* Image */
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0, 0, 1), filter 0.4s ease;
    filter: saturate(0.85) brightness(0.92);
}

.photo-card:hover img {
    transform: scale(1.04);
    filter: saturate(1) brightness(1);
}

/* Hover overlay */
.photo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(15, 12, 9, 0) 40%,
        rgba(15, 12, 9, 0.75) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.photo-card:hover .photo-card__overlay {
    opacity: 1;
}

.photo-card__overlay-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.photo-card__index {
    font-family: var(--tv-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--accent, var(--tv-accent));
}

.photo-card__label {
    font-family: var(--tv-mono);
    font-size: 10px;
    color: rgba(232, 221, 208, 0.85);
    margin: 0;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Decorative print-border effect */
.photo-card__frame {
    position: absolute;
    inset: 0;
    border-radius: var(--tv-r-sm);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.photo-card:hover .photo-card__frame {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.photo-card:focus-visible {
    outline: 2px solid var(--tv-accent);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════
   MOSAIC FOOTER — sentinel + end message
═══════════════════════════════════════════════════ */
.mosaic-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0 8px;
    min-height: 48px;
    grid-column: 1 / -1;
}

.mosaic-loading {
    display: flex;
    gap: 8px;
}

.mosaic-loading__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tv-accent);
    animation: tv-pulse 1.2s ease-in-out infinite;
}

.mosaic-loading__dot:nth-child(2) { animation-delay: 0.2s; }
.mosaic-loading__dot:nth-child(3) { animation-delay: 0.4s; }

.mosaic-end {
    font-family: var(--tv-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--tv-dim);
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mosaic-end span {
    color: var(--tv-line-bright);
}

/* ═══════════════════════════════════════════════════
   FILM STRIP — thumbnail rail
═══════════════════════════════════════════════════ */
.filmstrip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0;
    background: #0a0806;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--tv-line);
}

.filmstrip__nav {
    width: 32px;
    background: rgba(15, 12, 9, 0.9);
    border: none;
    color: var(--tv-muted);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filmstrip__nav:hover {
    color: var(--tv-text);
    background: rgba(15, 12, 9, 0.6);
}

.filmstrip__rail {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Perforation strip */
.filmstrip__holes {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 5px 8px;
    background: #0a0806;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.filmstrip__hole {
    width: 10px;
    height: 8px;
    flex-shrink: 0;
    margin-right: 14px;
    border-radius: 2px;
    background: var(--tv-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Thumbnail frames */
.filmstrip__frames {
    display: flex;
    gap: 3px;
    padding: 5px 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.filmstrip__frames::-webkit-scrollbar {
    display: none;
}

.filmstrip__frame {
    position: relative;
    width: 68px;
    height: 52px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--tv-surface-2);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.filmstrip__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.7);
    transition: filter 0.2s ease;
}

.filmstrip__frame:hover img,
.filmstrip__frame.is-active img {
    filter: saturate(1);
}

.filmstrip__frame:hover {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.4);
}

.filmstrip__frame.is-active {
    border-color: var(--tv-accent);
    box-shadow: 0 0 0 1px var(--tv-accent);
}

.filmstrip__frame-num {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-family: var(--tv-mono);
    font-size: 7px;
    color: rgba(232, 221, 208, 0.6);
    letter-spacing: 0.06em;
    pointer-events: none;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════════
   LIGHTBOX — cinematic full-screen viewer
═══════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.9);
    backdrop-filter: blur(var(--lb-blur, 6px));
    -webkit-backdrop-filter: blur(var(--lb-blur, 6px));
    z-index: 3000;
    display: grid;
    place-items: center;
}

.lightbox__inner {
    width: min(1280px, 98vw);
    max-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto auto auto;
    gap: 0;
    overflow: hidden;
}

/* ── Top bar ──────────────────────────────────────── */
.lightbox__topbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--tv-line);
    background: rgba(10, 8, 6, 0.7);
}

.lightbox__counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--tv-mono);
}

.lightbox__counter-current {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.lightbox__counter-sep {
    font-size: 12px;
    color: var(--tv-line-bright);
}

.lightbox__counter-total {
    font-size: 12px;
    color: var(--tv-muted);
}

.lightbox__region {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox__region-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, var(--tv-accent));
    flex-shrink: 0;
}

.lightbox__region-name {
    font-family: var(--tv-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--tv-text);
    letter-spacing: 0.02em;
}

.lightbox__album {
    font-family: var(--tv-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tv-muted);
    padding-left: 10px;
    border-left: 1px solid var(--tv-line-bright);
    margin-left: 2px;
}

.lightbox__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-control {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--tv-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tv-muted);
    cursor: pointer;
}

.lb-control input[type='range'] {
    appearance: none;
    -webkit-appearance: none;
    width: 100px;
    height: 3px;
    background: rgba(232, 221, 208, 0.15);
    border-radius: 999px;
    outline: none;
}

.lb-control input[type='range']::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tv-text);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.lb-control input[type='range']::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tv-text);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.lb-control__val {
    font-size: 9px;
    min-width: 16px;
    text-align: right;
}

.lightbox__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(232, 221, 208, 0.18);
    background: rgba(15, 12, 9, 0.8);
    color: var(--tv-text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.lightbox__close:hover {
    border-color: rgba(232, 221, 208, 0.5);
    background: rgba(232, 221, 208, 0.08);
}

/* ── Photo stage ──────────────────────────────────── */
.lightbox__stage {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 0;
    min-height: 0;
    padding: 12px 0;
}

.lightbox__frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(300px, 58vh, 700px);
    overflow: hidden;
}

.lightbox__photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lightbox__photo.slide-next {
    animation: lb-slide-in-right 280ms cubic-bezier(0.25, 0, 0.25, 1) forwards;
}

.lightbox__photo.slide-prev {
    animation: lb-slide-in-left 280ms cubic-bezier(0.25, 0, 0.25, 1) forwards;
}

@keyframes lb-slide-in-right {
    from { opacity: 0; transform: translateX(24px) scale(0.98); }
    to   { opacity: 1; transform: translateX(0)    scale(1); }
}

@keyframes lb-slide-in-left {
    from { opacity: 0; transform: translateX(-24px) scale(0.98); }
    to   { opacity: 1; transform: translateX(0)     scale(1); }
}

/* Decorative film frame border */
.lightbox__photo-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 4px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 2px 24px rgba(0, 0, 0, 0.5);
}

/* Navigation arrows */
.lightbox__arrow {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(232, 221, 208, 0.18);
    background: rgba(15, 12, 9, 0.85);
    color: var(--tv-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.lightbox__arrow:hover {
    border-color: rgba(232, 221, 208, 0.45);
    background: rgba(232, 221, 208, 0.06);
    transform: scale(1.05);
}

.lightbox__arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: none;
}

.lightbox__arrow.is-loading {
    pointer-events: none;
}

.lightbox__spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(232, 221, 208, 0.25);
    border-top-color: var(--tv-accent);
    animation: tv-spin 0.7s linear infinite;
}

@keyframes tv-spin {
    to { transform: rotate(360deg); }
}

/* Photo meta */
.lightbox__meta {
    padding: 6px 20px;
    font-family: var(--tv-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tv-muted);
    margin: 0;
    border-top: 1px solid var(--tv-line);
}

.lightbox__meta span {
    color: var(--tv-dim);
}

/* Toast */
.lightbox__toast {
    position: absolute;
    left: 20px;
    bottom: 16px;
    background: rgba(15, 12, 9, 0.92);
    border: 1px solid rgba(232, 221, 208, 0.2);
    border-radius: 999px;
    padding: 7px 14px;
    font-family: var(--tv-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--tv-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    animation: lb-toast-in 0.22s ease;
}

@keyframes lb-toast-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal][data-revealed='true'] {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .tv-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .travel {
        gap: 28px;
    }

    .tv-header {
        gap: 20px;
        padding-bottom: 20px;
    }

    .tv-header__title {
        font-size: clamp(40px, 12vw, 60px);
    }

    .lightbox__topbar {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 10px 12px;
    }

    .lightbox__controls {
        display: none;
    }

    .lightbox__stage {
        grid-template-columns: 44px 1fr 44px;
        padding: 6px 0;
    }

    .lightbox__frame {
        height: clamp(240px, 50vh, 480px);
    }

    .filmstrip__frame {
        width: 56px;
        height: 44px;
    }

    .photo-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-card--hero {
        grid-column: span 2;
        grid-row: span 1;
    }

    .photo-card--wide {
        grid-column: span 2;
    }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .photo-card,
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .lightbox__photo.slide-next,
    .lightbox__photo.slide-prev {
        animation: none !important;
    }

    .photo-card img {
        transition: none !important;
    }
}
