/* Base Carousel Layout */
.carousel-inner {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 400px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* Ensures full coverage */
  object-position: center;  /* Centers the image inside the container */
  display: block;
}

/* Optional active class if you're controlling visibility */
.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .carousel-inner {
    height: 45vh;
  }
}

@media (max-width: 768px) {
  .carousel-inner {
    height: 35vh;
  }
}

@media (max-width: 480px) {
  .carousel-inner {
    height: 30vh;
  }
}

