@charset "UTF-8";
/* ===========================================
   GALLERY PAGE
   =========================================== */
/* ── Hero (reuses .team-hero from team.scss) ── */
/* ── Filter bar ─────────────────────────────── */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 36px;
  max-width: 900px;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--light-gray);
  background: var(--background);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.gallery-filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.gallery-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.gallery-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.gallery-filter-btn:not(.active) .gallery-filter-count {
  background: var(--light-gray);
  color: var(--gray);
}

/* ── Masonry grid ───────────────────────────── */
.gallery-masonry {
  column-count: 4;
  column-gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .gallery-masonry {
    column-count: 3;
  }
}
@media (max-width: 720px) {
  .gallery-masonry {
    column-count: 2;
  }
}
@media (max-width: 420px) {
  .gallery-masonry {
    column-count: 1;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  border-radius: var(--rounded);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--background-alt);
}
.gallery-item[data-hidden=true] {
  display: none;
}

.gallery-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

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

.gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  padding: 28px 12px 10px;
  font-size: 0.83rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

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

.gallery-item-year {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ── Empty state ────────────────────────────── */
.gallery-empty {
  text-align: center;
  color: var(--gray);
  padding: 60px 20px;
  font-size: 1rem;
  display: none;
}

/* ── Lightbox ───────────────────────────────── */
#gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

#lb-img {
  max-width: min(90vw, 960px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

#lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#lb-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.3rem;
  padding: 14px 18px;
  border-radius: var(--rounded);
  cursor: pointer;
  transition: background 0.2s;
}
#lb-prev:hover,
#lb-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

#lb-prev {
  left: 18px;
}

#lb-next {
  right: 18px;
}

#lb-caption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin-top: 16px;
  text-align: center;
  max-width: 600px;
}

#lb-counter {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  margin-top: 6px;
}

@media (max-width: 600px) {
  #lb-prev {
    left: 6px;
    padding: 10px 13px;
  }
  #lb-next {
    right: 6px;
    padding: 10px 13px;
  }
}

/*# sourceMappingURL=gallery.css.map */