/* ---- Photos Page ---- */

/* Active nav link (per-page, matches catering.css convention) */
.nav-list .active { color: var(--green-light); }

/* ---- Hero ---- */
.photos-hero {
  background: var(--green-dark);
  color: #fff;
  padding: 8.5rem 1rem 3rem;
  text-align: center;
}

.photos-hero-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.photos-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.photos-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Filters ---- */
.photo-filters {
  position: sticky;
  top: 74px;
  z-index: 90;
  background: var(--green-dark);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
}

.photo-filter {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.photo-filter:hover { border-color: rgba(255, 255, 255, 0.6); }

.photo-filter.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ---- Grid ---- */
.photos-section { padding: var(--section-pad) 0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.photo-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  margin: 0;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.photo-tile:hover img { transform: scale(1.05); }

.photo-tile::after {
  content: attr(data-title);
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.photo-tile:hover::after { opacity: 1; }

.photo-tile[hidden] { display: none; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ---- CTA ---- */
.photos-cta {
  background: var(--green-dark);
  color: #fff;
  padding: var(--section-pad) 0;
}

.photos-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.photos-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.photos-cta a:not(.btn) { color: var(--green-light); }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .photos-hero { padding-top: 7rem; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
