.info-hero-photo--faq {
  container-type: size;
}

.info-hero-photo--faq:has(> img[src$="/faq-doll-generated.webp"])::before {
  content: "";
  position: absolute;
  z-index: 1;
  /* Match the image's cover crop and object position. */
  inset: 33% auto auto 50%;
  width: max(100cqw, 66.667cqh);
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -33%);
  background:
    radial-gradient(ellipse 8% 4% at 16% 29%, rgb(255 183 94 / 52%), rgb(245 123 55 / 36%) 40%, transparent),
    radial-gradient(ellipse 23% 15% at 16% 30%, rgb(249 109 45 / 23%), rgb(231 86 37 / 11%) 57%, transparent);
  opacity: 0.82;
}

#atmosphere .home-atmosphere {
  --atmosphere-photo-ratio: 412 / 365;
}

#atmosphere .home-atmosphere img {
  aspect-ratio: var(--atmosphere-photo-ratio);
}

#atmosphere [data-atmosphere-light] {
  position: relative;
}

#atmosphere [data-atmosphere-light]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: var(--atmosphere-photo-ratio);
  border-radius: 6px;
  pointer-events: none;
  background: var(--atmosphere-light, none);
  opacity: 0.82;
}

[data-atmosphere-light="actors"]:has(> img[src$="/story-live-actors.webp"]) {
  --lamp-delay: -2.4s;
  --atmosphere-light:
    radial-gradient(ellipse 13% 17% at 93% 43%, rgb(255 169 73 / 56%), rgb(247 110 47 / 25%) 44%, transparent),
    radial-gradient(ellipse 16% 13% at 13% 59%, rgb(255 167 83 / 26%), transparent);
}

[data-atmosphere-light="scenery"]:has(> img[src$="/story-set-design.webp"]) {
  --lamp-delay: -4.9s;
  --atmosphere-light:
    radial-gradient(ellipse 15% 20% at 93% 24%, rgb(255 125 65 / 51%), rgb(235 75 42 / 24%) 39%, transparent),
    radial-gradient(ellipse 17% 21% at 18% 55%, rgb(255 169 76 / 30%), transparent);
}

[data-atmosphere-light="sound"]:has(> img[src$="/story-light-and-sound.webp"]) {
  --lamp-delay: -7.2s;
  --atmosphere-light:
    radial-gradient(ellipse 16% 17% at 67% 14%, rgb(255 180 92 / 52%), rgb(241 128 60 / 21%) 42%, transparent),
    radial-gradient(ellipse 19% 19% at 10% 43%, rgb(255 166 70 / 36%), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .info-hero-photo--faq::before,
  #atmosphere [data-atmosphere-light]::before {
    animation: lamp-flicker 9s linear infinite;
    animation-delay: var(--lamp-delay, 0s);
  }
}

@keyframes lamp-flicker {
  0%, 13%, 20%, 47%, 58%, 84%, 100% { opacity: 0.82; }
  15%, 51%, 90% { opacity: 0.19; }
  17%, 54%, 94% { opacity: 0.55; }
}
