/* About Page Carousel Styles */

.about-carousel {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--image-shadow);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: auto;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
  position: relative; /* Keep active slide in normal flow */
}

.carousel-slide.fading-in {
  opacity: 1;
  z-index: 3; /* Higher than active to fade in on top */
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease-out; /* Smooth zoom transition */
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .carousel-slide {
    transition: opacity 1.2s ease-in-out; /* Slightly faster on mobile */
  }
}

/* Loading state */
.about-carousel.loading {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.about-carousel.loading::after {
  content: 'Loading...';
  color: #666;
  font-style: italic;
} 