/* Mobile-first gallery directory sizing and scroll stability. */
html { width:100%; max-width:100%; scroll-behavior:auto!important; }
body { width:100%; max-width:100%; overflow-x:hidden; }
main.wrap { width:100%; max-width:1220px; margin-inline:auto; padding-inline:clamp(14px,4vw,24px); }
main.wrap > * { min-width:0; max-width:100%; }
.reel { width:100%; max-width:100%; margin-inline:auto; overflow:hidden; line-height:0; border-radius:12px; }
.reel video { display:block; width:100%; max-width:100%; height:auto!important; aspect-ratio:16/9; object-fit:cover; }
.sg-featured-promo,.featured { display:block; width:100%; max-width:100%; margin-inline:auto; }
/* The full portrait fills its frame below the reel. Use its native aspect
   ratio instead of squeezing it into a viewport-height box with side gaps. */
.sg-featured-promo > img,.featured > img { display:block; width:100%!important; max-width:100%; height:auto!important; max-height:none; margin-inline:auto; object-fit:contain; object-position:center; }
#male-gallery-preview-title + div,.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; max-width:100%; }
#male-gallery-preview-title + div img,.gallery-grid img { display:block; width:100%; max-width:100%; height:auto; max-height:min(78svh,820px); object-fit:contain; object-position:center; }
.gallery-city-search { width:100%; max-width:100%; min-width:0; }
.gallery-city-search input,.gallery-city-search button { width:100%; max-width:100%; min-width:0; }
img,video { max-width:100%; }
@media(max-width:650px) {
  html,body { background-attachment:scroll!important; }
  main.wrap { padding-inline:16px; }
  .hero { padding-top:32px; }
  .hero h1 { overflow-wrap:anywhere; }
  .region { grid-template-columns:minmax(0,1fr); gap:12px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #male-gallery-preview-title + div,.gallery-grid { grid-template-columns:minmax(0,1fr); }
  #male-gallery-preview-title + div img,.gallery-grid img { max-height:76svh; }
  .reel video { aspect-ratio:16/9; }
}
