.primary-nav { gap: 22px; }
.chapter-location:has(span:empty) { display:none; }
.film-section,.gallery-section { padding-top:110px; padding-bottom:70px; border-top:1px solid var(--line,rgba(243,168,187,.16)); }
.cinema-frame { padding:10px; background:#140b0f; border:1px solid #65404e; box-shadow:0 30px 80px #10060a66; }
.cinema-frame video { display:block; width:100%; aspect-ratio:16/9; background:#160c10; }
.film-bottom { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:22px; }
.film-bottom>span { font-size:9px; letter-spacing:.16em; color:#c7abb5; line-height:1.8; }
.original-clip { margin-top:28px; color:#c7abb5; font-size:13px; }
.original-clip summary { padding:16px 0; cursor:pointer; }
.original-clip video { display:block; max-height:65vh; max-width:100%; margin:20px auto; }
.gallery-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:38px; }
.gallery-filters { display:flex; flex-wrap:wrap; gap:8px; }
.gallery-filters button { border:1px solid #74515f; border-radius:30px; color:#ead0d6; padding:12px 18px; min-height:44px; background:transparent; cursor:pointer; font-size:12px; }
.gallery-filters button[aria-pressed=true] { background:#f3a8bb; color:#301923; border-color:#f3a8bb; }
#gallery-count { color:#c7abb5; font-size:11px; white-space:nowrap; }
.photo-gallery { columns:4; column-gap:25px; }
.gallery-photo { display:block; break-inside:avoid; width:100%; border:0; padding:8px 8px 15px; background:#f1dfd7; margin:0 0 25px; cursor:pointer; text-align:left; box-shadow:0 12px 35px #0003; transition:transform .25s; }
.gallery-photo:hover { transform:translateY(-5px); }
.gallery-photo img { width:100%; height:auto; display:block; background:#301923; }
.gallery-photo span { display:flex; align-items:center; justify-content:space-between; color:#61404a; padding:14px 6px 0; font:italic 14px Georgia,serif; }
.gallery-photo small { font:9px Arial,sans-serif; letter-spacing:.13em; }
.photo-dialog { width:min(1080px,96vw); max-height:96dvh; padding:56px 20px 12px; background:#1a0e14; color:#fff0e9; border:1px solid #74515f; overflow:auto; }
#gallery-large { display:block; width:100%; height:70dvh; object-fit:contain; }
.photo-viewer-bottom { display:flex; justify-content:center; align-items:center; gap:20px; padding:14px 0 0; }
.photo-viewer-bottom .round-button { flex-shrink:0; text-decoration:none; display:grid; place-items:center; font-size:22px; }
#photo-counter { color:#dcc3cd; font-size:12px; min-width:60px; text-align:center; }
#photo-favorite[aria-pressed=true] { color:#f3a8bb; background:#502436; }
.backup-actions { display:flex; flex-wrap:wrap; gap:14px; margin:20px 0; }
.editor-dialog select { width:100%; padding:12px; min-height:44px; background:#301923; color:#fff0e9; border:1px solid #987282; border-radius:4px; }
.editor-dialog label { display:block; margin:20px 0 8px; color:#ead0d6; font-size:12px; }
.editor-dialog textarea,.editor-dialog input { width:100%; }
.editor-dialog .button { margin-top:24px; }
.editor-dialog h2 { margin-bottom:20px; }
.settings-dialog .button:not(.button-primary) { border:1px solid #987282; margin:10px 0; }
.gallery-section [hidden],.editor-dialog [hidden] { display:none!important; }
.hero-meta { flex-wrap:wrap; }
.polaroid-image img { filter:none; }
.modal-photo-wrap img { object-fit:contain; filter:none; }
@media(min-width:1250px) { .primary-nav { gap:20px; } .site-header { column-gap:20px; } }
@media(max-width:1100px) { .primary-nav { gap:14px; } .primary-nav a { font-size:11px; } .photo-gallery { columns:3; } }
@media(max-width:800px) { .primary-nav { overflow:auto; scrollbar-width:none; justify-content:flex-start; gap:22px; } .primary-nav a { white-space:nowrap; min-height:44px; display:flex; align-items:center; } .photo-gallery { columns:2; column-gap:14px; } .gallery-photo { margin-bottom:14px; padding:6px 6px 12px; } .gallery-photo span { font-size:12px; padding:10px 3px 0; } .gallery-toolbar { align-items:flex-start; flex-direction:column; } .film-section,.gallery-section { padding-top:65px; } .film-bottom { align-items:flex-start; flex-direction:column; } }
@media(max-width:420px) { .photo-viewer-bottom { gap:9px; } .gallery-filters { gap:6px; } .gallery-filters button { padding:10px 13px; } .photo-dialog { padding-left:10px; padding-right:10px; } #gallery-large { height:66dvh; } }
@media(prefers-reduced-motion:reduce) { html:not([data-motion-override='true']) .gallery-photo { transition:none; } html:not([data-motion-override='true']) .gallery-photo:hover { transform:none; } }
[data-motion=reduced] .gallery-photo { transition:none; }
#personalize,#upload-trigger,#music-file-button,#music-remove,.settings-intro,.settings-tip:has(code) { display:none!important; }
.letter-card[hidden],#more-letters[hidden],.letter-originals[hidden],.letter-source-note[hidden] { display:none!important; }
.letter-library-tools { margin:35px 0 0; }
.letter-library-tools>label { display:block; font-size:12px; color:#dec0cd; max-width:560px; }
#letter-search { width:100%; display:block; border:1px solid #9b7182; background:#28131d; color:#fff0e9; min-height:46px; border-radius:4px; padding:13px 16px; margin:10px 0 22px; font:14px Arial,sans-serif; }
#letter-search::placeholder { color:#c6a4b3; }
#letter-count { color:#c7abb5; font-size:12px; margin-top:20px; }
.letters-more { display:flex; gap:30px; align-items:center; flex-wrap:wrap; margin-top:35px; }
.letters-more>.button { border:1px solid #a8798e; }
.letters-more>.text-link { margin:0; }
.letter-source-note { margin-top:25px; font:11px/1.6 Arial,sans-serif; color:#754659; }
.letter-originals { margin:22px 0 32px; font:12px/1.7 Arial,sans-serif; color:#673347; }
.letter-originals summary { padding:14px 0; cursor:pointer; }
.letter-originals img { width:100%; height:auto; display:block; margin:16px 0; }
.letter-body { white-space:pre-line; }
.letter-page { position:static; display:block; margin-top:24px; }
.route-stop { width:115px; }
.letter-grid { margin-top:24px; }
.intro-cinema { width:min(1100px,calc(100vw - 24px)); max-width:calc(100vw - 24px); background:#160c10; }
.intro-cinema::backdrop { background:#10080cf5; }
.intro-cinema-heading,.intro-cinema-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 22px; }
.intro-cinema-heading h2 { font:26px Georgia,serif; }
.intro-cinema-footer { flex-wrap:wrap; }
.intro-cinema-footer>span { font-size:11px; color:#c7abb5; }
.intro-cinema-footer .text-button { margin:0; min-height:44px; }
.intro-cinema video { display:block; width:100%; max-height:calc(100dvh - 210px); aspect-ratio:16/9; background:#000; }
@media(max-width:600px) { .intro-cinema-heading,.intro-cinema-footer { padding:10px 14px; } .intro-cinema-footer>span { display:none; } .intro-cinema-footer { justify-content:center; } }
@media(max-width:600px) { #sound-label { display:inline; font-size:10px; white-space:nowrap; } .header-actions { gap:14px; } .sound-button { gap:6px; } .route-stop { width:100%; } }
