.page-intro {
  padding: clamp(80px, 12vw, 152px) 0 62px;
}

.page-intro h1 {
  max-width: 750px;
  margin: 0;
  font: 500 clamp(60px, 8vw, 112px)/.83 var(--serif);
  letter-spacing: -.06em;
}

.page-intro h1 em { color: var(--gold); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 14px;
  padding-bottom: clamp(90px, 12vw, 160px);
}

.gallery .work {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--sand);
}

.gallery .work:nth-child(1),
.gallery .work:nth-child(8) { grid-row: span 2; }

.gallery .work:nth-child(5),
.gallery .work:nth-child(11) { grid-column: span 2; }

.gallery .work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .4s;
}

.gallery .work:hover img { transform: scale(1.055); filter: saturate(1.08); }

.gallery .work:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, #24141455);
}

.gallery .work figcaption {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 13px;
  color: #fff;
  font: 700 10px var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 650px) {
  .page-intro { padding: 78px 0 45px; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 210px;
    gap: 9px;
  }
  .gallery .work:nth-child(5),
  .gallery .work:nth-child(11) { grid-column: auto; }
  .gallery .work:nth-child(1),
  .gallery .work:nth-child(8) { grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery .work img { transition: none; }
}
