/* Project Cases page — this page's own sheet, and only the rules the shared
   layer does not already carry. The palette, the spacing and the type come from
   assets/css/tokens.css, assets/css/pages.css and style.css; nothing is
   redefined here. This sheet is enqueued site-wide (functions.php), so every
   rule is scoped to the .cases- names only this template renders. */

.cases-group{margin-top:56px}
/* The section head already carries its own bottom margin, so the first group
   only takes the rest of the gap. */
.section__head + .cases-group{margin-top:34px}
.cases-group__head{max-width:70ch}
.cases-group__head h3{margin:8px 0 0}
.cases-group__text{margin:12px 0 0;font-size:15px;color:var(--color-muted)}
.cases-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:26px}
.cases-shot{position:relative;overflow:hidden;margin:0;background:var(--color-surface);border:1px solid var(--color-line);border-radius:var(--radius-md)}
.cases-photo{display:block;width:100%;height:240px;object-fit:cover}
.cases-caption{margin:0;padding:14px 18px;border-top:1px solid var(--color-line);font-size:13px;font-weight:600;color:var(--color-navy)}

/* ---------------------------------------------------------- Responsive -- */
@media(max-width:980px){
  .cases-group{margin-top:44px}
  .cases-gallery{grid-template-columns:1fr 1fr;gap:20px}
}
@media(max-width:640px){
  .cases-group{margin-top:36px}
  .cases-gallery{grid-template-columns:1fr}
  .cases-photo{height:200px}
}
