.photo-gallery {
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.photo-gallery-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(14px, 2.5vw, 22px);
}

.photo-gallery-heading h2 {
  margin-top: 6px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.photo-gallery-heading > p {
  color: var(--muted);
  font-size: .83rem;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
}

.photo-gallery-card,
.photo-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.photo-gallery-card img,
.photo-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.photo-gallery-card figcaption,
.photo-feature figcaption {
  display: grid;
  gap: 5px;
  padding: clamp(13px, 2vw, 20px);
}

.photo-gallery-card figcaption > span,
.photo-feature figcaption > p {
  color: var(--muted);
  font-size: .94rem;
}

.photo-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  margin-block: clamp(25px, 4vw, 50px);
}

.photo-feature figcaption {
  gap: 10px;
  padding: clamp(18px, 4vw, 48px);
}

.photo-feature figcaption > span {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
}

.photo-feature strong {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .photo-gallery-grid,
  .photo-feature {
    grid-template-columns: 1fr;
  }

  .photo-gallery-card img {
    aspect-ratio: 16 / 10;
  }
}
