.hero {
    position: relative;
    min-height: 640px;
    height: min(100vh, 780px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
    linear-gradient(to bottom, rgba(13, 42, 64, 0.35) 0%, rgba(13, 42, 64, 0.25) 50%, rgba(24, 53, 32, 0.55) 100%),
    url("/assets/images/culture_inlines/culture_head.jpeg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 120px 2rem 7.5rem;
    overflow: hidden;
  }

  .listen-button:hover {
    transform: translateY(-2px);
    background: #c04e4e;
  }

/* Cycle diagram — same rules as /css/story.css (kept here for culture-only edits); body prefix + !important beats stray flex/img rules */
body.story-theme--culture .culture-cycle-graphic {
  box-sizing: border-box !important;
  width: min(420px, calc(100vw - 1.25rem)) !important;
  max-width: 100% !important;
  margin: 0.75rem auto 1.25rem !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.story-theme--culture .culture-cycle-graphic img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Inline image-frame carousel (culture story) */
.image-frame-gallery {
  position: relative;
  width: 100%;
  max-width: 975px;
  margin: 4rem auto;
}

.image-frame-gallery .image-frame {
  margin: 0;
}

.image-frame-gallery:focus {
  outline: none;
}

.image-frame-gallery:focus-visible {
  outline: 2px solid var(--cream, #fdf8ee);
  outline-offset: 4px;
}

.image-frame-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(17, 46, 81, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.image-frame-gallery__arrow:hover {
  background: rgba(17, 46, 81, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.image-frame-gallery__arrow svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.image-frame-gallery__arrow--prev {
  left: clamp(8px, 2vw, 16px);
}

.image-frame-gallery__arrow--next {
  right: clamp(8px, 2vw, 16px);
}

@media (max-width: 520px) {
  .image-frame-gallery__arrow {
    width: 38px;
    height: 38px;
  }

  .image-frame-gallery__arrow svg {
    width: 22px;
    height: 22px;
  }
}

/* Caption plate over illustration (matches design reference: white box, maroon border, centered serif) */
.image-frame-gallery .image-frame-gallery__caption {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 2.2vw, 18px);
  transform: translateX(-50%);
  box-sizing: border-box;
  width: min(82%, calc(100% - clamp(16px, 4vw, 36px)));
  margin: 0;
  padding: clamp(14px, 2.8vw, 22px) clamp(16px, 3vw, 28px);
  background: #fff;
  border: 1px solid #6b3030;
  z-index: 1;
  pointer-events: none;
}

.image-frame-gallery .image-frame-gallery__caption-text {
  margin: 0;
  color: #000;
  font-family: Gelasio, Georgia, 'Times New Roman', serif;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .image-frame-gallery .image-frame-gallery__caption {
    width: min(88%, calc(100% - 20px));
    padding: 12px 14px;
  }

  .image-frame-gallery .image-frame-gallery__caption-text {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* 1976 Hōkūleʻa voyage: map + flip cards (transparent section background) */
.voyage-stats {
  --voyage-coral: #d96e6d;
  --voyage-cream: #fdf7e9;
  --voyage-title-coral: #de6f6f;
  background: transparent;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.voyage-stats__title {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-family: Gelasio, Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--voyage-title-coral);
  letter-spacing: -0.02em;
}

.voyage-stats__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.voyage-stats__map {
  margin: 0;
}

.voyage-stats__map img {
  display: block;
  width: 100%;
  height: auto;
  background: #112e51;
  border: 2px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.voyage-stats__cards {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.voyage-stats__source {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-family: Gelasio, Georgia, serif;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--voyage-title-coral);
}

/* Flip card */
.voyage-card {
  perspective: 1100px;
  cursor: pointer;
  min-height: 168px;
  outline: none;
}

.voyage-card:focus-visible {
  border-radius: 26px;
  box-shadow: 0 0 0 3px rgba(222, 111, 111, 0.55);
}

.voyage-card__flip {
  position: relative;
  width: 100%;
  min-height: 168px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.03, 0.2, 1);
}

.voyage-card.is-flipped .voyage-card__flip {
  transform: rotateY(180deg);
}

.voyage-card__side {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.voyage-card__side--front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.35rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2vw, 1.25rem);
  background: var(--voyage-coral);
}

.voyage-card__heading {
  margin: 0;
  padding: 0 0.5rem;
  font-family: 'Proza Libre', sans-serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.15;
}

.voyage-card__cta {
  margin-top: auto;
}

.voyage-card__cta-inner {
  display: inline-block;
  padding: 0.45rem 1.35rem;
  border-radius: 999px;
  font-family: Gelasio, Georgia, serif;
  font-size: clamp(13px, 1.35vw, 15px);
  font-weight: 600;
  color: #111;
  background: #f8d5d5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.voyage-card__side--back {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1rem);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background: var(--voyage-cream);
  transform: rotateY(180deg);
}

.voyage-card__graphic {
  flex: 1;
  color: var(--voyage-coral);
}

.voyage-card__graphic--people {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 22px));
  gap: 6px 8px;
  justify-content: center;
  align-content: center;
  max-width: min(52%, 200px);
}

.voyage-card__graphic--people .voyage-icon-profile {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.voyage-card__graphic--distance {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 58%;
}

/* map_arrow between map_pin at top-left and bottom-right */
.voyage-distance-map {
  position: relative;
  width: 100%;
  min-width: 100px;
  max-width: 200px;
  aspect-ratio: 5 / 4;
  min-height: 84px;
  flex-shrink: 0;
}

.voyage-distance-map__arrow {
  position: absolute;
  left: 6%;
  right: 8%;
  top: 8%;
  bottom: 10%;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.voyage-distance-map__pin {
  position: absolute;
  width: clamp(26px, 26%, 38px);
  height: auto;
  object-fit: contain;
  z-index: 1;
}

.voyage-distance-map__pin--tl {
  top: 0;
  left: 0;
}

.voyage-distance-map__pin--br {
  bottom: 0;
  right: 0;
}

.voyage-card__graphic--suns {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 18px));
  gap: 5px 6px;
  justify-content: center;
  max-width: min(58%, 240px);
}

.voyage-card__data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex: 0 0 auto;
  min-width: 36%;
  text-align: center;
}

.voyage-card__num {
  font-family: 'Proza Libre', sans-serif;
  font-size: clamp(2.25rem, 7vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
  color: #000;
}

.voyage-card__unit {
  margin: 0;
  font-family: 'Proza Libre', sans-serif;
  font-size: clamp(11px, 1.45vw, 13px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
}

@media (max-width: 900px) {
  .voyage-stats__layout {
    grid-template-columns: 1fr;
  }

  .voyage-card__graphic--people {
    max-width: 55%;
  }

  .voyage-card__graphic--suns {
    max-width: 60%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voyage-card__flip {
    transition-duration: 0.01ms;
  }
}