
/* =====================================
   MOMENTS EXPERIENCE – GALÉRIA
===================================== */

.gallery-page {
  overflow-x: hidden;
}

.gallery-content {
  width: 100%;
  overflow: hidden;
}

.gallery-content h1,
.gallery-content h2 {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-weight: 400;
}

.gallery-content p {
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-weight: 300;
  line-height: 1.9;
}

.gallery-eyebrow {
  display: block;
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #a58a68;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* GOMB */

.gallery-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 34px;
  background: #b49a78;
  border: 1px solid #b49a78;
  color: #fff;
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.gallery-button:hover {
  background: transparent;
  color: #b49a78;
  transform: translateY(-3px);
}

/* HERO */

.gallery-hero {
  position: relative;
  min-height: 620px;
  height: min(760px, 82vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(25, 21, 17, .48), rgba(25, 21, 17, .55)),
    url("assets/gallery-hero.jpg") center / cover no-repeat;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 17, 14, .2),
    rgba(20, 17, 14, .03),
    rgba(20, 17, 14, .2)
  );
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  width: min(800px, 88%);
  padding: 90px 0;
  animation: galleryHeroIn 1.1s ease both;
}

.gallery-hero .gallery-eyebrow {
  color: #e1c9a6;
}

.gallery-hero h1 {
  font-size: clamp(55px, 7.5vw, 96px);
  line-height: .98;
  margin: 0 0 28px;
}

.gallery-hero h1 em {
  color: #e1c9a6;
  font-style: normal;
}

.gallery-hero p {
  max-width: 570px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
}

.gallery-hero .gallery-button:hover,
.gallery-cta .gallery-button:hover {
  color: #fff;
  border-color: #fff;
}

/* GALÉRIA */

.gallery-section {
  padding: 120px 8% 135px;
  background: #faf9f6;
}

.gallery-heading {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.gallery-heading h2 {
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.05;
  color: #29251f;
  margin: 0 0 22px;
}

.gallery-heading h2 em {
  color: #a58a68;
  font-style: normal;
}

.gallery-heading p {
  color: #77716a;
  font-size: 13px;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e9e2d8;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  text-align: left;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease, filter .5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: brightness(.75);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 25px;
  color: #fff;
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity .4s ease;
  background: linear-gradient(transparent 50%, rgba(20, 17, 14, .4));
}

.gallery-item-overlay span {
  font-size: 20px;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
  opacity: 1;
}

.gallery-item:focus-visible {
  outline: 2px solid #b49a78;
  outline-offset: 3px;
}

/* KÉPNAGYÍTÓ / LIGHTBOX */

.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 65px 80px;
  background: rgba(15, 13, 11, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 80vw);
  max-height: 85vh;
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 15px 60px rgba(0, 0, 0, .35);
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox-counter {
  margin-top: 18px;
  color: rgba(255, 255, 255, .65);
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 10px;
  letter-spacing: 2px;
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}

.gallery-lightbox-close:hover {
  color: #d7bd9a;
  transform: rotate(90deg);
}

.gallery-lightbox-arrow {
  flex: 0 0 48px;
  width: 48px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 0;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

.gallery-lightbox-arrow:hover {
  background: #b49a78;
  border-color: #b49a78;
}

.gallery-lightbox-arrow:disabled {
  opacity: .3;
  cursor: default;
}

/* ZÁRÓ CTA */

.gallery-cta {
  padding: 120px 25px 130px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(28, 24, 20, .72), rgba(28, 24, 20, .78)),
    url("assets/gallery-cta.jpg") center / cover no-repeat;
}

.gallery-cta .gallery-eyebrow {
  color: #d7bd9a;
}

.gallery-cta h2 {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  margin: 0 0 25px;
}

.gallery-cta h2 em {
  color: #e1c9a6;
  font-style: normal;
}

.gallery-cta p {
  max-width: 520px;
  margin: 0 auto 35px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

/* HERO ANIMÁCIÓ */

@keyframes galleryHeroIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBIL */

@media (max-width: 850px) {
  .gallery-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .gallery-grid {
    gap: 12px;
  }
}

@media (max-width: 650px) {
  .gallery-hero {
    min-height: 590px;
    height: 80vh;
  }

  .gallery-hero h1 {
    font-size: clamp(48px, 11vw, 68px);
  }

  .gallery-section {
    padding: 85px 5% 95px;
  }

  .gallery-heading {
    margin-bottom: 38px;
  }

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

  .gallery-item {
    aspect-ratio: 3 / 4;
  }

  .gallery-item-overlay {
    padding: 12px;
    font-size: 7px;
    letter-spacing: 1px;
    opacity: 1;
  }

  .gallery-item-overlay span {
    font-size: 17px;
  }

  .gallery-lightbox {
    gap: 8px;
    padding: 65px 8px 35px;
  }

  .gallery-lightbox-content {
    max-width: calc(100vw - 112px);
  }

  .gallery-lightbox-image {
    max-height: 75vh;
  }

  .gallery-lightbox-arrow {
    flex-basis: 34px;
    width: 34px;
    height: 48px;
    font-size: 32px;
  }

  .gallery-lightbox-close {
    top: 10px;
    right: 12px;
  }

  .gallery-cta {
    padding: 90px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-page *,
  .gallery-page *::before,
  .gallery-page *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* GALÉRIA – FELSŐ MOZGÓ HÁTTÉRKÉP */

.gallery-page .gallery-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
    background: #171311;
}

.gallery-page .gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("assets/images/galeria-hero.jpg")
                center / cover no-repeat;
    animation: galleryHeroZoom 20s ease-in-out infinite alternate;
}

.gallery-page .gallery-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.50) 55%,
        rgba(0,0,0,.12) 100%
    );
    pointer-events: none;
}

