/* Suite 9/14 — residence-specific architectural gallery layouts.
 * Presentation geometry ONLY: no colors, images, art, candle assets, or content replaced.
 * Images display at their original aspect ratios to avoid stretching or pixel blur.
 * Each composition reflects the spatial hierarchy of its named residence.
 */
body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  grid-auto-flow:row;
  gap:clamp(10px,1.1vw,18px)!important;
  align-items:start;
}
body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure{
  min-width:0;
  width:100%;
  margin:0;
  align-self:start;
}
body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure img{
  display:block;
  width:100%!important;
  max-width:100%;
  height:auto!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  transform:none!important;
}
/* Apartment 914: living space with its separate bedroom and entrance. */
body.apartment914 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(1){grid-column:1/8;grid-row:1/span 2}
body.apartment914 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(2){grid-column:8/13;grid-row:1}
body.apartment914 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(3){grid-column:8/13;grid-row:2}
body.apartment914 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(4){grid-column:1/8;grid-row:3}
body.apartment914 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(5){grid-column:8/13;grid-row:3}
/* Suite 304: distinct sitting and sleeping zones, with secondary atmosphere below. */
body.suite304 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(1){grid-column:1/7;grid-row:1}
body.suite304 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(2){grid-column:7/13;grid-row:1}
body.suite304 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(3){grid-column:1/9;grid-row:2}
body.suite304 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(4){grid-column:9/13;grid-row:2}
/* Loft 11E: tall open living volume beside kitchen / mezzanine-bedroom tiers. */
body.loft11e #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(1){grid-column:1/9;grid-row:1/span 2}
body.loft11e #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(2){grid-column:9/13;grid-row:1}
body.loft11e #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(3){grid-column:9/13;grid-row:2}
body.loft11e #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(4){grid-column:1/9;grid-row:3}
body.loft11e #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(5){grid-column:9/13;grid-row:3}
/* Room 208: compact, intimate room-scale arrangement. */
body.room208 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(1){grid-column:1/7;grid-row:1}
body.room208 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(2){grid-column:7/13;grid-row:1}
body.room208 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(3){grid-column:1/5;grid-row:2}
body.room208 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(4){grid-column:5/9;grid-row:2}
body.room208 #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(5){grid-column:9/13;grid-row:2}
/* Studio 3A: the sitting, sleeping, and dining views form a single open level. */
body.studio3a #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(1){grid-column:1/5;grid-row:1}
body.studio3a #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(2){grid-column:5/9;grid-row:1}
body.studio3a #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(3){grid-column:9/13;grid-row:1}
body.studio3a #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(4){grid-column:1/9;grid-row:2}
body.studio3a #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(5){grid-column:9/13;grid-row:2}
/* Penthouse: broad, panoramic living floor above a private-space sequence. */
body.penthouse #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(1){grid-column:1/13;grid-row:1}
body.penthouse #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(2){grid-column:1/5;grid-row:2}
body.penthouse #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(3){grid-column:5/9;grid-row:2}
body.penthouse #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(4){grid-column:9/13;grid-row:2}
body.penthouse #inside-apartment .suite914-approved-angle-gallery>figure:nth-child(5){grid-column:5/9;grid-row:3}
/* Mobile / iPad: preserve natural photo proportions and reading order. */
@media(max-width:800px){
  body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure{
    grid-row:auto!important;
    grid-column:auto!important;
  }
  body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure:first-child,
  body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure.s914-approved-scene-figure,
  body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure.s914-branded-room-view{
    grid-column:1/-1!important;
  }
}
@media(max-width:430px){
  body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure{
    grid-column:1/-1!important;
  }
}


/* Oct 22 approved presentation: one original photograph per view.
   Overrides the prior mosaic geometry without changing images or captions. */
body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:0!important;
  position:relative;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery::-webkit-scrollbar{display:none}
body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure{
  flex:0 0 100%!important;
  min-width:100%!important;
  max-width:100%!important;
  width:100%!important;
  margin:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:flex;
  justify-content:center;
  align-items:center;
}
body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure>a{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:auto;
}
body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery>figure img{
  display:block;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:min(82vh,850px)!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  transform:none!important;
  margin:0 auto;
}
@media(prefers-reduced-motion:reduce){
  body[data-residence-theme] #inside-apartment .suite914-approved-angle-gallery{scroll-behavior:auto}
}

/* Navigation is below the image, never layered across approved artwork. */
.s914-single-photo-controls{
  display:flex;align-items:center;justify-content:center;
  gap:1.1rem;padding:1.1rem 0 .25rem;
  color:var(--suite-color,var(--accent,#30485f));
}
.s914-single-photo-controls button{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:50%;
  border:1px solid currentColor;background:transparent;color:inherit;
  font:400 1.45rem/1 Georgia,serif;cursor:pointer;
}
.s914-single-photo-controls button:hover:not(:disabled){background:rgba(35,40,40,.08)}
.s914-single-photo-controls button:focus-visible{outline:3px solid #b89562;outline-offset:3px}
.s914-single-photo-controls button:disabled{opacity:.3;cursor:default}
.s914-single-photo-count{min-width:72px;text-align:center;font:600 .72rem Arial,sans-serif;letter-spacing:.14em}

/* Oct 22 contrast-only correction. This affects lettering only, never photos,
   surfaces, room palettes, layouts or approved content. Stable selectors keep
   text bright even when older editorial styles are cached. */
#inside-apartment.brownstone-photo-gallery .suite-gallery-header h2{
  color:#fff1dd!important;
}
#inside-apartment.brownstone-photo-gallery .suite-gallery-header p{
  color:#f0dfcb!important;
}
body.apartment914 #inside-apartment.brownstone-photo-gallery .suite-gallery-header .suite-eyebrow{color:#d1a66d!important}
body.suite304 #inside-apartment.brownstone-photo-gallery .suite-gallery-header .suite-eyebrow{color:#dac49b!important}
body.loft11e #inside-apartment.brownstone-photo-gallery .suite-gallery-header .suite-eyebrow{color:#e3b486!important}
body.room208 #inside-apartment.brownstone-photo-gallery .suite-gallery-header .suite-eyebrow{color:#e0b98e!important}
body.studio3a #inside-apartment.brownstone-photo-gallery .suite-gallery-header .suite-eyebrow{color:#f1c6d2!important}
body.penthouse #inside-apartment.brownstone-photo-gallery .suite-gallery-header .suite-eyebrow{color:#cdb98f!important}
#inside-apartment.brownstone-photo-gallery .s914-single-photo-controls{
  color:#f8ead9!important;
}

/* Oct 26 scrollbar-only correction: live pages use a residence class, not
   data-residence-theme. Keep horizontal swiping, scroll snapping, and arrows;
   hide only the browser's native scrollbar on the approved single-photo gallery. */
#inside-apartment .suite914-approved-angle-gallery[data-s914-single-photo="true"]{
  scrollbar-width:none!important;
  -ms-overflow-style:none;
}
#inside-apartment .suite914-approved-angle-gallery[data-s914-single-photo="true"]::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
