/* ── Galéria (Képek) — a marketing oldal dizájnjához illeszkedő stílus ── */

/* Fejléc-sáv: a fix navbar (96px) alá csúszik, ezért van felső térköz.
   Sötét háttér, hogy a navbar fehér szövege jól olvasható legyen. */
.gallery-hero {
  padding: 150px 2rem 3rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 60%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
}
.gallery-hero-inner { max-width: 900px; margin: 0 auto; }
.gallery-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.gallery-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: .6rem;
}
.gallery-hero p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.gallery-hero-desc { margin-top: .8rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.gallery-back {
  display: inline-block;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color .2s;
}
.gallery-back:hover { color: var(--white); }

/* Tartalom-konténer */
.gallery-wrap { max-width: 1240px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.gallery-empty { text-align: center; color: var(--muted); padding: 3rem 0; font-size: 1.1rem; }

/* ── Albumok rácsa ── */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.album-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.album-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--light);
  overflow: hidden;
}
.album-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.album-card:hover .album-card-img img { transform: scale(1.05); }
.album-card-count {
  position: absolute;
  bottom: .6rem; right: .6rem;
  background: rgba(13, 27, 42, .78);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
}
.album-card-body { padding: 1rem 1.2rem 1.3rem; }
.album-card-body h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.album-card-date { color: var(--muted); font-size: .9rem; }

/* ── Képek rácsa egy albumon belül ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .9rem;
}
.photo-thumb {
  padding: 0; border: 0; cursor: pointer;
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.photo-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 15, 25, .93);
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lb-figure {
  margin: 0; max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center;
}
.lb-figure img {
  max-width: 92vw; max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
#lb-caption {
  color: rgba(255, 255, 255, .9);
  margin-top: 1rem;
  font-size: .95rem;
  text-align: center;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 1.2rem; right: 1.4rem; width: 46px; height: 46px; font-size: 1.8rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.4rem; }
.lb-prev { left: 1.4rem; }
.lb-next { right: 1.4rem; }

@media (max-width: 600px) {
  .gallery-hero { padding-top: 120px; }
  .gallery-wrap { padding: 2rem 1.1rem 3.5rem; }
  .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 1.8rem; }
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
}
