.page--gallery .site-header {
  position: absolute;
}

.gallery-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #fff;
  background: #080604;
}

.gallery-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(5, 4, 3, 0.93) 0%,
    rgba(5, 4, 3, 0.78) 32%,
    rgba(5, 4, 3, 0.34) 58%,
    rgba(5, 4, 3, 0.05) 100%
  );
}

.gallery-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 500px;
  max-width: 620px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 88px;
}

.gallery-hero h1 {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(62px, 6vw, 70px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.gallery-hero p:not(.eyebrow) {
  max-width: 530px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.65;
}

.gallery-hero .button svg,
.gallery-final-cta .button svg {
  width: 16px;
  height: 16px;
}

.gallery-intro {
  padding: 72px 0 38px;
  background: var(--cream);
}

.gallery-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 84px;
  align-items: end;
}

.gallery-intro h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 4.4vw, 52px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--dark);
}

.gallery-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.gallery-showcase {
  padding: 0 0 58px;
  background: var(--cream);
}

.gallery-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-filters::-webkit-scrollbar {
  display: none;
}

.gallery-filters button {
  min-height: 42px;
  padding: 0 23px;
  border: 1px solid rgba(28, 25, 22, 0.28);
  border-radius: 22px;
  color: var(--dark);
  background: transparent;
  font: 600 13px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.gallery-filters button:hover {
  border-color: var(--gold);
}

.gallery-filters button.active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

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

.gallery-item {
  position: relative;
  display: block;
  grid-column: span 4;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  aspect-ratio: 0.9;
  background: #19120d;
  cursor: zoom-in;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item--wide {
  grid-column: span 7;
  aspect-ratio: 1.55;
}

.gallery-item--portrait {
  grid-column: span 5;
  aspect-ratio: 0.95;
}

.gallery-item--medium {
  grid-column: span 5;
  aspect-ratio: 1.22;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(5, 4, 3, 0);
  transition: background 300ms ease;
}

.gallery-item span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(242, 202, 116, 0.55);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(5, 4, 3, 0.46);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.gallery-item span svg {
  width: 17px;
  height: 17px;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item:hover::after {
  background: rgba(5, 4, 3, 0.16);
}

.gallery-item:hover span {
  opacity: 1;
  transform: translateY(0);
}

.gallery-atmosphere {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, rgba(5, 4, 3, 0.9), rgba(5, 4, 3, 0.58)), url("../../gallery/bursa-nilufer-masaj-salonu-9.jpg") center / cover;
}

.gallery-atmosphere__inner {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.gallery-atmosphere h2 {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(46px, 4.6vw, 54px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.gallery-atmosphere p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.gallery-final-cta {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, rgba(5, 4, 3, 0.92), rgba(5, 4, 3, 0.48)), url("../../gallery/bursa-nilufer-masaj-salonu-3.jpg") center / cover;
}

.gallery-final-cta .about-final-cta__inner {
  min-height: 210px;
  align-items: center;
}

.gallery-final-cta h2 {
  color: #fff;
}

.gallery-final-cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 42px;
  background: rgba(5, 4, 3, 0.94);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox figure {
  display: grid;
  gap: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-lightbox button {
  border: 1px solid rgba(242, 202, 116, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.gallery-lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 34px;
  transform: translateY(-50%);
}

.gallery-lightbox__nav--prev {
  left: 28px;
}

.gallery-lightbox__nav--next {
  right: 28px;
}

@media (max-width: 900px) {
  .gallery-hero,
  .gallery-hero__inner {
    min-height: 560px;
  }

  .gallery-hero__inner {
    padding-top: 72px;
  }

  .gallery-hero h1 {
    font-size: 48px;
  }

  .gallery-intro {
    padding: 54px 0 28px;
  }

  .gallery-intro__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-intro h2 {
    font-size: 40px;
  }

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

  .gallery-item,
  .gallery-item--portrait,
  .gallery-item--medium {
    grid-column: span 1;
    aspect-ratio: 0.88;
  }

  .gallery-item--wide,
  .gallery-item:nth-child(4) {
    grid-column: 1 / -1;
    aspect-ratio: 1.48;
  }

  .gallery-item span {
    opacity: 1;
    transform: none;
  }

  .gallery-atmosphere,
  .gallery-atmosphere__inner {
    min-height: 360px;
  }

  .gallery-atmosphere h2 {
    font-size: 42px;
  }

  .gallery-lightbox {
    padding: 22px;
  }

  .gallery-lightbox__nav {
    top: auto;
    bottom: 22px;
    transform: none;
  }
}
