/* Carousel Styles */
.carousel-section {
  padding: 4rem 0;
  background: var(--bg-color);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.carousel-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Main Image Display */
.carousel-main {
  margin-bottom: 2rem;
}

.carousel-main-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}

.carousel-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-main-image:hover img {
  transform: scale(1.02);
}

/* Navigation Buttons */
.carousel-navigation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-main-image:hover .carousel-navigation {
  opacity: 1;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Thumbnail Navigation */
.carousel-thumbnails {
  margin-top: 1.5rem;
}

.thumbnails-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  flex-shrink: 0;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(14, 74, 134, 0.3);
}

.thumbnail.active img {
  transform: scale(1.05);
}

/* Loading State */
.carousel-main-image.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-secondary);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-container {
    margin: 0 1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .thumbnails-container {
    gap: 0.5rem;
  }

  .carousel-navigation {
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .carousel-main-image {
    aspect-ratio: 4/3;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }
}

