/* Khetan Swiss Gardens page (/khetan-swiss-gardens-mohali).
   Additions on top of noble-pages.css; load AFTER it. Everything is scoped to .kh-page.
   Layout tested 16 Nov 2026 on the live site at 1680, 820 and 390 px: every grid row is full at each width. */

/* Show-flat gallery: 12 portrait photos -> 4 columns x 3 rows, 3 x 4 on tablet, 2 x 6 on phone. */
.kh-page .h-gal.nb-gal.kh-portrait{grid-template-columns:repeat(4,1fr)}
.kh-page .h-gal.nb-gal.kh-portrait > figure img{aspect-ratio:3/4;height:auto;object-fit:cover}
@media (max-width:900px){.kh-page .h-gal.nb-gal.kh-portrait{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.kh-page .h-gal.nb-gal.kh-portrait{grid-template-columns:repeat(2,1fr)}}

/* Walkthrough video above the photo grid: portrait video beside a short note, centred vertically on purpose. */
.kh-page .kh-walk{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center;margin-bottom:clamp(2.25rem,4.5vw,3.5rem)}
.kh-page .kh-vid{margin:0}
.kh-page .kh-vid video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;background:#000;border-radius:6px}
.kh-page .kh-walk-copy{max-width:52ch}
.kh-page .kh-walk-copy p + p{margin-top:.9rem}
@media (max-width:700px){
  .kh-page .kh-walk{grid-template-columns:1fr}
  .kh-page .kh-vid{width:100%;max-width:360px;justify-self:center}
}

/* Shared bits */
.kh-page .kh-sub{font-size:1.25rem;margin:0 0 .9rem}
.kh-page .bg-warm-dark .kh-sub{color:var(--ivory,#f8f4ec)}
.kh-page .kh-aside{margin-top:1.1rem;font-size:.9rem;line-height:1.6}
.kh-page .kh-cta{margin-top:1.4rem}

/* Price section: price table, then the two payment plans side by side (similar heights). */
.kh-page .kh-price th,.kh-page .kh-price td{white-space:nowrap}
.kh-page .kh-plans{margin-top:clamp(2rem,4vw,3rem);align-items:start}
.kh-page .kh-pay{width:100%}
.kh-page .kh-pay td:first-child{width:auto;white-space:nowrap}
.kh-page .kh-pay td:last-child{text-align:right;white-space:nowrap}

/* Developer: text beside a facts table */
.kh-page .kh-dev{align-items:start}
.kh-page .kh-dev p + p{margin-top:1rem}

/* Compare: full-width table, then two equal "suits you if" blocks */
.kh-page .kh-cmp th,.kh-page .kh-cmp td:not(:first-child){width:40%}
.kh-page .kh-suits{margin-top:clamp(1.75rem,3.5vw,2.75rem);align-items:start}

/* Location: map card and the four notes share one row height (map is contained, never cropped). */
.kh-page .kh-loc{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,3vw,3rem);align-items:stretch}
.kh-page .kh-map{position:relative;margin:0;min-height:420px;border-radius:6px;overflow:hidden;background:#F8F4EC;border:1px solid var(--rule-dk);cursor:zoom-in}
.kh-page .kh-map img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:.75rem .75rem 2rem}
.kh-page .kh-map figcaption{position:absolute;left:.85rem;bottom:.6rem;font-size:.66rem;color:#6b6358}
.kh-page .h-pillars.kh-stack{grid-template-columns:1fr;align-content:space-between}

/* Let wide tables scroll inside their own box instead of pushing the grid wider than the screen */
.kh-page .kh-plans > div,.kh-page .kh-dev > div,.kh-page .kh-loc > *{min-width:0}

/* Tablet */
@media (max-width:900px){
  .kh-page .kh-loc,.kh-page .kh-plans,.kh-page .kh-dev{grid-template-columns:1fr}
  .kh-page .kh-map{min-height:0;aspect-ratio:1.1/1}
  /* 5 stat tiles: 3 on the first row, 2 wider ones on the second (no empty cell) */
  .kh-page .h-glance-stats{grid-template-columns:repeat(6,1fr)}
  .kh-page .h-glance-stats > div{grid-column:span 2}
  .kh-page .h-glance-stats > div:nth-child(n+4){grid-column:span 3}
  /* 3 amenity groups in 2 columns: the third runs full width */
  .kh-page #amenities .h-pillars > div:last-child:nth-child(odd){grid-column:1/-1}
}

/* Phone */
@media (max-width:560px){
  .kh-page .h-glance-stats{grid-template-columns:repeat(2,1fr)}
  .kh-page .h-glance-stats > div,.kh-page .h-glance-stats > div:nth-child(n+4){grid-column:auto}
  .kh-page .h-glance-stats > div:last-child{grid-column:1/-1}
  .kh-page .kh-pay td:first-child{white-space:normal}
  .kh-page #amenities .h-pillars > div:last-child:nth-child(odd){grid-column:auto}
}

/* Plans grid (fix 16 Nov, after live check): noble-pages.css frames plans at 4:5 portrait for Noble's plans.
   Khetan's plans are landscape, so frame them 3:2 and keep each caption inside its card. Site plan is padded to 3:2 too. */
.kh-page .h-gal.nb-plangal > figure{height:auto;aspect-ratio:auto;overflow:visible}
.kh-page .h-gal.nb-plangal > figure img{aspect-ratio:3/2;height:auto;max-height:none}
