/* Gallery styles */
.gallery-section {
  padding: 140px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.4s ease;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 24, 32, 0.8) 0%, rgba(16, 24, 32, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-item-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 4px;
}

.gallery-item-tag {
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 18px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-nav:hover {
  background: var(--gold);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
  .gallery-section {
    padding: 100px 16px 60px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .gallery-filter-btn {
    padding: 8px 18px;
    font-size: 12px;
  }
  
  .gallery-filters {
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .lightbox-content {
    max-width: 95%;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media(max-width:480px) {
  .gallery-section {
    padding: 90px 12px 40px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .gallery-item {
    height: 220px;
  }
  
  .gallery-filters {
    gap: 8px;
    margin-bottom: 24px;
  }
  
  .gallery-filter-btn {
    padding: 6px 14px;
    font-size: 11px;
  }
  
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  
  .lightbox-close {
    top: -36px;
    font-size: 24px;
  }
  
  .lightbox-caption {
    font-size: 14px;
    margin-top: 10px;
  }
}
