/* ============================================================
   EXPLOREO TRAVELS — Gallery Page CSS
   ============================================================ */

.gallery-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 40px 0 48px;
}

.gallery-masonry {
  columns: 3;
  column-gap: 16px;
}

@media (max-width: 1024px) { .gallery-masonry { columns: 2; } }
@media (max-width: 600px)  { .gallery-masonry { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: none;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232,130,12,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.gallery-item-overlay svg { color: #fff; }

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-cream-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: none;
  transition: all var(--transition-fast);
  z-index: 5001;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: none;
  transition: all var(--transition-smooth);
  z-index: 5001;
}

.lightbox-nav:hover {
  background: rgba(232,130,12,0.3);
  border-color: var(--color-saffron);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

@media (max-width: 600px) {
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-cream-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
