html, body {
  background: transparent !important;
}

.hero {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-slide.is-active {
  opacity: 1;
}

/* Dark overlay so the text stays readable. Adjust .45 (0 = clear, 1 = black) */
.bg-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Respect users who turn off animations in their system settings */
@media (prefers-reduced-motion: reduce) {
  .bg-slide { transition: none; }
}