/* MAYAN RC20 | true section proportions and first-visible headings.
   RC19 accidentally reduced About and Why to ~half a desktop viewport.
   Keep the previously approved Products / Coverage section geometry intact. */

/* Entire editorial panels remain visible as a coherent page-stop on desktop.
   Natural height wins when the user's viewport is unusually short. */
@media (min-width:992px){
  body.site--cinema #about,
  body.site--cinema #why {
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    min-height:calc(100vh - 124px)!important;
    min-height:max(520px,calc(100svh - 124px))!important;
    padding-block:clamp(42px,5vw,70px)!important;
  }
  body.site--cinema #about>.container,
  body.site--cinema #why>.container {
    flex:none;
    width:94%;
  }
}

/* The About grid becomes one column below 992px; start with its heading,
   not its photo, so the navbar exposes useful content immediately. */
@media (max-width:991.98px){
  body.site--cinema #about .about-grid{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:clamp(14px,2.3vw,23px)!important;
  }
  body.site--cinema #about .about-copy {order:0!important;width:100%!important;max-width:720px;margin-inline:auto;}
  body.site--cinema #about .about-media {order:1!important;width:100%!important;margin-inline:auto;}
}

@media (max-width:767.98px){
  body.site--cinema #about,
  body.site--cinema #why {
    display:block!important;
    min-height:0!important;
    padding-block:clamp(21px,4vw,30px)!important;
  }
  /* Do not force the entire picture above the fold. The title and key
     information get priority while the photo keeps a realistic ratio. */
  body.site--cinema #about .about-media{max-width:min(100%,440px)!important;}
  body.site--cinema #about .about-media__img,
  body.site--cinema #about .about-media__img img{
    aspect-ratio:16/9!important;
    height:auto!important;
    max-height:250px!important;
  }
  body.site--cinema #about .about-copy .sec-head{margin-bottom:0!important;}
  body.site--cinema #why .sec-head{margin-bottom:16px!important;}
}

/* Use a single stable, measured anchor gutter for all section entrances;
   this keeps headings visible below the sticky header on AR/EN. */
body.site--cinema :is(#about,#why,#categories,#coverage,#brands,#contact){
  scroll-margin-top:var(--mayan-current-header,124px)!important;
}
