/* Gallery photographs form a full-width hero on each page. */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 68svh, 720px);
  overflow: hidden;
  padding: 80px max(6%, calc((100vw - 1100px) / 2));
  background: #26332f;
  color: #eaf7f1;
}

.page-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.page-hero-photo img {
  position: absolute;
  top: -65%;
  left: 0;
  width: 100%;
  height: 230%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--page-hero-drift, 0px), 0);
  will-change: transform;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 29, 23, 0.84), rgba(12, 29, 23, 0.5));
  pointer-events: none;
}

.page-hero-copy {
  width: 100%;
  max-width: 1000px;
  min-width: 0;
}

.page-hero h1,
.page-hero h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.page-hero .eyebrow {
  color: #a8dcc8;
}

.page-hero .gallery-note {
  margin-top: 24px;
  margin-bottom: 0;
  color: #eaf7f1;
}

.gallery-hero {
  min-height: 430px;
  margin-bottom: 40px;
  padding: 56px 6%;
  border-radius: 24px;
  box-shadow: var(--photo-shadow);
}

@media (max-width: 600px) {
  .page-hero {
    min-height: 420px;
    padding: 64px 6%;
  }

  .page-hero h1,
  .page-hero h2 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .gallery-hero {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-photo img {
    transform: none;
    will-change: auto;
  }
}
