/* =========================================================
   GALÉRIA HERO – nagy kép a fejléc alatt
   ========================================================= */

.hero--gallery {
  margin-bottom: 2.5rem;
}

.hero--gallery .hero-subhero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 620px;
  background: #e5e7eb;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.hero--gallery .hero-subhero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: brightness(0.8);
}

.hero--gallery .hero-subhero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 2.4rem 2.7rem;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero--gallery .hero-subhero-content h1 {
  font-size: 1.8rem;
  line-height: 1.25;
}

.hero--gallery .hero-subhero-content p {
  font-size: 1rem;
  max-width: 32rem;
  opacity: 0.95;
}

/* =========================================================
   GALÉRIA OLDAL
   ========================================================= */

.gallery-header {
  margin: 0 0 1.8rem;
}

.gallery-header p {
  max-width: 720px;
  font-size: 0.98rem;
  color: #4b5563;
}

/* Szűrő gombok */

.gallery-section {
  margin-bottom: 3rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.gallery-filter-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #111827;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 80ms ease;
}

.gallery-filter-btn:hover {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.gallery-filter-btn--active {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

/* Rácsos elrendezés */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform 130ms ease,
    box-shadow 130ms ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.45);
}

.gallery-item img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  color: #f9fafb;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.4),
    transparent
  );
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none; /* alapból rejtve */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8); /* UGYANAZ, mint a rooms lightbox */
  z-index: 9999;
  padding: 1.5rem;
}

.gallery-lightbox--open {
  display: flex;
}

.gallery-lightbox-inner {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  background: #111827;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.gallery-lightbox-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  overflow: hidden;
}

/* maga a nagyított kép – ugyanaz, mint .rooms-lightbox-image */
.gallery-lightbox-inner img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 0.5rem;
}

/* Bezárás gomb – ugyanaz a stílus, mint a szobáknál */
.gallery-lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;

  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
  line-height: 1;

  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 999px;

  color: #f9fafb;
  cursor: pointer;
  z-index: 2;
}

/* Bal/jobb nyilak – rooms-lightbox-nav alapján */
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #f9fafb;
  font-size: 2.4rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-prev {
  left: 0.5rem;
}

.gallery-lightbox-next {
  right: 0.5rem;
}

/* Felirat – ugyanaz, mint .rooms-lightbox-caption */
.gallery-lightbox-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #e5e7eb;
  text-align: center;
}

/* =========================================================
   RESZPONZÍV
   ========================================================= */

@media (max-width: 900px) {
  .hero--gallery .hero-subhero {
    height: 320px;
  }

  .hero--gallery .hero-subhero-content {
    padding: 1.6rem 1.4rem;
    max-width: 100%;
  }

  .hero--gallery .hero-subhero-content h1 {
    font-size: 1.4rem;
  }

  .gallery-header {
    margin-bottom: 1.4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item img {
    height: 200px;
  }

  .gallery-lightbox-inner {
    padding: 0.9rem 0.9rem 0.8rem;
  }
}

@media (max-width: 640px) {
  .hero--gallery .hero-subhero {
    height: 260px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
  }

  .hero--gallery .hero-subhero-content {
    padding: 1.1rem 1rem;
    text-align: center;
    align-items: center;
  }

  .hero--gallery .hero-subhero-content p {
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .gallery-item img {
    height: 180px;
  }

  .gallery-lightbox {
    padding: 0.9rem;
  }

  .gallery-lightbox-inner {
    border-radius: 0.8rem;
  }
}
