[data-spotlight-background] {
  isolation: isolate;
  background-image: var(--spotlight-still);
  background-position: center;
  background-size: cover;
  text-shadow: 0 1px 4px #160f17;
}
[data-spotlight-background="banner"] { --spotlight-still: url("spotlight-media/banner.png"); }
[data-spotlight-background="teacher"] { --spotlight-still: url("spotlight-media/teacher.png"); }
[data-spotlight-background="parent"],
[data-spotlight-format="parent"] { --spotlight-still: url("spotlight-media/parent.png"); }

[data-spotlight-background]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, rgba(22, 15, 23, .52), rgba(22, 15, 23, .30));
  pointer-events: none;
}
.spotlight[data-spotlight-background]::after { content: none; }

.live-card[data-spotlight-background] > :not(.spotlight-video) {
  position: relative;
  z-index: 1;
}
[data-spotlight-background] > .spotlight-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
[data-spotlight-background] > .spotlight-video.is-ready { opacity: 1; }
[data-spotlight-background] p { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  [data-spotlight-background] > .spotlight-video { display: none; }
}
