/* ---------- filter pills ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 40px;
}
.filter-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: #ffd107;
  color: #333;
}
.filter-btn.active {
  background-color: #ffd107;
  border-color: #ffd107;
  color: #000;
}

/* ---------- gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-cat {
  color: #ffd107;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.gallery-caption {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}
.gallery-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffd107;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

/* item hidden by the JS filter */
.gallery-item.is-hidden {
  display: none;
}

/* ---------- fancybox brand tweaks ---------- */
.fancybox__container {
  --fancybox-bg: rgba(0, 0, 0, 0.92);
  --f-button-hover-color: #ffd107;
}
.fancybox__caption {
  font-family: "Montserrat", sans-serif;
}

/* =========================== responsive =========================== */
@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(46%, 1fr));
    gap: 14px;
  }
  .gallery-filters {
    gap: 8px;
  }
  .filter-btn {
    padding: 12px 26px;
  }
}
