/* ═══════════════════════════════════════════════════════
   Parish Publisher — News Photo Gallery & Lightbox
   Uses the --pp- variables defined in parish-publisher.css
═══════════════════════════════════════════════════════ */

.pp-news-gallery { margin: 2rem 0; }
.pp-news-gallery__heading {
  font-family: var(--pp-serif); font-size: 1.15rem; font-weight: 600;
  color: var(--pp-slate); margin: 0 0 .9rem;
}
.pp-news-gallery__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.pp-news-gallery__item {
  padding: 0; border: none; background: none; cursor: pointer; border-radius: 8px; overflow: hidden;
  aspect-ratio: 1/1; box-shadow: var(--pp-shadow); transition: transform .15s;
}
.pp-news-gallery__item:hover { transform: scale(1.03); }
.pp-news-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Lightbox ─────────────────────────────────────────── */
.pp-lightbox {
  position: fixed; inset: 0; z-index: 100000; display: none;
  align-items: center; justify-content: center;
}
.pp-lightbox.is-open { display: flex; }
.pp-lightbox__backdrop { position: absolute; inset: 0; background: rgba(10,14,20,.92); }
body.pp-lightbox-lock { overflow: hidden; }

.pp-lightbox__img {
  position: relative; z-index: 1; max-width: 90vw; max-height: 84vh;
  border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.pp-lightbox__close {
  position: absolute; top: 18px; right: 22px; z-index: 2; background: none; border: none;
  color: #fff; font-size: 32px; line-height: 1; cursor: pointer;
}
.pp-lightbox__close:hover { color: var(--pp-gold-lt); }

.pp-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.14); color: #fff; font-size: 17px; cursor: pointer;
  transition: background .15s;
}
.pp-lightbox__nav:hover:not(:disabled) { background: rgba(255,255,255,.28); }
.pp-lightbox__nav:disabled { opacity: .25; cursor: default; }
.pp-lightbox__nav--prev { left: 18px; }
.pp-lightbox__nav--next { right: 18px; }

.pp-lightbox__count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: #cfd6e0; font-family: var(--pp-sans); font-size: 13px;
}

@media (max-width: 640px) {
  .pp-lightbox__nav { width: 38px; height: 38px; font-size: 14px; }
  .pp-lightbox__nav--prev { left: 8px; } .pp-lightbox__nav--next { right: 8px; }
}
