/* Page sections share the page background. Scoped so other SEO pages keep their own fills. */
.gif-page .seo-modals-hero.seo-modals-hero--stack-bg,
.gif-page .seo-modals-hero--stack-bg .seo-modals-hero-bg {
  background: var(--bg-page);
}

.gif-page .seo-modals-hero-bg::after {
  background: none;
}

.gif-page .seo-modals-hero-glow {
  display: none;
}

.gif-page .iu-home-end {
  --hv3-bg: var(--bg-page);
  background: var(--bg-page);
}

/* Flat fan for the GIF hero only. The center card sits in front. */
.seo-modals-hero-card-scene.gif-hero-fan {
  top: auto;
  bottom: 16%;
  height: 42%;
  min-width: 0;
  width: 100%;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  perspective: none;
  transform: translateX(-50%);
  transform-origin: center bottom;
  transform-style: flat;
}

.seo-modals-hero-card-scene.gif-hero-fan .seo-modals-hero-fan-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: clamp(280px, 28vw, 400px);
  height: clamp(300px, 32vw, 460px);
  margin: 0;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
  transform-origin: center bottom;
  transform: translateX(calc(-50% + var(--gif-x, 0) * 118px)) rotate(var(--gif-rot, 0deg))
    scale(var(--gif-scale, 1));
}

@media (max-width: 900px) {
  .seo-modals-hero-card-scene.gif-hero-fan {
    bottom: 4%;
    height: 42%;
    transform: translateX(-50%);
  }

  .seo-modals-hero-card-scene.gif-hero-fan .seo-modals-hero-fan-card {
    width: clamp(180px, 36vw, 260px);
    height: clamp(220px, 40vw, 320px);
    transform: translateX(calc(-50% + var(--gif-x, 0) * 72px)) rotate(var(--gif-rot, 0deg))
      scale(var(--gif-scale, 1));
  }
}

