/* Compact only the three manufacturing heroes; preserve all original artwork. */
:is(.gummy-page, .capsule-page, .tablet-page) {
  --format-video-gap: clamp(5rem, 9vw, 9rem);
}

:is(.gummy-page, .capsule-page, .tablet-page) .format-hero {
  min-height: min(539px, calc(70vh - 65.8px));
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
}

:is(.gummy-page, .capsule-page, .tablet-page) .format-hero-index {
  bottom: 1rem;
}

/* Fit the original art's height instead of cropping its lower product row. */
@media (min-width: 901px) {
  :is(.gummy-page, .capsule-page, .tablet-page) .format-hero-image {
    left: auto;
    width: auto;
    height: 100%;
    aspect-ratio: 16 / 9;
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 15%);
  }

  .gummy-page .format-hero-image {
    aspect-ratio: 1920 / 823;
  }
}

/* One value keeps the hero-to-player and player-to-first-text gaps equal. */
.gummy-video,
.capsule-video,
.tablet-video {
  border-top: var(--format-video-gap) solid #fff;
}

.gummy-video + .gummy-intro,
.capsule-video + .gummy-intro,
.tablet-video + .gummy-intro {
  padding-top: var(--format-video-gap);
  background: #fff;
}

@media (max-width: 900px) {
  :is(.gummy-page, .capsule-page, .tablet-page) .format-hero {
    min-height: 483px;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 560px) {
  :is(.gummy-page, .capsule-page, .tablet-page) {
    --format-video-gap: 4rem;
  }

  :is(.gummy-page, .capsule-page, .tablet-page) .format-hero {
    min-height: 413px;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 380px) {
  :is(.gummy-page, .capsule-page, .tablet-page) .format-hero {
    min-height: 399px;
  }
}
