/* Scoped to the five life-story cards. Other lessons and galleries are unchanged. */
.film-study .film-story-title{font-size:calc(clamp(23px,2.3vw,30px) * var(--reading-scale,1))}
.film-study .film-story-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px;margin:32px 0 18px;align-items:stretch}
.film-study .film-story-gallery .film-story-card{grid-column:span 2;display:flex;flex-direction:column;gap:0;padding:0;min-width:0;text-align:left;overflow:hidden;background:#f5e9d7;color:var(--ink);border:1px solid #c9b398;border-radius:8px;box-shadow:0 8px 22px #583a2110;transition:transform .2s,box-shadow .2s,border-color .2s}
.film-study .film-story-gallery .film-story-card:nth-child(4){grid-column:2/span 2}.film-study .film-story-gallery .film-story-card:nth-child(5){grid-column:4/span 2}
.film-story-picture{display:block;position:relative;overflow:hidden;line-height:0;aspect-ratio:4/5;background:#d8bfa0}.film-story-picture img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s}
.film-story-number{position:absolute;left:16px;top:16px;display:grid;place-items:center;width:44px;height:44px;background:#f8efdfed;color:#17394c;font:24px/1 Georgia,serif;border:1px solid #fff8;border-radius:50%;box-shadow:0 3px 12px #0002}
.film-story-copy{display:flex;flex-direction:column;flex:1;padding:22px;gap:10px}.film-story-title{display:block;font:calc(clamp(23px,2.3vw,30px) * var(--reading-scale,1))/1.15 Georgia,serif}.film-story-theme{font-size:calc(14px * var(--reading-scale,1));line-height:1.5;color:#67533f}.film-story-open{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #c7ae8e;padding-top:14px;margin-top:auto;font-size:calc(13px * var(--reading-scale,1));font-weight:650;color:var(--rust)}
.film-study .film-story-gallery .film-story-card[aria-current="step"]{background:#193b4d;border-color:#193b4d;color:#fff6e6;box-shadow:0 12px 28px #18344a2b}.film-story-card[aria-current="step"] .film-story-theme{color:#e6d4b8}.film-story-card[aria-current="step"] .film-story-open{color:#f1c49a;border-top-color:#ffffff40}
.film-story-card:hover{transform:translateY(-5px);box-shadow:0 16px 32px #583a2128!important}.film-story-card:hover img{transform:scale(1.025)}.film-study .film-story-card:focus-visible{outline:4px solid #b85a38;outline-offset:5px}.film-story-detail-image{margin:0 0 28px;background:#e4d5bd;padding:14px;border-radius:5px}.film-story-detail-image img{display:block;width:min(100%,620px);height:auto;margin:auto;border-radius:3px}.film-story-detail-image figcaption{font-size:calc(12px * var(--reading-scale,1));line-height:1.55;padding:12px 4px 0;max-width:85ch;margin:auto;color:#67533f}.film-study .film-art-credit{font-size:calc(12px * var(--reading-scale,1));line-height:1.65;color:#78654f;max-width:90ch}.film-story-gallery~.film-cards .film-card{scroll-margin-top:100px}.film-story-gallery~.film-cards .film-card:focus{outline:2px solid #bd9671;outline-offset:4px}
@media(max-width:950px){.film-study .film-story-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.film-study .film-story-gallery .film-story-card,.film-study .film-story-gallery .film-story-card:nth-child(4){grid-column:auto}.film-study .film-story-gallery .film-story-card:nth-child(5){grid-column:1/-1;width:calc(50% - 10px);justify-self:center}}
@media(max-width:600px){.film-study .film-story-gallery{grid-template-columns:1fr;gap:22px}.film-study .film-story-gallery .film-story-card,.film-study .film-story-gallery .film-story-card:nth-child(4),.film-study .film-story-gallery .film-story-card:nth-child(5){grid-column:auto;width:100%}.film-story-copy{padding:20px}.film-story-title{font-size:calc(27px * var(--reading-scale,1))}.film-story-number{left:13px;top:13px}.film-story-detail-image{padding:8px}.film-story-gallery~.film-cards .film-card{scroll-margin-top:140px}}
@media(prefers-reduced-motion:reduce){.film-story-card,.film-story-picture img{transition:none!important}.film-story-card:hover,.film-story-card:hover img{transform:none}}
@media print{.film-study .film-story-gallery{display:grid;grid-template-columns:repeat(2,1fr)}.film-study .film-story-gallery .film-story-card{grid-column:auto!important;width:100%!important;break-inside:avoid;box-shadow:none}.film-story-picture{max-height:220px}.film-story-detail-image{display:none}}

/* Notes stay inside the illustration; the card-opening button is a sibling. */
.film-annotated{position:relative;width:100%;line-height:1.5;isolation:isolate}
.film-story-detail-image .film-annotated{max-width:620px;margin:auto}
.film-study .film-annotated>img{display:block;width:100%;height:auto;transform:none!important}
.film-story-picture{overflow:visible;aspect-ratio:auto}
.film-story-picture .film-annotated{aspect-ratio:4/5}
.film-story-number{left:12px;top:12px;width:35px;height:35px;font-size:19px;pointer-events:none;z-index:1}
.film-study .film-story-gallery .film-story-card{overflow:visible;transform:none;cursor:default}
.film-study .film-story-card:hover img{transform:none}
.film-story-title,.film-story-theme{margin:0}
.film-study .film-story-open{width:100%;min-width:0;flex:none;border:0;border-top:1px solid #c7ae8e;border-radius:0;background:transparent;padding:14px 0 0;cursor:pointer;text-align:left;min-height:44px}
.film-story-open:focus-visible{outline:3px solid #b85a38;outline-offset:4px}
.film-study .film-story-gallery .film-story-card:has([aria-current="step"]){background:#193b4d;border-color:#193b4d;color:#fff6e6}
.film-story-card:has([aria-current="step"]) .film-story-theme{color:#e6d4b8}
.film-study .film-story-card:has([aria-current="step"]) .film-story-open{color:#f1c49a;border-top-color:#ffffff40}
.film-study .film-story-open[aria-current="step"]{background:transparent}
.film-hotspot{margin:0!important;padding:0!important;border:0!important;background:none!important}
.film-hotspot>summary{position:absolute;left:var(--point-x);top:var(--point-y);transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;display:grid;place-items:center;list-style:none;cursor:pointer;z-index:2;border:0!important;padding:0!important;background:none!important}
.film-hotspot>summary::-webkit-details-marker{display:none}
.film-hotspot>summary::after{display:none!important}
.film-hotspot>summary>span{display:grid;place-items:center;width:32px;height:32px;border:2px solid #fff7e8;border-radius:50%;background:#193b4def;color:#fff8e9;font:700 15px/1 system-ui,sans-serif;box-shadow:0 0 0 5px #f6dfb746,0 2px 8px #0008}
.film-hotspot>summary:focus-visible{outline:3px solid #fff3c9;outline-offset:2px;border-radius:50%;box-shadow:0 0 0 6px #18394b}
.film-hotspot[open]>summary>span{background:#a94629}
.film-hotspot-note{position:absolute;left:10px;right:10px;bottom:10px;z-index:3;max-height:76%;overflow:auto;overscroll-behavior:contain;border:1px solid #c5ad89;border-radius:7px;background:#fcf5e7;color:#253c45;padding:16px;box-shadow:0 6px 22px #0005;text-align:left;line-height:1.5;font-size:calc(14px * var(--reading-scale,1))}
.film-hotspot-note strong{display:block;font-family:Georgia,serif;font-size:1.2em;line-height:1.2;padding-right:8px}
.film-study .film-hotspot-note p{margin:10px 0;font-size:inherit;line-height:1.5;color:inherit}
.film-study .film-hotspot-note .film-hotspot-question{padding-top:10px;border-top:1px solid #dbc6a7;font-weight:650}
.film-study .film-hotspot-close{display:block;min-height:44px;margin-left:auto;border:1px solid #bfa17d;background:#193b4d;color:#fff8e9;border-radius:4px;padding:8px 14px;font:inherit;cursor:pointer}
.film-hotspot-close:focus-visible{outline:3px solid #b85a38;outline-offset:3px}
.film-study .film-point-help{font-size:calc(14px * var(--reading-scale,1));line-height:1.6;color:#67533f}
.film-external-link{margin:10px 0 16px;line-height:1.4}.film-external-link .button{display:block;padding:10px 12px;font-size:calc(14px * var(--reading-scale,1));text-align:center;background:var(--blue);color:#fff8e9}.film-external-link small{display:block;margin-top:6px;font-size:calc(12px * var(--reading-scale,1));color:var(--muted)}.film-story-card:has([aria-current="step"]) .film-external-link small{color:#e6d4b8}
@media print{.film-hotspot,.film-point-help{display:none!important}}
