/* A · Gallery. The City, Golf and Race pages (/city, /golf, /race).
   They reuse base.css and home.css (the hero, up close, photos, the proof slip, the FAQ and the kinds row) and add only
   what is below. Every new class starts with kp-. Loaded after base, home and search. */

/* ---------- hero: home's hero with a still picture in a well (the flip card stays on home) ---------- */
.kp-hero .eyebrow{margin-bottom:clamp(14px,1.6vw,22px)}
.kp-hero__title{text-wrap:balance}
.kp-hero__art{aspect-ratio:1/1;max-height:min(660px,calc(100svh - 150px));margin-left:auto}
.kp-hero__art>img{object-fit:contain}
.kp-hero__art>img.is-plan{padding:7% 17% 6%}

/* ---------- how it works: three steps beside a picture ---------- */
.kp-how__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5.6vw,96px);align-items:center}
.kp-how__copy{min-width:0}
.kp-how__copy .h2{margin:12px 0 clamp(24px,2.8vw,36px)}
.kp-steps{border-top:1px solid var(--line)}
.kp-steps li{display:grid;grid-template-columns:48px minmax(0,1fr);gap:18px;padding:20px 0 22px;border-bottom:1px solid var(--line)}
.kp-steps__n{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--surface);font:600 var(--fs-5)/1 var(--fd)}
.kp-steps h3{padding-top:11px;font:600 var(--fs-4)/1.25 var(--fd)}
.kp-steps p{max-width:46ch;margin-top:6px;color:var(--muted)}
.kp-how__art{min-width:0}
.kp-how__art.well{aspect-ratio:1/1}
.kp-how__art.well>img{object-fit:contain}

/* the designer, three phone screens on ink (city) */
.kp-phones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,1vw,14px);align-items:start;padding:clamp(18px,2.6vw,40px);border-radius:var(--r);background:var(--ink)}
.kp-phones img{width:100%;height:auto;border-radius:12px;box-shadow:0 0 0 1px rgba(255,255,255,.16)}
.kp-phones img:nth-child(2){margin-top:clamp(16px,2.2vw,32px)}

/* ---------- up close: icons the shared sprite doesn't have ---------- */
.acc__ico.kp-ico-mark{display:flex;align-items:flex-end;justify-content:center;gap:3px;padding-bottom:14px}
.kp-ico-mark i{display:block;width:7px;height:var(--h);border-radius:1px;background:#BDBDB8}
.kp-ico-mark i.is-mark{background:var(--mark)}

/* ---------- photos: a grid of three (city, golf); on narrow screens the first one goes wide ---------- */
.photos__grid.kp-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ---------- closing call to action, then the other kinds of map ---------- */
.kp-end__in{display:grid;justify-items:center;text-align:center}
.kp-end__in .lede{margin:16px 0 28px;color:var(--muted)}
.kp-end .kinds{margin-top:clamp(48px,5.6vw,80px)}
@media (min-width:1024px){.kp-end .kinds__list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- responsive ---------- */
@media (max-width:959px){
  .kp-hero__art{max-width:640px;max-height:none;margin-left:0}
  .kp-how__grid{grid-template-columns:1fr;gap:36px}
  .kp-how__art{max-width:640px}
  .photos__grid.kp-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photos__grid.kp-grid-3 .ph-card:first-child{grid-column:1/-1;aspect-ratio:4/3}
}
@media (max-width:767px){
  .kp-steps li{grid-template-columns:44px minmax(0,1fr);gap:14px;padding:16px 0 18px}
  .kp-steps__n{width:44px;height:44px}
  .kp-steps h3{padding-top:9px}
}
@media (max-width:600px){
  .kp-hero .hero__meta{margin-top:14px}
  .kp-how__art.well{aspect-ratio:4/3}            /* the second render, shorter under the hero's */
}
