/* ajna-portrait.css - MOBILE ONLY (<=767px): portrait presentation of videos. Desktop/tablet (>=768px) untouched.
   Sources/posters are swapped to the 9:16 renders by ajna-portrait.js; frames here are CSS-only (no JS dependency, no CLS).
   Ratio comes from an in-flow ::before (padding-top %) because aspect-ratio on a box whose only content is an absolute video collapses to 0 inside flex items. */
@media(max-width:767px){
/* Home hero: tall portrait frame; poster is a <picture> portrait crop; the YouTube iframe already covers its box (cq units). Header is 84px on phones (bigger logo). */
.e-con.ajh-vhero{height:min(860px,max(560px,calc(100svh - 84px)))!important;min-height:0!important;max-height:860px!important}
/* every landscape-sourced video lives in a portrait frame (4:5; brand film 9:16) */
:is(.ajh-cin__stage,.dn-wide:has(>video),.aj-vcard--wide:has(>video),.awx2-fig:has(>video),.agx-pvid--l,.rm-loop,.agx-vids--l .agx-vid){position:relative;aspect-ratio:auto!important;height:auto!important;min-height:0!important;width:100%;max-width:calc(78svh*.8);margin-inline:auto!important;border-radius:18px;overflow:hidden;background:#0b0b0a}
:is(.ajh-cin__stage,.dn-wide:has(>video),.aj-vcard--wide:has(>video),.awx2-fig:has(>video),.agx-pvid--l,.rm-loop,.agx-vids--l .agx-vid)::before{content:"";display:block;padding-top:125%}
:is(.ajh-cin__stage,.dn-wide:has(>video),.aj-vcard--wide:has(>video),.awx2-fig:has(>video),.agx-pvid--l,.rm-loop,.agx-vids--l .agx-vid)>video,:is(.ajh-cin__stage,.dn-wide:has(>video),.aj-vcard--wide:has(>video),.awx2-fig:has(>video),.agx-pvid--l,.rm-loop,.agx-vids--l .agx-vid)>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.ajh-cin .ajh-cin__stage.ajh-cin__stage{max-width:calc(78svh*.5625)}
.ajh-cin .ajh-cin__stage.ajh-cin__stage{aspect-ratio:9/16!important}
.ajh-cin .ajh-cin__stage.ajh-cin__stage::before{position:absolute;inset:0;padding:0;display:block} /* keep the home vignette overlay; the old padding-top spacer collapsed the stage to 0 */
.aj-vcard--wide::before{display:none!important}
.aj-vcard--wide>video{position:static!important;inset:auto!important;display:block;width:100%;height:auto!important;aspect-ratio:4/5}
.awx2-vband{aspect-ratio:auto!important}
.awx2-vband>video{position:static!important;display:block;width:100%;height:auto!important;aspect-ratio:4/5;object-fit:cover}
.rm-loop.rm-loop{max-width:none;border-radius:0}
.elementor-widget-html:has(>.aj-vcard--wide,>.dn-wide,>.rm-loop,>.agx-pvid--l){flex-shrink:0}
/* gallery films: first film large (4:5), the rest two-up (9:16) */
.agx-vids--l{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.agx-vids--l .agx-vid{max-width:none;margin:0!important;border-radius:14px}
.agx-vids--l .agx-vid::before{padding-top:177.78%}
.agx-vids--l .agx-vid:first-child{grid-column:1/-1;max-width:calc(78svh*.8);justify-self:center}
.agx-vids--l .agx-vid:first-child::before{padding-top:125%}
}