.gallery-page .gallery-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 100px 7%;
    color: white;
}

.gallery-page .gallery-hero h1,
.gallery-page .gallery-hero p {
    color: white;
}

@keyframes galleryHeroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.10); }
}


/* GALÉRIA – ALSÓ MOZGÓ CTA */

.gallery-page .gallery-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 420px;
    padding: 95px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #171311;
}

.gallery-page .gallery-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("assets/images/galeria-cta.jpg")
                center / cover no-repeat;
    animation: galleryCtaZoom 24s ease-in-out infinite alternate;
}

.gallery-page .gallery-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0,0,0,.60);
}

.gallery-page .gallery-cta h2,
.gallery-page .gallery-cta p {
    color: white;
}

.gallery-page .gallery-cta .gallery-eyebrow,
.gallery-page .gallery-cta h2 em {
    color: #e8d2be;
}

@keyframes galleryCtaZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.12); }
}

/* MOBILNÉZET */

@media (max-width: 768px) {
    .gallery-page .gallery-hero {
        min-height: 480px;
    }

    .gallery-page .gallery-hero-content {
        padding: 85px 25px;
    }

    .gallery-page .gallery-hero::before {
        background-position: 65% center;
    }

    .gallery-page .gallery-cta {
        min-height: 380px;
        padding: 75px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page .gallery-hero::before,
    .gallery-page .gallery-cta::before {
        animation: none;
    }
}

/* Egységes Moments Experience tipográfia, logó, navigáció és lábléc */
body.gallery-page { --sans: 'Jost', sans-serif; --serif: 'Tenor Sans', sans-serif; font-family: 'Jost', sans-serif; font-style: normal; }
body.gallery-page .gallery-content, body.gallery-page .gallery-content p, body.gallery-page .gallery-content button, body.gallery-page .gallery-content a, body.gallery-page .site-header, body.gallery-page .site-footer, body.gallery-page .site-header a, body.gallery-page .site-header button, body.gallery-page .site-footer a { font-family: 'Jost', sans-serif; font-style: normal; }
body.gallery-page .gallery-content h1, body.gallery-page .gallery-content h2 { font-family: 'Tenor Sans', sans-serif; font-style: normal; font-weight: 400; }
body.gallery-page .gallery-content em, body.gallery-page .gallery-content i, body.gallery-page .site-header em, body.gallery-page .site-footer em { font-style: normal !important; }
body.gallery-page .site-header .brand, body.gallery-page .site-footer .brand { display: inline-flex; align-items: center; }
body.gallery-page .site-header .brand-logo { display: block; width: auto; height: 58px; max-width: min(260px, 38vw); object-fit: contain; }
body.gallery-page .site-footer .brand-logo { display: block; width: auto; height: 76px; max-width: min(260px, 70vw); object-fit: contain; }
body.gallery-page .site-header .main-nav > a, body.gallery-page .site-header .nav-dropdown-toggle, body.gallery-page .site-header .nav-submenu a { font-family: 'Jost', sans-serif; font-style: normal; }
body.gallery-page .site-footer .socials { display: flex; align-items: center; gap: 17px; font-size: 21px; border-left: 1px solid #6d625b; padding-left: 35px; }
body.gallery-page .site-footer .socials a { font-size: inherit; color: inherit; text-decoration: none; width: auto; height: auto; border: 0; border-radius: 0; background: transparent; }
@media (max-width: 760px) { body.gallery-page .site-header .brand-logo { height: 46px; max-width: 180px; } body.gallery-page .site-footer .brand-logo { height: 60px; max-width: 200px; } body.gallery-page .site-footer .socials { padding-left: 20px; } }
