/* ===================================
   GALLERY PAGE STYLES
   =================================== */

.gallery-section {
  padding: var(--space-2xl) 0;
  background: var(--cream-100);
}

.gallery-category {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 3px solid var(--cream-300);
}

.gallery-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gallery-category h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--forest-900);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-sm);
}

.gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 4px solid var(--charcoal-900);
  box-shadow: var(--shadow-brutal);
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-track img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.slider-btn-prev {
  left: var(--space-md);
}

.slider-btn-next {
  right: var(--space-md);
}

@media (max-width: 768px) {
  .slider-btn {
    width: 40px;
    height: 40px;
  }
  
  .slider-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .slider-btn-prev {
    left: var(--space-sm);
  }
  
  .slider-btn-next {
    right: var(--space-sm);
  }
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.lightbox-close:hover {
  background: var(--sage-600);
  color: white;
  transform: rotate(90deg);
}
