/* Tall page captures keep the offer and its bespoke conversion flow visible together. */
body .hero .montage-card{aspect-ratio:2/3!important}
body .hero .montage-card>img{width:100%;height:100%;object-fit:contain;object-position:center top;aspect-ratio:auto}
body #cases .case-catalog{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
body #cases .case-cover,body .related-grid .case-cover{aspect-ratio:1.8!important}
body #cases .case-cover img,body .related-grid .case-cover img{object-fit:cover;object-position:center top}
body #work .portfolio-image{height:auto;aspect-ratio:2/3;background-size:100% 100%;background-position:center top}
body .case-gallery .gallery-main{aspect-ratio:2/3}
body .case-gallery .gallery-main:has(img[src$=".svg"]){aspect-ratio:3/2}
body .gallery-thumb:first-child{width:48px;height:72px}
body .gallery-thumb img{object-fit:contain}
body .case-cover>span{font-size:13px;padding:8px 12px}
@media(max-width:650px){body #cases .case-catalog{grid-template-columns:minmax(0,1fr);gap:24px}body .case-cover>span{font-size:12px;padding:7px 10px}}


/* The viewer width is fitted to the image ratio by case-gallery.js. */
body dialog.case-lightbox .lightbox-inner{width:100%;max-height:none;overflow:hidden}
body dialog.case-lightbox .lightbox-inner img{display:block;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain;margin:0}


/* Each portrait is sized by its card, not by the older landscape image rules. */
body #work .portfolio-image,
body .hero .montage-card,
body .case-gallery .gallery-main{
 position:relative;
 min-width:0;
 min-height:0;
 height:auto!important;
 aspect-ratio:2/3!important;
 padding:0;
 overflow:hidden;
}
body #work .portfolio-image>img,
body .hero .montage-card>img,
body #cases .case-cover>img,
body .related-grid .case-cover>img,
body .case-gallery .gallery-main>img{
 position:absolute;
 inset:0;
 display:block;
 width:100%!important;
 height:100%!important;
 max-width:none!important;
 max-height:none!important;
 min-width:0;
 min-height:0;
 margin:0;
 padding:0;
 aspect-ratio:auto!important;
 object-fit:contain;
 object-position:center top;
}
body .case-gallery .gallery-main:has(img[src$=".svg"]){aspect-ratio:3/2!important}
/* Phone opening: show the work first, then the offer and actions. */
@media(max-width:800px){
 body .hero{display:flex!important;flex-direction:column;gap:0;height:auto!important;min-height:0!important;padding:0!important}
 body .hero .visual.montage{order:0!important;width:100%;height:clamp(420px,62svh,620px)!important;min-height:420px!important;max-height:620px!important;margin:0!important;overflow:hidden}
 body .hero .hero-copy{order:1!important;width:100%;padding:26px 20px 32px;min-width:0}
 body .hero h1{margin-top:0!important}
 body .hero .lead{margin-top:22px}
 body .hero .actions{margin-top:24px}
}
@media(max-width:800px){body .hero .hero-copy{display:flex!important;flex-direction:column;align-items:stretch}}

/* Stable landscape viewport across website captures and campaign reports. */
body .case-gallery .gallery-main,
body .case-gallery .gallery-main:has(img[src$=".svg"]){aspect-ratio:16/9!important}
body .case-gallery .gallery-main>img{object-fit:cover;object-position:center top}
body .case-gallery .gallery-main>img[src$=".svg"]{object-fit:contain;object-position:center}
body .case-gallery .gallery-thumb{width:60px;height:60px}

/* Give case content breathing room and balance the two columns. */
body .case-shell{padding-top:38px;padding-bottom:0}
.case-results{margin-top:26px;padding:22px 24px;background:#f4f9fc;border:1px solid #e2edf4;border-radius:18px;font-size:14px;line-height:1.5}
.case-results h2{font-size:16px;margin:0 0 14px}
.case-results ul{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;list-style:none;padding:0;margin:0}
.case-results li{margin:0}
.case-results .case-budget{max-width:none;margin-bottom:0;border-color:#d4e3ee;font-size:14px}
body .case-copy .case-discuss{margin-top:24px!important}
@media(max-width:700px){body .case-shell{padding-top:26px}.case-results{margin-top:20px;padding:18px}.case-results ul{gap:12px;font-size:13px}}

/* Compact catalog previews show the opening screen, with details beneath. */
body #cases .case-cover,body .related-grid .case-cover{position:relative;min-width:0;height:auto!important;aspect-ratio:1.8!important;overflow:hidden}
body #cases .case-cover>img,body .related-grid .case-cover>img{object-fit:cover;object-position:center top}
body #cases .case-cover>span{white-space:nowrap;font-size:14px;line-height:1.2;padding:12px 16px}
body #cases .case-card-content{padding:22px}
body #cases .case-card h3{font-size:22px;line-height:1.3;margin-bottom:18px}
body #cases .case-button{margin-top:auto}
@media(max-width:1050px) and (min-width:651px){body #cases .case-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
@media(max-width:650px){body #cases .case-catalog{grid-template-columns:minmax(0,1fr);gap:24px}body #cases .case-card-content{padding:20px}body #cases .case-card h3{font-size:21px}body #cases .case-cover>span{font-size:12px;padding:10px 13px}}

/* Compact copy keeps the case close to the height of its gallery. */
body .case-copy{font-size:14px;line-height:1.45}
body .case-copy h1{font-size:26px;margin-bottom:12px}
body .case-copy p{margin-bottom:12px;line-height:1.45}
body .case-copy h2{margin:12px 0 6px;font-size:14px}
body .case-copy ul{margin-bottom:10px}
body .case-copy li{margin-bottom:4px;line-height:1.45}
body .case-copy .case-scope{font-size:12px;line-height:1.45}
.case-results-inline ul{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px;list-style:none;padding:0}
body .case-results-inline .case-budget{max-width:none;margin-top:10px!important;padding-top:10px;margin-bottom:12px}
body .case-copy .case-discuss{margin-top:14px!important;margin-bottom:10px!important}
body .case-copy .case-disclosure{margin-top:12px!important;font-size:11px!important;line-height:1.4!important}
body .case-copy .case-button{min-height:44px;padding:12px 22px}
@media(max-width:700px){body .case-copy{font-size:15px}body .case-copy h1{font-size:25px}.case-results-inline ul{gap:8px 16px}}
