/* ========== GALLERY PAGE ========== */
.gallery-section {
  padding: 80px 0 120px;
}

/* Filter Buttons */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

/* Pill style — shared vocabulary with /menu, /packages, /order filters. */
.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: var(--accent-text);
  border: 1px solid #c9a96e63;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
  background: var(--accent);
  color: #1a1a1a;
}

.gallery-filter-btn.active {
  background: var(--accent);
  color: #ffffff;
}

/* Masonry Grid */
.gallery-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  grid-auto-flow: dense;
}

/* Transparent border at rest keeps the masonry visually quiet (22 packed
   items with permanent borders would clutter); on hover the border picks
   up the gold-tinted vocabulary used everywhere else, framing the
   thumbnail like a picture. Active state pushes to the full accent-text
   border for click feedback before the lightbox opens. */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  min-height: 250px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay i {
  color: var(--accent-text);
  font-size: 1.5rem;
}

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

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

.gallery-item:hover {
  border-color: rgba(201, 169, 110, 0.5);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.15);
}

.gallery-item:active {
  border-color: var(--accent-text);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.25);
}

/* Hidden items during filter */
.gallery-item.hidden {
  display: none;
}

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 767px) {
  .gallery-section {
    padding: 40px 0 60px;
  }

  .gallery-filters {
    margin-bottom: 25px;
  }

  .gallery-filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  .gallery-item img {
    min-height: 200px;
  }
}

/* ========== RESPONSIVE: TABLET ========== */
@media (min-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .gallery-tall {
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-wide {
    grid-column: span 2;
  }
}
