/* ============================================================
   Galéria oldal – galeria.css
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.gal-hero {
  background: var(--orange);
  padding: calc(var(--nav-h) + 48px) 48px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.gal-breadcrumb,
.gal-hero-eyebrow,
.gal-hero-title,
.gal-hero-sub { position: relative; z-index: 1; }

.gal-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  justify-content: center; margin-bottom: 16px;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
}
.gal-breadcrumb a {
  color: rgba(39,16,1,0.55); text-decoration: none; transition: color 0.2s;
}
.gal-breadcrumb a:hover { color: var(--dark); }
.gal-breadcrumb i { color: rgba(39,16,1,0.35); font-size: 0.7rem; }
.gal-breadcrumb span { color: var(--dark); font-weight: 700; }

.gal-hero-eyebrow {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(39,16,1,0.6); margin: 0 0 12px;
}
.gal-hero-title {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900; color: var(--dark); margin: 0 0 14px; line-height: 1.1;
}
.gal-hero-title em { font-style: italic; }
.gal-hero-sub {
  font-family: var(--sans); font-size: 1rem; color: rgba(39,16,1,0.7);
  margin: 0; max-width: 480px; margin-inline: auto;
}

/* ── Slideshow ──────────────────────────────────────────────── */
.gal-section {
  background: url('../uploads/STA00290.webp') center/cover fixed;
  position: relative;
}
.gal-section::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: rgba(10,5,2,0.82);
  pointer-events: none;
}
.gal-content { position: relative; z-index: 1; }
.gal-content {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 32px 80px;
}

.gal-slideshow {
  display: flex; flex-direction: column; gap: 12px;
}

.gal-slide-main {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #0a0503; border-radius: 6px; overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 6px rgba(232,92,10,0.15);
}

.gal-slide-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: opacity 0.3s ease;
}

.gal-slide-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(10,5,2,0.45) 0%,
    transparent 18%,
    transparent 58%,
    rgba(10,5,2,0.72) 100%);
}

.gal-slide-btn {
  pointer-events: all;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.5); border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s; z-index: 2;
}
.gal-slide-btn:hover { background: var(--orange); border-color: var(--orange); }
.gal-slide-prev { left: 16px; }
.gal-slide-next { right: 16px; }

.gal-slide-caption {
  position: absolute; bottom: 48px; left: 0; right: 0;
  padding: 0 70px;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.85); text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6); pointer-events: none;
}

.gal-slide-counter {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.4);
  padding: 4px 10px; border-radius: 100px; pointer-events: none;
}

.gal-slide-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  color: rgba(255,255,255,0.45); white-space: nowrap;
  display: flex; align-items: center; gap: 5px; pointer-events: none;
}

/* Thumbnail csík */
.gal-thumbs {
  display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: var(--orange) transparent;
}
.gal-thumbs::-webkit-scrollbar { height: 4px; }
.gal-thumbs::-webkit-scrollbar-track { background: transparent; }
.gal-thumbs::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

.gal-thumb {
  flex-shrink: 0; width: 88px; height: 62px;
  border-radius: 4px; overflow: hidden;
  border: 2.5px solid transparent;
  background: #111; cursor: pointer; padding: 0;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.5;
}
.gal-thumb:hover { opacity: 0.8; }
.gal-thumb.active { border-color: var(--orange); opacity: 1; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Üres állapot */
.gal-empty {
  text-align: center; padding: 80px 20px;
  color: rgba(255,255,255,0.3); font-family: var(--sans);
}
.gal-empty i { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(10,5,2,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.lb-overlay.lb-open { opacity: 1; pointer-events: all; }

.lb-img-wrap {
  position: relative; max-width: 90vw; max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.96); transition: transform 0.25s;
}
.lb-overlay.lb-open .lb-img { transform: scale(1); }

.lb-caption {
  position: absolute; bottom: -36px; left: 0; right: 0;
  text-align: center; font-family: var(--sans); font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 9510;
}
.lb-btn:hover { background: rgba(232,92,10,0.6); border-color: var(--orange); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-close {
  position: fixed; top: 20px; right: 20px; z-index: 9510;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(232,92,10,0.6); }

.lb-counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 0.8rem; color: rgba(255,255,255,0.4);
  z-index: 9510;
}

/* ── Reszponzív ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gal-hero { padding: calc(var(--nav-h) + 32px) 24px 32px; }
  .gal-content { padding: 24px 16px 60px; }
  .gal-slide-btn { width: 40px; height: 40px; font-size: 1rem; }
  .gal-slide-prev { left: 10px; }
  .gal-slide-next { right: 10px; }
  .lb-btn { width: 40px; height: 40px; font-size: 1rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
@media (max-width: 600px) {
  .gal-hero { padding: calc(var(--nav-h) + 24px) 20px 28px; }
  .gal-hero-title { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  .gal-hero-sub { font-size: 0.88rem; }
  .gal-slide-main { aspect-ratio: 4/3; border-radius: 4px; }
  .gal-slide-caption { padding: 0 52px; font-size: 0.8rem; bottom: 38px; }
  .gal-thumb { width: 68px; height: 48px; }
}

@media (max-width: 380px) {
  .gal-hero-title { font-size: 1.5rem; }
  .gal-slide-btn { width: 34px; height: 34px; font-size: 0.9rem; }
}
