/* =============================================
   GALLERY PAGE STYLES
   ============================================= */

/* Filter Tabs */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid #E5E7EB;
  background: var(--white);
  color: #6B7280;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* Section Headers */
.gallery-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 18px;
}
.gallery-section-header:first-of-type { margin-top: 0; }
.gallery-section-header.hidden { display: none; }
.gallery-section-icon { font-size: 1.5rem; }
.gallery-section-header h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  white-space: nowrap;
}
.gallery-section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #FFE8D6, transparent);
  border-radius: 2px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
.gallery-grid.hidden { display: none; }
.gallery-item { overflow: hidden; border-radius: var(--radius); position: relative; aspect-ratio: 4/3; }
.gallery-item.hidden { display: none; }

.gallery-card {
  width: 100%; height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-card:hover { transform: scale(1.03); }
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-content { color: var(--white); }
.gallery-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.gallery-overlay-content p { font-size: 0.88rem; line-height: 1.5; opacity: 0.9; }

/* Gallery Notice */
.gallery-notice {
  margin-top: 40px;
  padding: 20px;
  background: #FFF8F3;
  border-radius: var(--radius-sm);
  color: #6B7280;
  font-size: 0.95rem;
}
.gallery-notice a { color: var(--primary); font-weight: 700; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: 80vw;
  max-height: 80vh;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  min-width: 320px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.35); }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.35); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Stats strip */
.stats-strip {
  background: linear-gradient(135deg, var(--primary), #FF9A5C);
  padding: 50px 0;
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
}
.stat-item span { font-size: 0.88rem; color: rgba(255,255,255,0.8); font-weight: 700; }

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .stats-strip-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .stats-strip-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-section-header h3 { font-size: 1.1rem; }
}
