/* A film and a handful of photographs, kept together after the plan. */
.stage .memories-chapter{grid-template-columns:.82fr 1.18fr;gap:3.5vw;padding:105px 6vw 90px}
.stage .memory-heading h2{font-size:6.7vw}
.stage .memory-collection.memory-scrapbook,.memory-collection.memory-scrapbook{background:none;padding:0;box-shadow:none;transform:none;margin:0;min-width:0}
.scrapbook-top{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:10px;font-weight:750;letter-spacing:.15em;padding:0 0 18px;border-bottom:1px solid #2a586c30}
.scrapbook-top span:last-child{color:#52707d;font-size:9px}
.scrapbook-scene{height:clamp(290px,49vh,540px);position:relative;margin:24px 0 12px;isolation:isolate}
.memory-photo-deck{position:absolute;right:7%;top:0;height:100%;aspect-ratio:941/1870;z-index:3;touch-action:pan-y}
.memory-print{position:absolute;inset:0;display:flex;flex-direction:column;width:100%;height:100%;padding:6px 6px 0;background:#f9fbff;border:1px solid #fff;border-radius:5px;color:#010d1f;box-shadow:0 14px 35px #010d1f24;transform-origin:50% 85%;transform:translateX(var(--spread)) translateY(calc(var(--rank)*-2px)) rotate(var(--turn)) scale(calc(1 - var(--rank)*.012));transition:transform .65s cubic-bezier(.22,.75,.2,1),box-shadow .3s;cursor:pointer;overflow:hidden}
.memory-print img{width:100%;min-height:0;flex:1;object-fit:cover;border-radius:2px;filter:none;user-select:none;-webkit-user-drag:none}
.memory-print>span{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:12px 5px;flex-shrink:0;width:100%;text-align:left}
.memory-print b{font-size:clamp(10px,.85vw,14px);font-weight:650;letter-spacing:-.015em}
.memory-print small{font-size:8px;white-space:nowrap;color:#52707d}
.memory-print i{position:absolute;right:14px;top:14px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#ff5270;color:#010d1f;font-size:19px;font-style:normal;opacity:0;transform:scale(.8);transition:.25s}
.memory-print.selected:hover i,.memory-print.selected:focus-visible i{opacity:1;transform:scale(1)}
.memory-print:focus-visible,.memory-select:focus-visible,.scrapbook-controls button:focus-visible,.memory-video-print:focus-visible{outline:3px solid #ff5270;outline-offset:5px}
.stage .memory-video-print,.memory-video-print{position:absolute;left:0;top:27%;width:49%;padding:7px;background:#f9fbff;box-shadow:0 15px 40px #010d1f1a;z-index:2;text-align:left;color:#010d1f}
.stage .memory-video-print>img,.memory-video-print>img{width:100%;height:auto;aspect-ratio:1.55;max-height:none;min-height:0;object-fit:cover;filter:none}
.stage .memory-video-print>.memory-video-caption,.memory-video-print>.memory-video-caption{display:block;padding:12px 6px 6px;font-size:clamp(13px,1.1vw,18px);font-weight:750;letter-spacing:-.035em}
.memory-video-caption small{display:block;font-size:8px;letter-spacing:.12em;color:#2a586c;margin-top:8px;font-weight:750}
.stage .memory-video-print>.memory-video-play,.memory-video-print>.memory-video-play{position:absolute;left:calc(50% - 22px);top:calc((100% - 65px)/2 - 22px);width:44px;height:44px;background:#ff5270;color:#010d1f;border:1px solid #ffffff70;border-radius:50%;display:grid;place-items:center;padding:0 0 0 3px;font-size:16px;box-shadow:0 0 0 7px #ff527029;z-index:4;transition:transform .25s}
.memory-video-print:hover .memory-video-play{transform:scale(1.12)}
.scrapbook-note{position:absolute;left:2%;bottom:8%;font:400 clamp(20px,2vw,33px)/1.1 'Permanent Marker';letter-spacing:-.04em;color:#2a586c;transform:rotate(-8deg)}
.scrapbook-controls{display:flex;align-items:center;gap:12px;border-top:1px solid #2a586c30;padding-top:12px}
.scrapbook-controls button{width:42px;height:42px;flex:none;border:1px solid #2a586c40;border-radius:50%;background:transparent;color:#010d1f;font-size:22px;transition:background .2s}
.scrapbook-controls button:hover{background:#ff5270;border-color:#ff5270}
#stack-position{font-size:11px;letter-spacing:.12em;white-space:nowrap}
.stack-instruction{font-size:13px;color:#2a586c;margin-left:auto;margin-right:auto}
.memory-contact-sheet{display:flex;justify-content:center;gap:9px;padding-top:12px}
.memory-select{padding:3px;background:transparent;border:1px solid transparent;border-radius:4px;opacity:.5;transition:opacity .2s,transform .2s,border-color .2s}
.memory-select img{display:block;width:31px;height:41px;object-fit:cover;border-radius:2px}
.memory-select[aria-pressed=true]{border-color:#ff5270;opacity:1;transform:translateY(-3px)}
.memory-select:hover{opacity:1}
.memory-margin-note{display:none}
#memory-dialog{width:min(94vw,980px);max-width:980px;background:#010d1f;color:#dee8f9;padding:26px;border-radius:9px}
#memory-dialog::backdrop{background:#010d1fe8;backdrop-filter:blur(12px)}
#memory-dialog>.eyebrow{color:#92a8ae;font-size:10px}
#memory-dialog h2{font-size:clamp(20px,3vw,34px);margin:14px 42px 20px 0;padding:0}
#memory-dialog>.dialog-close,#memory-dialog .dialog-close{color:#dee8f9}
#memory-dialog>img{height:65svh;max-height:65svh;background:#010d1f;filter:none;object-fit:contain}
#memory-dialog>video{max-height:65svh}
#memory-dialog>[hidden]{display:none!important}
.memory-dialog-bottom button{border-radius:50%;background:#ff5270;color:#010d1f}
@media(min-width:601px) and (max-height:760px){.scrapbook-scene{height:43vh;min-height:230px;margin:15px 0 10px}.memory-contact-sheet{padding-top:8px}.memory-select img{height:32px;width:24px}.scrapbook-top{padding-bottom:10px}.scrapbook-controls{padding-top:8px}.scrapbook-controls button{height:34px;width:34px}.stage .memories-chapter{padding-top:95px;padding-bottom:70px}.stack-instruction{font-size:11px}}
@media(max-width:600px){
 .stage .memories-chapter{grid-template-columns:1fr;padding:92px 7vw 85px;gap:15px;align-content:center}
 .stage .memory-heading h2{font-size:11.2vw;margin:12px 0}
 .stage .memory-heading>p{font-size:16px}
 .stage .memory-heading .hand-note{display:none}
 .scrapbook-top{padding-bottom:9px;font-size:9px}.scrapbook-top span:last-child{font-size:8px}
 .scrapbook-scene{height:clamp(220px,34svh,330px);margin:18px 0 14px}
 .memory-photo-deck{right:8%}
 .memory-print{padding:4px 4px 0;transform:translateX(calc(var(--spread)*.6)) translateY(calc(var(--rank)*-1px)) rotate(var(--turn)) scale(calc(1 - var(--rank)*.012))}
 .memory-print>span{padding:9px 3px;gap:3px}.memory-print b{font-size:9px}.memory-print small{font-size:6px}
 .stage .memory-video-print{width:46%;top:24%;padding:5px}.stage .memory-video-print>.memory-video-caption{font-size:12px;padding:10px 3px 5px}.memory-video-caption small{font-size:7px}
 .stage .memory-video-print>.memory-video-play{width:32px;height:32px;left:calc(50% - 16px);top:calc((100% - 57px)/2 - 16px);font-size:12px;box-shadow:0 0 0 5px #ff527029}
 .scrapbook-note{font-size:20px;bottom:9%;left:0}
 .scrapbook-controls{padding-top:9px;gap:8px}.scrapbook-controls button{width:34px;height:34px}.stack-instruction{font-size:10px}#stack-position{font-size:9px}
 .memory-contact-sheet{gap:7px;padding-top:10px}.memory-select img{width:27px;height:35px}
 #memory-dialog{padding:20px 16px}#memory-dialog h2{margin-top:18px}#memory-dialog>img{height:60svh;max-height:60svh}
}
@media(max-width:600px) and (max-height:740px){.stage .memories-chapter{padding-top:82px;padding-bottom:70px;gap:10px}.stage .memory-heading h2{font-size:10vw;margin:8px 0}.stage .memory-heading>p{font-size:14px}.scrapbook-scene{height:29svh;min-height:175px;margin:14px 0 10px}.memory-contact-sheet{padding-top:7px}.memory-select img{height:28px;width:22px}.scrapbook-note{font-size:17px}}
@media(prefers-reduced-motion:reduce){.memory-print,.memory-select{transition:none}}
.motion-reduced .memory-print,.motion-reduced .memory-select{transition:none}
.motion-reduced .memory-scrapbook{max-width:720px;width:100%;justify-self:center}
/* Once the film lands, the print takes over and its play control stays visible. */
.stage .memories-chapter.memory-active{z-index:29}
.stage .memories-chapter.memory-active .memory-video-print>img{opacity:1}
.scrapbook-note{display:none}

/* The film plays in place; photographs cycle directly through the stack. */
.memory-video-print{margin:0;cursor:default}
.memory-video-print>video{position:absolute;left:7px;top:7px;width:calc(100% - 14px);height:auto;aspect-ratio:1.55;object-fit:cover;display:block;pointer-events:none}
.memory-video-print>.memory-video-caption{padding:12px 6px 9px;font-size:clamp(13px,1.1vw,18px);font-weight:750;letter-spacing:-.035em;line-height:1.25}
.memory-print.selected i{opacity:1;transform:scale(1)}
@media(max-width:600px){.memory-video-print>video{left:5px;top:5px;width:calc(100% - 10px)}.memory-video-print>.memory-video-caption{font-size:12px;padding:10px 3px 6px}}
