/* Two compressed image layers, choreographed by the existing narration clock. */
.image-story{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;overflow:hidden;transition:opacity .6s;mask-image:linear-gradient(to right,transparent,#000 12%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 83%,transparent);mask-composite:intersect}
.image-enhanced .image-story{opacity:1}
.image-enhanced .story-tableau,.image-enhanced .story-composition{opacity:0;visibility:hidden}
.image-scene{position:absolute;inset:0;opacity:0;transition:opacity .65s}
.image-scene.is-current{opacity:1}
.image-layer{position:absolute;inset:0;display:block;transform-origin:75% 50%}
.image-layer img{display:block;width:auto;max-width:none;height:100%;margin-left:auto;mask-image:linear-gradient(to right,transparent,#000 42%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 85%,transparent);mask-composite:intersect}
.image-background{transform:translateX(var(--bg-x,0px)) scale(var(--bg-scale,1));opacity:.78}
.image-foreground{transform:translate(var(--fg-x,0px),var(--fg-y,0px)) scale(var(--fg-scale,1));transition:opacity .7s}
.is-current .image-layer{will-change:transform}
.image-story-motion{position:absolute;inset:0;opacity:.5}
.image-story-motion svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.image-story-light{position:absolute;inset:0;background:radial-gradient(ellipse at var(--light-x,75%) var(--light-y,45%),#d99b4d22,transparent 35%);mix-blend-mode:screen}
.image-flow{stroke-dasharray:4 12;stroke-dashoffset:var(--flow-offset,0);opacity:0;transition:opacity .7s}
.image-story[data-beat="0"] .image-flow,.image-story[data-beat="5"] .image-flow,.image-story[data-beat="7"] .image-flow,.image-story[data-beat="8"] .image-flow,.image-story[data-beat="10"] .image-flow,.image-story[data-beat="13"] .image-flow{opacity:.65}
.image-rain{opacity:0;transform:translateY(var(--rain-y,0));transition:opacity .7s}.image-story[data-beat="6"] .image-rain{opacity:.5}
.image-closing .image-foreground{opacity:0}.image-closing .image-background{opacity:.3}.image-closing .image-story-motion{opacity:0}
.image-enhanced:has(.image-closing) .story-composition{opacity:.8;visibility:visible;filter:none}
.image-enhanced .story-words{z-index:4}.image-enhanced .story-chapter{z-index:4}
@media(max-width:760px){.image-story{inset:38% 0 0;mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 80%,transparent)}.image-layer img{width:100%;object-fit:cover;object-position:78% center;mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 84%,transparent)}.image-layer{transform-origin:78% 50%}.image-story-motion svg{width:165%;left:-60%}.image-enhanced .story-words{top:25%}}
@media(max-height:600px) and (max-width:1099px){.image-story{inset:0}.image-layer img{width:auto;object-fit:fill;mask-image:linear-gradient(to right,transparent,#000 42%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 85%,transparent)}.image-story-motion svg{width:100%;left:0}.image-enhanced .story-words{top:52%}.image-enhanced .story-chapter{top:12px}}
@media(prefers-reduced-motion:reduce){.image-story,.image-scene,.image-foreground{transition:none}.image-story-motion{display:none}}
@media(max-width:760px) and (max-height:600px) and (orientation:portrait){.image-story{inset:38% 0 0}.image-layer img{width:100%;object-fit:cover;object-position:78% center;mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 84%,transparent)}.image-story-motion svg{width:165%;left:-60%}.image-enhanced .story-words{top:25%}.image-enhanced .story-chapter{top:5%}}
