/* =====================================================================
   Daytime Design Co. — Project Grid (the short case study)
   For past work with finished mockups but no long-form story:
   the cs-hero from case-study.css, aligned rows of mockups, the shared
   cs-next module, then the shared CTA. Never forks case-study.css; extends it.
   Rows: horizontals 2-up, portraits and stories 3-up at one shared shape.
   Anything off-shape sits in a brand-color box.
   Load order: styles.css → case-study.css → project-grid.css → <client>.css
   ===================================================================== */

/* hero art: the lead mockup, framed like a print on the field */
.cs-hero__art { padding: 12px; }
.pg-cover {
  display: block; width: auto; height: auto;
  max-width: min(640px, 100%); max-height: 70vh;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(20, 16, 10, 0.22);
  transform: rotate(-2.5deg);
}
.cs-hero--dark .pg-cover { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }

/* the rows */
.pg-grid { background: var(--cs-paper); padding: 96px 0 104px; }
.pg-rows { display: flex; flex-direction: column; gap: 24px; }
.pg-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; }
/* a short row keeps the 3-up size and centers */
.pg-row--short { grid-template-columns: repeat(auto-fit, calc((100% - 48px) / 3)); justify-content: center; }
.pg-cell {
  margin: 0; aspect-ratio: var(--ar);
  border-radius: 14px; overflow: hidden;
  background: var(--pg-box, var(--cs-hero-field));
}
.pg-cell img, .pg-cell video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-cell--contain img, .pg-cell--contain video { object-fit: contain; }

/* the grid ends straight into the shared Next Project module */
.pg-grid + .cs-next { padding-top: 40px; }

@media (max-width: 820px) {
  .pg-cover { transform: rotate(-1.5deg); max-height: 60vh; }
  .pg-grid { padding: 56px 0 64px; }
  .pg-rows, .pg-row { gap: 10px; }
  .pg-row--land { grid-template-columns: minmax(0, 1fr); }
  .pg-row--short { grid-template-columns: repeat(auto-fit, calc((100% - 20px) / 3)); }
  .pg-cell { border-radius: 10px; }
}

/* a layered composition (cut-out print pieces, stickers) that carries its own
   shadows: no frame, no tilt, sits a little larger */
.pg-cover--free {
  border-radius: 0; box-shadow: none; transform: none;
  max-width: min(720px, 112%); max-height: 78vh;
}
.cs-hero--dark .pg-cover--free { box-shadow: none; }
@media (max-width: 820px) { .pg-cover--free { transform: none; max-height: none; max-width: 100%; } }

/* the CTA's top wave sits on the page colour; when it follows the Next Project
   band, paint it in the band's colour so there's no hard seam above the scallops */
.cs-next + .wave--top { background: var(--cs-paper); }
