.gallery-intro {
  max-width: 65rem;
  padding-block: clamp(3.8rem, 9vw, 8rem) clamp(2.5rem, 5.5vw, 5rem);
  text-align: center;
}

.gallery-intro h1 {
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(3.3rem, 8.7vw, 8.3rem);
  letter-spacing: -.06em;
}

.gallery-intro em {
  color: var(--wine);
  font-weight: 400;
}

.site-nav a[aria-current="page"]::after,
.footer-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.gallery-footer-bottom {
  align-items: center;
}

.gallery-owner-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.gallery-owner-link:focus-visible {
  outline-color: currentColor;
}

.gallery-section {
  margin-bottom: clamp(3.6rem, 8vw, 7rem);
}

.gallery-section h2,
.gallery-callout h2 {
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
}

.gallery-section > h2,
.gallery-section-header {
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.gallery-section-header p {
  margin-top: .45rem;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.05rem, 2.4vw, 2.2rem);
}

.gallery-inspiration {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  min-width: 0;
  margin: 0;
}

.gallery-wide { grid-column: span 2; }

.gallery-card img,
.gallery-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  object-fit: cover;
}

.gallery-inspiration img { aspect-ratio: 4 / 5; }
.gallery-wide img { aspect-ratio: 3 / 2; }
.gallery-card video {
  aspect-ratio: 16 / 9;
  background: var(--wine-dark);
  object-fit: contain;
}

.gallery-card figcaption { padding-top: .6rem; }

.gallery-card h3,
.gallery-card figcaption > a,
.gallery-card figcaption > span {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.gallery-card figcaption > a:hover {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.gallery-card figcaption p {
  margin-top: .25rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.gallery-callout {
  margin-bottom: clamp(3rem, 7vw, 6rem);
  padding: clamp(1.65rem, 6vw, 4rem);
  background: var(--sand);
  text-align: center;
}

.gallery-callout .button { margin-top: 1.1rem; }

@media (max-width: 67rem) {
  .site-nav { gap: clamp(.7rem, 1.9vw, 1.65rem); }
}

@media (max-width: 50rem) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-wide { grid-column: auto; }
}

@media (max-width: 30rem) {
  #published-media { grid-template-columns: minmax(0, 1fr); }
  .gallery-wide { grid-column: 1 / -1; }
}
