/* Keep the Home page compact so content follows without empty bands. */
.countdown-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.details.details-without-heading {
  padding-top: 28px;
  padding-bottom: 28px;
}

.class-gallery {
  padding-top: 44px;
  padding-bottom: 44px;
}

.finale {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Remove inherited oversized vertical bands on the Home page. */
body:not(.celebration-page) .hero {
  height: min(760px, 88svh);
  min-height: 620px;
}

body:not(.celebration-page) .details-grid article {
  padding-top: 20px;
  padding-bottom: 4px;
}

body:not(.celebration-page) .details-grid h3 {
  margin-top: 12px;
}

body:not(.celebration-page) .details-grid p {
  margin-bottom: 8px;
}

.class-gallery-head {
  margin-bottom: 28px;
}

/* Keep The Celebration page flowing without oversized blank bands. */
.celebration-page .page-title {
  padding-top: 40px;
  padding-bottom: 40px;
}

.celebration-page .event-intro {
  padding: 38px 7vw 10px;
  margin: 0;
}

.celebration-page .event-intro.celebration-dark {
  padding-bottom: 18px;
}

.celebration-page .event-intro.celebration-dark .event-section-date.dinner-date {
  margin-bottom: 8px;
}

.celebration-page .event-intro.celebration-dark > p:last-child {
  margin-top: 0;
}

.celebration-page .event-gallery {
  padding: 10px 7vw 38px;
  margin: 0;
  align-items: start;
}

/* Keep each caption directly beneath its photograph at every screen size. */
.celebration-page .event-gallery figure {
  align-self: start;
  display: block;
}

.celebration-page .event-gallery figcaption {
  position: static;
  margin: 0;
}

.celebration-page .menu-card {
  padding-top: 44px;
  padding-bottom: 44px;
}

.celebration-page .travel-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.celebration-page .dinner-photo img {
  min-height: 520px;
}

@media (max-width: 600px) {
  .celebration-page .page-title {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .celebration-page .event-intro {
    padding: 32px 6vw 8px;
  }

  .celebration-page .event-gallery,
  .celebration-page .event-gallery.three-up {
    padding: 8px 6vw 32px;
  }

  .celebration-page .menu-card,
  .celebration-page .travel-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .countdown-section,
  .details.details-without-heading,
  .class-gallery {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .finale {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  body:not(.celebration-page) .hero {
    height: auto;
    min-height: 600px;
  }

  .hero-content { position: relative; top: auto; left: auto; right: auto; transform: none; padding: 74px 6vw 64px; }
  .hero-image { object-position: 58% center; }
  .hero-overlay { background: linear-gradient(90deg,rgba(30,13,39,.96),rgba(45,19,54,.76) 68%,rgba(30,13,39,.38)); }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 4.35rem); }
  .class-gallery-head { display: block; }
  .class-gallery-head > p:last-child { margin-top: 18px; }
  .details-grid article { padding: 18px 0; }
  .details-grid article:first-child { padding-top: 4px; }
  .details-grid article:last-child { border-bottom: 0; }
}

/* Show the complete supplied NATCHEZ photograph without cropping at any screen size. */
.celebration-page .natchez-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
