/* SIVAA — Gallery Page Styles */

/* ===== FILTER TABS ===== */
.gallery-filters {
  display: flex; justify-content: center; gap: var(--space-3);
  margin-bottom: var(--space-12); flex-wrap: wrap;
}
.gallery-filter-btn {
  padding: 0.625rem 1.5rem; border-radius: var(--radius-full);
  font-family: var(--font-alt); font-size: var(--text-sm); font-weight: 600;
  background: var(--color-white); border: 2px solid var(--color-border);
  color: var(--color-text-muted); transition: all var(--transition-fast);
  cursor: pointer;
}
.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--color-primary); border-color: var(--color-primary);
  color: var(--color-white); box-shadow: 0 4px 12px rgba(30,58,138,0.2);
}

/* ===== HORIZONTAL SCROLL GALLERY ===== */
.gallery-masonry {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-6);
  padding: var(--space-2) 0 var(--space-6);
  margin-bottom: var(--space-16);
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) var(--color-border);
  -webkit-overflow-scrolling: touch;
}

.gallery-masonry::-webkit-scrollbar {
  height: 8px;
}
.gallery-masonry::-webkit-scrollbar-track {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
.gallery-masonry::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}
.gallery-masonry::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

.gallery-item {
  flex: 0 0 320px;
  height: 320px;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
}

.gallery-item--portrait {
  flex: 0 0 240px;
  height: 420px;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.gallery-item:hover .gallery-item__img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .gallery-masonry {
    gap: var(--space-4);
  }
  .gallery-item {
    flex: 0 0 260px;
    height: 260px;
  }
  .gallery-item--portrait {
    flex: 0 0 200px;
    height: 360px;
  }
}

.gallery-item__overlay {
  position: absolute; inset: 0; background: rgba(30,58,138,0.0);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-base);
}
.gallery-item:hover .gallery-item__overlay { background: rgba(30,58,138,0.2); }
.gallery-item__zoom-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-white);
  color: var(--color-primary); display: flex; align-items: center; justify-content: center;
  font-size: var(--text-lg); font-weight: bold; opacity: 0; transform: scale(0.8);
  transition: all var(--transition-bounce); box-shadow: var(--shadow-md);
}
.gallery-item:hover .gallery-item__zoom-icon { opacity: 1; transform: scale(1); }

/* ===== LIGHTBOX DIALOG ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,23,42,0.95);
  z-index: var(--z-modal); display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition-base);
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox__close {
  position: absolute; top: var(--space-6); right: var(--space-6);
  color: var(--color-white); font-size: 2.2rem; cursor: pointer;
  transition: all var(--transition-fast); width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { color: var(--color-accent-yellow); transform: scale(1.1); }

.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--color-white); font-size: 2.5rem; cursor: pointer;
  transition: all var(--transition-fast); width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border-radius: 50%;
}
.lightbox__prev { left: var(--space-6); }
.lightbox__next { right: var(--space-6); }
.lightbox__prev:hover, .lightbox__next:hover { color: var(--color-accent-yellow); background: rgba(255,255,255,0.15); }

.lightbox__content {
  max-width: 85%; max-height: 80vh; border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); overflow: hidden;
}
.lightbox__img {
  width: 100%; height: auto; max-height: 80vh; object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .lightbox__prev, .lightbox__next { display: none; }
  .lightbox__close { top: var(--space-4); right: var(--space-4); }
}
