html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#slide {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/* Two stacked images for crossfade */
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* change to cover if you want cropping */
  background: #000;
  opacity: 0;
  transition: opacity 900ms ease;
}

.slide-img.active {
  opacity: 1;
}

/* Bottom text bar overlays image */
#slide-text-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  min-height: 130px;
  padding: 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #000;
  box-sizing: border-box;
}

#slide-text {
  color: #fff;
  text-align: center;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  max-width: 90%;
}

/* Slightly smaller on short displays */
@media (max-height: 720px) {
  #slide-text {
    font-size: 36px;
  }
  #slide-text-wrap {
    min-height: 110px;
  }
}
