/* Client-requested memory transitions and expanded photo gallery. */
.film-openframe .open-family .memory-experience{max-width:1120px;margin:auto}
.memory-stage{position:relative;aspect-ratio:4/3;background:#e9dfcc;box-shadow:0 16px 45px #241f1b24;overflow:hidden;isolation:isolate}
.memory-stage canvas{display:block;width:100%;height:100%;opacity:0}
.memory-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:8px solid #e9dfcc;box-sizing:border-box}
.memory-fallback[hidden]{display:none}
.memory-caption{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 0 20px}
.memory-kicker{display:block;font:700 10px/1.5 Montserrat,sans-serif;letter-spacing:.15em;text-transform:uppercase;color:#a33420;margin-bottom:5px}
.film-openframe .open-family .memory-label{font:500 16px/1.5 Montserrat,sans-serif;margin:0}
.memory-navigation{display:flex;align-items:center;gap:10px;flex:none}.memory-count{font:500 11px Montserrat,sans-serif;letter-spacing:.1em;margin-right:14px;color:#70665b;font-variant-numeric:tabular-nums}
.memory-navigation button{display:grid;place-items:center;width:46px;height:46px;border:1px solid #241f1b50;border-radius:50%;font-size:22px;color:#241f1b;background:transparent;cursor:pointer;transition:background .2s,color .2s}.memory-navigation button:hover{background:#241f1b;color:#eee9df}.memory-navigation button:focus-visible,.memory-thumbnails button:focus-visible{outline:3px solid #cf3e24;outline-offset:4px}
.memory-timeline{height:2px;background:#241f1b20;overflow:hidden;margin-bottom:24px}.memory-timeline span{display:block;width:100%;height:100%;background:#cf3e24;transform:scaleX(0);transform-origin:left}
.memory-thumbnails{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}.memory-thumbnails button{position:relative;display:block;padding:5px;border:1px solid transparent;background:#ddd4c4;cursor:pointer;opacity:.6;transition:opacity .25s,transform .25s,border-color .25s}.memory-thumbnails button[aria-pressed=true]{opacity:1;border-color:#cf3e24;transform:translateY(-3px)}.memory-thumbnails button:hover{opacity:1}.memory-thumbnails img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;display:block}.memory-thumbnails span{position:absolute;bottom:7px;left:7px;padding:3px 5px;background:#241f1bd9;color:#fffaf0;font:10px Montserrat,sans-serif}
html[data-photos="4"] .film-openframe .open-family #family-photographs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 28px;align-items:start}
html[data-photos="4"] .film-openframe .open-family #family-photographs figure{grid-column:auto!important;grid-row:auto;width:100%;margin:0;transform:rotate(-1.3deg);padding:12px 12px 20px}
html[data-photos="4"] .film-openframe .open-family #family-photographs figure:nth-child(even){transform:rotate(1.5deg);margin-top:28px}
html[data-photos="4"] .film-openframe .open-family #family-photographs figure:first-child{grid-column:span 2!important}
html[data-photos="4"] .film-openframe .open-family #family-photographs img{height:auto!important;aspect-ratio:4/5;object-fit:cover}
html[data-photos="4"] .film-openframe .open-family #family-photographs figure:first-child img{aspect-ratio:4/3}
@media(max-width:700px){
.memory-stage{aspect-ratio:4/5}.memory-caption{gap:12px;align-items:start;padding:18px 0}.memory-navigation{gap:6px}.memory-navigation button{width:44px;height:44px}.memory-count{display:none}.film-openframe .open-family .memory-label{font-size:13px}.memory-kicker{font-size:8px;letter-spacing:.1em}.memory-thumbnails{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.memory-thumbnails button{padding:4px}.memory-timeline{margin-bottom:18px}
html[data-photos="4"] .film-openframe .open-family #family-photographs{grid-template-columns:1fr 1fr;gap:26px 16px}
html[data-photos="4"] .film-openframe .open-family #family-photographs figure{padding:7px 7px 13px}
html[data-photos="4"] .film-openframe .open-family #family-photographs figure:nth-child(even){margin-top:14px}
html[data-photos="4"] .film-openframe .open-family #family-photographs figure:first-child{grid-column:1/-1!important}
html[data-photos="4"] .film-openframe .open-family #family-photographs figure:last-child{grid-column:1/-1!important;width:78%;justify-self:center}
}
@media(prefers-reduced-motion:reduce){.memory-timeline{display:none}.memory-thumbnails button{transition:none}}
@media(min-width:1001px){
.film-openframe .open-family:has(.memory-experience){display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:5vw;align-items:start}
.film-openframe .open-family:has(.memory-experience)>header{display:block;margin:0;position:sticky;top:240px}
.film-openframe .open-family:has(.memory-experience)>header h2{font-size:clamp(58px,5.9vw,94px);margin:24px 0}
.film-openframe .open-family:has(.memory-experience)>header p{font-size:16px;line-height:1.8;max-width:32ch}
.film-openframe .open-family .memory-experience{width:100%;min-width:0}
.memory-stage{aspect-ratio:4/3;max-height:510px}
.memory-thumbnails{gap:7px}.memory-thumbnails span{font-size:8px;bottom:5px;left:5px}
.memory-caption{gap:12px}.memory-count{margin-right:4px}.film-openframe .open-family .memory-label{font-size:13px}
}

html[data-effect="3"] .memory-stage{overflow:visible}
.memory-stage canvas.memory-ash{position:absolute;left:-12%;top:0;width:124%;height:130%;opacity:1;pointer-events:none;z-index:2}
/* Keep Luke's complete portrait visible on phones; move the photograph, not its crop. */
@media(max-width:800px){
.film-openframe .open-story>div{width:100%;padding-block:16px}
.film-openframe .open-story figure{overflow:visible;transform:translateY(var(--river-offset,0px));will-change:transform}
.film-openframe .open-story figure img{display:block;width:100%;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain}
.film-openframe .open-story .open-caption{position:relative;display:block;margin-top:28px}
}
@media(prefers-reduced-motion:reduce){.film-openframe .open-story figure{transform:none!important;will-change:auto}}
