/* Shared media-hero atmosphere, derived from the protected homepage baseline. */
[data-ab-hero-edge] {
  border-radius: 0 0 20px 20px;
}

[data-ab-hero-motion] {
  --ab-hero-blur: 1.25px;
  --ab-hero-motion-x: 0px;
  --ab-hero-motion-y: 0px;
  --ab-hero-motion-scroll-y: 0px;
  --ab-hero-motion-tilt-x: 0deg;
  --ab-hero-motion-tilt-y: 0deg;
  --ab-hero-light-x: 50%;
  --ab-hero-light-y: 45%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

[data-ab-hero-motion] [data-ab-hero-image] {
  max-width: none;
  transform:
    translate3d(
      var(--ab-hero-motion-x),
      calc(var(--ab-hero-motion-y) + var(--ab-hero-motion-scroll-y)),
      0
    )
    scale(1.045)
    rotateX(var(--ab-hero-motion-tilt-x))
    rotateY(var(--ab-hero-motion-tilt-y));
  transform-origin: center;
  will-change: transform;
}

[data-ab-hero-motion]:not([data-ab-hero-sharp]) [data-ab-hero-image] {
  filter: blur(var(--ab-hero-blur));
}

[data-ab-hero-content] {
  position: relative;
  z-index: 2;
}

.ab-hero-motion__light {
  position: absolute;
  z-index: 1;
  inset: -12%;
  display: none;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .ab-hero-motion__light {
    display: block;
    background:
      radial-gradient(
        circle 34rem at var(--ab-hero-light-x) var(--ab-hero-light-y),
        rgba(255, 255, 255, .075) 0,
        rgba(255, 255, 255, .032) 34%,
        rgba(255, 255, 255, 0) 70%
      );
    mix-blend-mode: screen;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-ab-hero-motion] [data-ab-hero-image] {
    transform: scale(1.025);
    will-change: auto;
  }

  .ab-hero-motion__light {
    display: none;
  }
}

@media print {
  [data-ab-hero-edge] {
    border-radius: 0;
  }

  [data-ab-hero-motion] [data-ab-hero-image] {
    filter: none;
    transform: none;
  }

  .ab-hero-motion__light {
    display: none !important;
  }
}
