/* Only the homepage cover and its existing service ticker share the opening viewport.
   Min-height lets enlarged text or a short screen grow naturally, without a scroll trap. */
@media screen {
 .home-theme-v29{--opening-view:100vh;--opening-reserved:14.25rem}
 @supports (height:100svh){.home-theme-v29{--opening-view:100svh}}
 @supports (height:100dvh){.home-theme-v29{--opening-view:100dvh}}
 .home-theme-v29>.hero-campaign{box-sizing:border-box;min-height:max(0px,calc(var(--opening-view) - var(--opening-reserved)))}
 .home-theme-v29>.m-logo-strip{box-sizing:border-box}
}
/* Grow the art, rather than the headline's leading or the distance between buttons. */
@media screen and (max-width:760px) and (orientation:portrait),screen and (max-width:500px){
 .home-theme-v29{--opening-reserved:14.9rem}
 .home-theme-v29>.hero-campaign{grid-template-rows:auto minmax(min-content,1fr) auto auto auto;align-content:stretch}
 html:lang(th) body .home-theme-v29>.hero-campaign .hero-copy h1,.home-theme-v29>.hero-campaign .hero-copy h1{
  align-self:start;margin-top:clamp(.65rem,2.1vh,1.35rem)
 }
 .home-theme-v29>.hero-campaign .campaign-image{
  width:100%;object-position:76% 43%;
  -webkit-mask-image:linear-gradient(110deg,transparent 4%,rgba(0,0,0,.2) 25%,#000 59%);
  mask-image:linear-gradient(110deg,transparent 4%,rgba(0,0,0,.2) 25%,#000 59%)
 }
 .home-theme-v29>.hero-campaign .campaign-proof{margin-bottom:clamp(.65rem,1.55vh,1rem)}
 /* Keep the real wordmark links clear of the existing cookie and TITO controls. */
 .home-theme-v29>.m-logo-strip{padding-bottom:calc(3.3rem + env(safe-area-inset-bottom,0px))}
}
@media screen and (min-width:501px) and (max-width:960px) and (max-height:500px) and (orientation:landscape){
 .home-theme-v29{--opening-reserved:10rem}
 .home-theme-v29>.m-logo-strip{padding-inline:clamp(5.5rem,14vw,7.5rem) clamp(7.75rem,16vw,9rem);padding-bottom:max(.28rem,env(safe-area-inset-bottom,0px))}
}
@media screen and (min-width:761px) and (min-height:501px),screen and (min-width:961px){
 .home-theme-v29>.hero-campaign{display:flex;flex-direction:column;justify-content:center}
 .home-theme-v29>.hero-campaign>.campaign-layout{flex:1 0 auto;min-height:0}
 .home-theme-v29>.hero-campaign>.campaign-index{flex:none}
 .home-theme-v29>.m-logo-strip .m-logo-window{max-width:calc(100% - clamp(13rem,19vw,20rem))}
}
/* Give longer translations room on the smallest portrait screen, without shrinking the type. */
@media screen and (max-width:350px) and (max-height:610px) and (orientation:portrait){
 .home-theme-v29>.hero-campaign{grid-template-columns:minmax(0,73fr) minmax(0,27fr)}
 html:lang(th) body .home-theme-v29>.hero-campaign .hero-copy h1,.home-theme-v29>.hero-campaign .hero-copy h1{margin-top:.25rem;margin-bottom:.2rem}
 .home-theme-v29>.hero-campaign .campaign-caption{grid-column:1/-1;margin-bottom:.14rem}
 .home-theme-v29>.hero-campaign .lead{margin-block:.3rem}
 .home-theme-v29>.hero-campaign .campaign-proof{margin-block:.26rem .35rem}
}
/* The intermediate desktop layout otherwise spends 190px on rails and padding alone. */
@media screen and (min-width:761px) and (max-width:1279px) and (min-height:501px){
 .home-theme-v29>.hero-campaign>.campaign-layout{padding-block:clamp(.65rem,1.6vh,1.35rem)}
 .home-theme-v29>.hero-campaign .hero-copy h1{margin-block:.75rem}
 .home-theme-v29>.hero-campaign .hero-copy .lead{margin-bottom:.9rem}
 .home-theme-v29>.hero-campaign .campaign-proof{margin-top:.85rem}
 .home-theme-v29>.hero-campaign>.campaign-index{padding-block:.65rem}
}
