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

.gallery {
  background: var(--color-white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  max-width: 50%;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  aspect-ratio: 5 / 9;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-pink-light), var(--color-rose-gold-light));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery__item:hover {
  z-index: 2;
  box-shadow: 0 8px 25px rgba(183, 110, 121, 0.2);
}

.gallery__item:hover .gallery__image {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) opacity(0.75);
  transition: filter 0.4s ease, transform 0.5s var(--ease-out-expo);
}


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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  animation: fadeInScale 0.3s ease;
}

.lightbox__caption {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
  text-align: center;
  opacity: 0.8;
}

.lightbox__counter {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  margin-top: var(--space-xs);
  opacity: 0.6;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
  padding: var(--space-sm);
  transition: opacity var(--transition-fast);
  z-index: 1001;
}

.lightbox__close:hover {
  opacity: 0.7;
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 1001;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__prev {
  left: var(--space-lg);
}

.lightbox__next {
  right: var(--space-lg);
}
