/* ===== GALLERY HERO SECTION ===== */
.gallery-hero {
  position: relative;
  width: 100%;
  height: 65vh; /* narrower hero than homepage */
  background: url('../assets/hero-bg/hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Overlay */
.gallery-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Content */
.gallery-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 1.5rem;
  max-width: 700px;
  animation: slideUp 1.2s ease forwards;
}

/* Title */
.gallery-hero-content h1 {
  font-family: 'Ethnocentric', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.gallery-hero-content h1 span {
  color: #d4a017;
}

.section-title span {
  color: #d6ad33;
}

/* Paragraph */
.gallery-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: #ccc;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== FADE-IN ON SCROLL ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .gallery-hero {
    height: 55vh;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    height: 50vh;
  }

  .gallery-hero-content h1 {
    font-size: 1.5rem;
  }

  .gallery-hero-content p {
    font-size: 0.85rem;
  }
}

/* ===== GALLERY SECTION ===== */

/* ================================
   GALLERY SECTION
================================ */
.gallery-section {
  padding: 4rem 1.5rem;
  background: #0e0e0e;
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 2rem;
}

/* FILTER BUTTONS */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid #d6ad33;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #d6ad33;
  border-color: #d6ad33;
  color: #111;
}

/* MASONRY GRID */
.gallery-grid {
  column-count: 2;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.hide {
  display: none;
}

/* RESPONSIVE GRID */
@media (min-width: 600px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 4;
  }
}

/* ================================
   MODAL STYLES
================================ */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.gallery-modal.show {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.gallery-modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  animation: zoomIn 0.4s ease;
}

.gallery-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
