/* Gallery Specific Styles */
.gallery-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 4rem 1rem;
  text-align: center;
}

.gallery-title {
  font-size: 3rem;
  color: var(--neutral);
  margin-bottom: 1rem;
}

.gallery-description {
  font-size: 1.125rem;
  color: var(--neutral);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

.gallery-section {
  padding: 2rem 0 4rem;
  background-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-category {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

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

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--gray-300);
}

.lightbox-image {
  width: 100%;
  height: 100%;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 1.5rem;
  color: white;
  border-radius: 0 0 0.5rem 0.5rem;
}

.lightbox-category {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.lightbox-description {
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .gallery-header {
    padding: 3rem 1rem;
  }
  
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .lightbox-image {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .lightbox-close {
    top: -2.5rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-title {
    font-size: 2rem;
  }
  
  .gallery-description {
    font-size: 1rem;
  }
  
  .lightbox-info {
    padding: 1rem;
  }
  
  .lightbox-description {
    font-size: 1rem;
  }
}