.gallery-intro {
  display: block;
  padding: 12px 4% 42px;
}

.gallery-intro .eyebrow {
  margin: 0 0 12px;
  color: #777;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
}

.gallery-intro h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.3vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.08;
}

.gallery-intro > p:last-child {
  margin: 14px 0 0;
  color: #666;
  font-size: 1rem;
  line-height: 1.55;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: clamp(12px, 1.6vw, 24px);
  row-gap: clamp(28px, 3.3vw, 54px);
  padding: 0 4% 100px;
}

.photo,
.photo:nth-child(n) {
  grid-column: span 2;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: visible;
}

.photo--lead,
.photo--lead:nth-child(n) {
  grid-column: span 3;
}

.photo:last-child:nth-child(3n):not(.photo--lead) {
  grid-column: 3 / span 2;
}

.photo button {
  height: auto;
  overflow: hidden;
  background: #f3f3f3;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  transition: opacity .25s ease;
}

.photo button:hover img {
  transform: none;
  opacity: .88;
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .photo:nth-child(n),
  .photo--lead:nth-child(n),
  .photo:last-child:nth-child(3n):not(.photo--lead) {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .gallery-intro {
    padding: 0 5% 28px;
  }

  .gallery-intro h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .gallery-intro > p:last-child {
    margin-top: 10px;
  }

  .gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 0 5% 64px;
  }

  .photo:nth-child(n),
  .photo--lead:nth-child(n),
  .photo:last-child:nth-child(3n):not(.photo--lead) {
    grid-column: 1;
    margin: 0;
  }

  .photo img {
    aspect-ratio: 3 / 2;
  }
}

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