.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel-item,
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-fade .carousel-item {
  transition: opacity 1s ease-in-out;
  opacity: 0;
  position: absolute;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.carousel-item.active .carousel-caption {
  opacity: 1;
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
