.gallery-section {
  background-color: var(--bg-dark);
  overflow: hidden;
}

.gallery-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-carousel {
  position: relative;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow) ease;
  z-index: var(--z-0);
}

.gallery-slide.active {
  opacity: 1;
  z-index: var(--z-10);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: var(--z-20);
  padding: 0 var(--space-2);
}

.gallery-control {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal) ease;
}

.gallery-control:hover {
  background-color: var(--primary-600);
  transform: scale(1.1);
}

.gallery-control i {
  font-size: var(--text-xl);
}

.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--neutral-700);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal) ease;
}

.indicator:hover {
  background-color: var(--primary-300);
}

.indicator.active {
  background-color: var(--primary-500);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .gallery-carousel {
    height: 350px;
  }
  
  .gallery-control {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-carousel {
    height: 250px;
  }
  
  .slide-caption {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-base);
  }
  
  .gallery-control {
    width: 30px;
    height: 30px;
  }
}