/* Gallery Page Specific Styles */
body {
  padding-top: 80px;
}

.gallery-section {
  padding: 3rem 20px;
  min-height: 80vh;
}

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

.gallery-header .section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.gallery-header h1 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.gallery-header h1 em {
  color: var(--pink);
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  background: #f0f0f0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 114, 182, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::before {
  background: rgba(244, 114, 182, 0.2);
}

/* Lightbox Styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  color: white;
  border-radius: 8px;
  max-width: 500px;
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 60px;
}

.lightbox-next {
  right: 60px;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    left: auto;
    right: auto;
    top: auto;
    bottom: 20px;
  }

  .lightbox-prev {
    left: 40px;
  }

  .lightbox-next {
    right: 40px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

.gallery-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.gallery-back:hover {
  transform: translateX(-4px);
}
