/* ==========================================================================
   Gallery Pages
   ========================================================================== */

/* Tabs */
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.tab {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1.5px solid rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.tab:hover { border-color: var(--brand-3); color: var(--brand-3); opacity: 1; }

.tab.active {
  background: var(--gradient-pink-btn);
  color: white !important;
  border-color: transparent;
  opacity: 1 !important;
  box-shadow: 0 2px 12px rgba(221, 34, 143, 0.2);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover { border-color: var(--brand-3); color: var(--brand-3); }

.filter-btn.active {
  background: var(--gradient-pink-btn);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(221, 34, 143, 0.2);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.gallery-item:hover {
  box-shadow: 0 12px 48px rgba(221, 34, 143, 0.12);
  transform: translateY(-4px);
  border-color: rgba(221, 34, 143, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(58,17,50,0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h3 {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

/* Empty State */
.gallery-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 3rem;
}

.gallery-empty a {
  color: var(--brand-3);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.close-modal-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.close-modal-btn:hover { opacity: 0.6; }