/* ============================================
   Gallery Page Styles — la-melu inspired
   ============================================ */

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-4xl);
}

.gallery-filter__btn {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.gallery-filter__btn:hover { color: var(--color-text); }
.gallery-filter__btn.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

/* Masonry — square grid like la-melu catalog */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.gallery-masonry__item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-masonry__item.hidden { display: none; }

.gallery-masonry__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.gallery-masonry__item:hover img { transform: scale(1.05); }

.gallery-masonry__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.gallery-masonry__item:hover .gallery-masonry__overlay { opacity: 1; }

.gallery-masonry__title {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.gallery-masonry__stylist {
  color: rgba(255,255,255,0.6);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition-base);
}
.lightbox.active { opacity: 1; visibility: visible; }

.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  z-index: 1;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox__info {
  text-align: center;
  color: var(--white);
  margin-top: var(--space-lg);
}

.lightbox__title {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.lightbox__meta {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.45);
  margin-top: var(--space-xs);
  letter-spacing: 0.1em;
}

.lightbox__close {
  position: fixed;
  top: var(--space-xl); right: var(--space-xl);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  z-index: 2;
}
.lightbox__close:hover { opacity: 0.6; }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  z-index: 2;
}
.lightbox__nav:hover { opacity: 0.6; }
.lightbox__nav--prev { left: var(--space-xl); }
.lightbox__nav--next { right: var(--space-xl); }

.lightbox__counter {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  z-index: 2;
}

@media (max-width: 1023px) {
  .gallery-masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
}
