/* =========================
   GALLERY
========================= */

.gallery {
  padding: 120px 0;
  background: #fff;
}

.gallery .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.gallery-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: #ff4fa3; /* Brand Pink to match Hero */
  font-weight: 600;
  margin-bottom: 16px;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 20px;
  color: #1a1a1a;
}

.gallery-description {
  max-width: 600px;
  margin: 0 auto;
  color: #666;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  opacity: 0; /* Prepared for JS fade-in */
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-grid.revealed {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item {
  aspect-ratio: 4 / 5;
  background: #f8f8f8;
  border-radius: 24px; /* Matches Chat Window Radius */
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s ease;
  cursor: pointer;
}

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

.gallery-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(255, 79, 163, 0.12);
  border-color: rgba(255, 79, 163, 0.2);
}

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

/* =========================
   MOBILE
========================= */

@media (max-width: 992px) {
  .gallery {
    padding: 80px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   LIGHTBOX
========================= */

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-content.zoomed img {
  transform: scale(1.8);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 2001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 79, 163, 0.5);
}