/* ===== Carousel Section ===== */
.carousel-section-af {  
  padding: 40px 0;
  margin:0px;
  overflow: hidden;
  background-color: transparent;
}

/* ===== Carousel Track ===== */
.carousel-track-af {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

/* ===== Carousel Items ===== */
.carousel-item-custom-af {
  flex: 0 0 auto;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.carousel-item-custom-af img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0px;
  transition: transform 1s ease;
}

/* Hover zoom */
.carousel-item-custom-af:hover img {
  transform: scale(1.08);
}

/* Pause when hovered */
.carousel-section-af:hover .carousel-track-af {
  animation-play-state: paused;
}

/* ===== Animation ===== */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== Responsive Width Control ===== */

/* Desktop (=992px): Show ~6 images at once */
@media (min-width: 992px) {
  .carousel-item-custom-af {
   /* width: calc(100vw / 6 - 20px);*/
  }
}

/* Tablet (=600px and <992px): Show ~3 images */
@media (min-width: 600px) and (max-width: 991px) {
  .carousel-item-custom-af {
   /* width: calc(100vw / 3 - 20px);*/
  }
}

/* Mobile (<600px): Show 1 image */
@media (max-width: 599px) {
  .carousel-item-custom-af {
    width: calc(80vw - 40px);
  }
  .carousel-track-af {
    gap: 10px;
  }
}