/* ------------------------------------------------------------------
   portfolio.css - a single project.

   Loads after base.css, modern.css, components.css, listing.css and prose.css.
   The write-up and the facts about the build sit side by side right under the
   short hero; the screenshots follow on the pale band.
   ------------------------------------------------------------------ */

/* --- the write-up and the facts -------------------------------------- */
.case-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:clamp(36px,5vw,72px);align-items:start}
.case-story .sec-title{margin-bottom:16px}
.case-story .tags{margin-bottom:24px}
.case-story .prose{max-width:780px}
.case-visit{margin:30px 0 0}
.facts{position:sticky;top:calc(var(--hh) + 18px);padding:26px 26px 28px;border:1px solid rgba(20,23,41,.07);border-radius:21px;background:#eeebff}
.facts h2{margin:0;color:#15192a;font-size:22px;font-weight:750;line-height:1.25;letter-spacing:-.04em}
.facts-type{margin:6px 0 0;color:#4f4496;font-size:11px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.facts-list{display:grid;gap:0;margin:20px 0 0}
.facts-list div{padding:15px 0;border-top:1px solid rgba(79,68,150,.14)}
.facts-list dt{color:#6a6290;font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.facts-list dd{margin:5px 0 0;color:#2c3550;font-size:14px;font-weight:650;line-height:1.55;overflow-wrap:anywhere}

/* --- screenshots: the cover shot full width, more below in two columns --- */
.shot{margin:0;overflow:hidden;border:1px solid #e8e0ec;border-radius:21px;background:#fff;box-shadow:0 14px 40px rgba(59,28,73,.06)}
.shot img{display:block;width:100%;height:auto}
.shot figcaption{padding:12px 18px;background:#fff;color:#6a6270;font-size:13px}
.shots{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}
.shot-wide{grid-column:1/-1}

/* --- smaller screens ------------------------------------------------- */
@media(max-width:960px){
  .case-grid{grid-template-columns:1fr}
  .facts{position:static}
}
@media(max-width:820px){
  .shots{grid-template-columns:1fr}
}
