/* Styles for Palazhi Ayurveda Gallery Page */

/* Gallery Hero Header */
.gallery-hero {
  position: relative;
  padding: 160px 0 80px;
  background: radial-gradient(120% 120% at 50% -20%, hsl(142, 40%, 94%) 0%, var(--color-bg-cream) 100%);
  border-bottom: 1px solid var(--color-border-light);
  overflow: hidden;
}

.gallery-hero .hero-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  left: 50%;
  top: -250px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(10, 66, 26, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 1;
}

.gallery-hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--color-primary-forest);
  margin-bottom: 16px;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

.gallery-hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* Gallery Photo Grid Layout */
.gallery-grid-section {
  background-color: var(--color-bg-white);
  padding: 60px 0 100px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1.35;
  cursor: pointer;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-mint);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

/* Photo card overlay text and zoom icon */
.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 66, 26, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-normal);
  color: var(--color-bg-white);
  z-index: 2;
}

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

.zoom-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-white);
}

.zoom-icon svg {
  width: 18px;
  height: 18px;
}

.item-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}

.item-overlay p {
  font-size: 0.8rem;
  color: hsl(142, 30%, 85%);
  transform: translateY(10px);
  transition: transform var(--transition-normal) 0.05s;
}

.gallery-item:hover h4,
.gallery-item:hover p {
  transform: translateY(0);
}

/* Lightbox Modal overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 66, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-normal);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-btn {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-bg-white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 3010;
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
}

.lightbox-btn:hover {
  background-color: var(--color-accent-mint);
  border-color: var(--color-accent-mint);
  transform: scale(1.05);
}

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

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-content {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  text-align: center;
  color: var(--color-bg-white);
  max-width: 600px;
}

.lightbox-caption h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.lightbox-caption p {
  font-size: 0.9rem;
  color: hsl(142, 30%, 85%);
}

/* Responsive configurations */
@media (max-width: 991px) {
  .gallery-hero-title {
    font-size: 2.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .lightbox-prev {
    left: 16px;
  }
  
  .lightbox-next {
    right: 16px;
  }
  
  .lightbox-close {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 576px) {
  .gallery-hero-title {
    font-size: 2.25rem;
  }
  
  .lightbox-btn {
    width: 42px;
    height: 42px;
  }
  
  .lightbox-content img {
    max-height: 65vh;
  }
  
  .lightbox-caption h4 {
    font-size: 1.15rem;
  }
}
