/* Keep case-study previews comfortably within the reader's viewport. */
.hero-screen{width:min(100%,900px)}
.chapter>figure{width:min(100%,960px);margin-inline:auto}
.screen{background:transparent;box-shadow:0 16px 45px #0003}
.screen img{width:100%;height:auto;max-height:min(66svh,580px);object-fit:contain;object-position:top center}
.hero-screen .screen img{max-height:min(60svh,520px)}
.chapter .volindo-preview,.hero-screen .volindo-preview{max-height:none;overflow:visible}
.volindo-preview .screen img{max-height:min(66svh,580px);object-fit:contain}
.mobile-gallery,.mediary-mobile-grid{gap:24px}
.mobile-viewport{height:min(58svh,500px);aspect-ratio:auto;max-height:500px}
.mediary-mobile-grid .image-open img{width:100%;height:min(58svh,500px);object-fit:contain}
.content-section>.image-open{width:min(100%,960px);margin-inline:auto}
.content-section>.image-open img{max-height:min(66svh,580px);object-fit:contain}
.email-gallery .image-open img,.card .image-open img{max-height:min(55svh,460px);object-fit:contain}
@media(max-width:700px){
 .screen img,.volindo-preview .screen img,.content-section>.image-open img{max-height:54svh}
 .hero-screen .screen img{max-height:48svh}
 .mobile-gallery,.mediary-mobile-grid{width:100%;max-width:360px}
 .mobile-viewport{height:min(60svh,460px)}
 .mediary-mobile-grid .image-open img{height:min(60svh,460px)}
 .email-gallery .image-open img{max-height:60svh}
}

/* Open, side-by-side chapters: the design sits directly on the page. */
.screen,.screen:hover,.volindo-preview,.volindo-preview:hover{border:0;box-shadow:none;background:transparent;border-radius:0}
.chapter:has(>figure){display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:28px 64px;align-items:center;padding-block:80px}
.chapter:has(>figure)>.chapter-heading{display:block;margin:0;align-self:center}
.chapter:has(>figure)>.chapter-heading h2{margin-bottom:24px}
.chapter:has(>figure)>.chapter-heading p:last-child{font-size:16px;max-width:440px}
.chapter:has(>figure)>figure{width:100%;min-width:0;margin:0}
.chapter:has(>figure)>.chapter-next{grid-column:1/-1;margin-top:8px}
.chapter:has(>figure) .screen{width:fit-content;max-width:100%;margin-inline:auto;cursor:zoom-in;overflow:visible}
.chapter:has(>figure) .screen img{display:block;width:auto;max-width:100%;height:auto;max-height:min(68svh,580px);object-fit:contain;filter:drop-shadow(0 18px 24px #0003);transition:transform .3s ease}
.chapter:has(>figure) .screen:hover img{transform:translateY(-4px)}
.chapter:has(>figure) figcaption{font-size:11px;text-align:center;padding-top:18px}
.chapter:has(>figure)>.chapter-heading.reveal-ready{transform:translateY(18px);transition:opacity .55s ease,transform .55s ease}
.chapter:has(>figure)>figure.reveal-ready{transform:translateY(30px) scale(.985);transition:opacity .7s ease .12s,transform .7s ease .12s}
.chapter:has(>figure)>.is-visible{opacity:1;transform:none}
@media(max-width:800px){
 .chapter:has(>figure){grid-template-columns:1fr;gap:24px;padding-block:48px}
 .chapter:has(>figure)>.chapter-heading p:last-child{max-width:none}
 .chapter:has(>figure) .screen img{max-height:56svh}
 .chapter:has(>figure)>.chapter-next{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){.chapter:has(>figure)>.reveal-ready{opacity:1;transform:none;transition:none}.chapter:has(>figure) .screen img{transition:none}.chapter:has(>figure) .screen:hover img{transform:none}}
body.motion-paused .chapter:has(>figure)>.reveal-ready{opacity:1;transform:none}
.chapter:has(>figure)>.chapter-heading.reveal-ready.is-visible,.chapter:has(>figure)>figure.reveal-ready.is-visible{transform:none}
/* Keep mockup surfaces clear, including hover states. */
.image-open,.image-open:hover,.screen,.screen:hover{box-shadow:none!important;filter:none!important;background:transparent!important;border-radius:0}
.image-open img,.image-open:hover img,.screen img,.screen:hover img{filter:none!important;transform:none!important}
