/* Modern Carousel Styles */
.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f9f0e7 0%, #ffffff 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(14, 34, 56, 0.1);
  padding: 2rem;
}

.carousel-main {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(14, 34, 56, 0.12);
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.02);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.carousel-item:hover img {
  filter: brightness(1.05);
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f77f00 0%, #ff8f1a 100%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(247, 127, 0, 0.3);
}

.nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(247, 127, 0, 0.4);
  background: linear-gradient(135deg, #ff8f1a 0%, #f77f00 100%);
}

.nav:active {
  transform: translateY(-50%) scale(0.95);
}

.nav.prev {
  left: 20px;
}

.nav.next {
  right: 20px;
}

.carousel-thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.thumbnail {
  position: relative;
  width: 72px;
  height: 72px;
  opacity: 0.6;
  cursor: pointer;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(14, 34, 56, 0.15);
}

.thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 34, 56, 0.3);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.thumbnail.active::after {
  opacity: 0;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: scale(0.95);
  opacity: 0.8;
}

.thumbnail.active {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(247, 127, 0, 0.3);
  border: 2px solid #f77f00;
}

.thumbnail.active img {
  transform: scale(1.05);
}

/* Gallery header improvements */
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-title {
  background: linear-gradient(135deg, #0e2238 0%, #f77f00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.gallery-subtitle {
  color: #0e2238;
  font-size: 1.2rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-wrapper {
    padding: 1.5rem;
  }
  
  .carousel-main {
    height: 400px;
  }
  
  .gallery-title {
    font-size: 2.2rem;
  }
  
  .gallery-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .carousel-wrapper {
    padding: 1rem;
    margin: 0 1rem;
  }
  
  .carousel-main {
    height: 300px;
  }
  
  .nav {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .nav.prev {
    left: 10px;
  }
  
  .nav.next {
    right: 10px;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .carousel-thumbnails {
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .gallery-title {
    font-size: 1.8rem;
  }
  
  .gallery-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-wrapper {
    margin: 0 0.5rem;
    padding: 0.75rem;
  }
  
  .carousel-main {
    height: 260px;
  }
  
  .nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .carousel-thumbnails {
    gap: 0.4rem;
    padding: 0.5rem;
  }
  
  .gallery-title {
    font-size: 1.5rem;
  }
  
  .gallery-subtitle {
    font-size: 0.9rem;
  }
}