/* R35: home slide content moves towards top on phones, without covering the fixed header. */
.template-modern .az-hero-picture{position:absolute;inset:0;z-index:-2;display:block;overflow:hidden}
.template-modern .az-hero-picture .az-hero-photo{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--az-focus-x,50%) var(--az-focus-y,50%)}
@media(max-width:760px){
 body.template-modern #homeV .az-hero-frame .az-hero-inner{
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;
  padding-top:clamp(100px,16dvh,146px)!important;padding-bottom:48px!important;
  gap:0!important;
 }
 body.template-modern #homeV .az-hero-frame .az-hero-copy{
  width:100%!important;max-width:100%!important;margin:0!important;align-self:stretch!important;
  max-height:calc(100dvh - var(--az-home-strip-height,82px) - clamp(155px,22dvh,195px))!important;
  overflow-y:auto!important;
  transform:translateX(clamp(-12px,var(--az-copy-offset-x,0px),12px))!important;
 }
 body.template-modern #homeV .az-hero-copy h1{font-size:clamp(20px,6vw,31px)!important;line-height:1.4!important}
 body.template-modern #homeV .az-hero-copy p{font-size:clamp(12px,3.1vw,14px)!important;line-height:1.55!important}
 body.template-modern #homeV .az-hero-actions{flex-direction:row;flex-wrap:wrap;align-items:flex-start}
 body.template-modern #homeV .az-hero-actions .az-button{max-width:100%;white-space:normal}
 body.template-modern #homeV .az-hero-controls{bottom:10px!important}
}
@media(max-width:760px) and (max-height:580px){
 body.template-modern #homeV .az-hero-frame .az-hero-inner{padding-top:clamp(72px,17dvh,100px)!important;padding-bottom:25px!important}
 body.template-modern #homeV .az-hero-frame .az-hero-copy{max-height:calc(100dvh - var(--az-home-strip-height,82px) - 115px)!important}
 body.template-modern #homeV .az-hero-copy h1{font-size:clamp(18px,4.7vh,25px)!important}
 body.template-modern #homeV .az-hero-copy p{line-height:1.35!important}
}
/* Defensive responsive containment on public pages */
@media(max-width:760px){
 body.template-modern #newsV .wrap,body.template-modern #services .wrap{max-width:calc(100% - 24px)}
 body.template-modern #newsV img{max-width:100%;height:auto}
 body.template-modern #newsV .rc-grid,body.template-modern #newsV .pf-grid{min-width:0}
 body.template-modern #newsV .pg-hero-in{min-width:0}
 body.template-modern #newsV .pg-txt{min-width:0;overflow-wrap:anywhere}
}
