/* Our Work (/our-work/) and The Showcase (/our-work/showcase/).
   Our Work: their seven categories in their order, each its photo beside its name, alternating sides.
   A unit on the studio sweep stands edgeless on the ground, its foot on the row's foot; a photograph shows whole. */

.work-head .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; }
.work-head h1 { font-size: clamp(2.1rem, 1rem + 4.2vw, 4.75rem); }

.work-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(72px, 9vw, 140px); }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: end; }
.work-img { display: flex; justify-content: center; align-items: flex-end; }
.work-img picture { display: block; }
.work-row.is-cut .work-img img { display: block; width: auto; max-width: 100%; height: clamp(300px, 34vw, 460px); }
.work-row.is-photo .work-img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.work-row.is-photo .work-img picture { width: min(100%, 560px); }
.work-text { display: grid; gap: 16px; justify-items: start; max-width: var(--measure); }
.work-text h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); text-wrap: balance; }
.work-text h2 a { color: var(--white); text-decoration: none; }
.work-text h2 a:hover { color: var(--gold-action); }
.work-text p { margin: 0; }

@media (min-width: 861px) {
  .work-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
  .work-row.flip .work-img { order: 2; }
}
@media (max-width: 860px) {
  .work-row.is-cut .work-img img { height: auto; max-height: 360px; }
}

/* The Showcase entry on Our Work: words and a door, then a glimpse of what is inside */
.work-showcase { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.work-showcase .wrap { display: grid; gap: clamp(32px, 4vw, 56px); }
.showcase-text { display: grid; gap: 16px; justify-items: start; max-width: var(--measure); }
.showcase-text h2 { font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); }
.showcase-text p { margin: 0; }
.showcase-strip { display: block; text-decoration: none; }
.showcase-strip .gallery { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 24px clamp(16px, 2.4vw, 32px); }
.showcase-strip .gallery li { flex: 0 0 auto; }
.showcase-strip .gallery picture { display: block; }
.showcase-strip .gallery img { display: block; height: clamp(150px, 16vw, 240px); width: auto; max-width: 100%; }
@media (max-width: 760px) {
  .showcase-strip .gallery li:nth-child(n+4) { display: none; }
  .showcase-strip .gallery { flex-wrap: nowrap; gap: 12px; }
  .showcase-strip .gallery img { height: 120px; }
}

/* The Showcase page: every piece at one height, so the categories read as one wall */
@media (min-width: 761px) {
  .showcase-gallery .gallery .is-photo { width: auto; }
  .showcase-gallery .gallery .is-photo img { height: clamp(320px, 30vw, 460px); width: auto; }
}
