/* ── KÉPGALÉRIA + LIGHTBOX ─────────────────────────
   A rács (thumbnail-ek) az oldal világos témáját követi.
   A LIGHTBOX (a kép-nézegető felugró réteg) SZÁNDÉKOSAN sötét marad –
   ez bevett konvenció (a fotó jobban kiemelkedik sötét háttéren), ezért
   a lightboxon belüli színek NEM a --text-muted/--border világos-téma
   tokenjeit használják, hanem explicit, sötét-hátterű változatokat. */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 8px;
}

.gallery__item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.gallery__item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--surface-2);
}

.gallery__item figcaption {
  padding: 11px 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-soft);
}

/* ── LIGHTBOX OVERLAY (szándékosan sötét) ───────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4,9,18,0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 50px rgba(0,0,0,0.6);
}

.lightbox__caption {
  margin-top: 16px;
  max-width: 720px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.lightbox__count {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
}

/* Gombok */
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.12s;
}

.lightbox__btn:hover { background: rgba(0,103,192,0.55); }
.lightbox__btn:active { transform: scale(0.93); }

.lightbox__close { top: 18px; right: 18px; font-size: 30px; }
.lightbox__prev  { left: 14px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .gallery__item figcaption { font-size: 13px; padding: 9px 11px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__btn { width: 46px; height: 46px; font-size: 22px; }
}
