/* =======================================================
   GALLERI — TILFØJELSE TIL OM MIG-STILEN
   ======================================================= */

.gallery-page-intro {
  background: var(--warm-white);
  padding: 100px 45px 45px;
}

.gallery-page-intro-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.gallery-page-intro-text {
  max-width: 1990px;
  margin: 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--brown);
}

.gallery-navigation {
  background: var(--warm-white);
  padding: 10px 45px 45px;
}

.gallery-navigation-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery-navigation a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.gallery-navigation a::after {
  content: "";
  position: absolute;
  left: .35rem;
  right: .35rem;
  bottom: -5px;
  height: 1px;
  width: auto;
  background: transparent;
  transition: background .25s ease;
}

.gallery-navigation a:hover,
.gallery-navigation a.active {
  color: var(--brown);
}

.gallery-navigation a:hover::after,
.gallery-navigation a.active::after {
  background: var(--brown);
}

/* =======================================================
   EDITORIAL GALLERY
   ======================================================= */

.gallery-section {
  background: var(--cream);
  padding: 55px 45px 110px;
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--warm-white);
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(61,47,43,0);
  transition: background .35s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(61,47,43,.08);
}

.gallery-item--large {
  grid-column: span 7;
  aspect-ratio: 1.25 / 1;
}

.gallery-item--portrait {
  grid-column: span 5;
  aspect-ratio: .82 / 1;
}

.gallery-item--small {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}

.gallery-item--wide {
  grid-column: span 8;
  aspect-ratio: 1.7 / 1;
}

.gallery-item--full {
  grid-column: 1 / -1;
  aspect-ratio: 2.05 / 1;
}

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

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(35,27,24,.94);
}

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

.gallery-lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  cursor: pointer;
  opacity: .8;
  transition: opacity .25s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  opacity: 1;
}

.gallery-lightbox-close {
  top: 25px;
  right: 30px;
  font-size: 2rem;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  padding: 20px;
  font-size: 2rem;
}

.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }

/* =======================================================
   TABLET
   ======================================================= */

@media (max-width: 991.98px) {
  .gallery-page-intro {
    padding: 80px 35px 40px;
  }

  .gallery-navigation {
    padding: 10px 35px 35px;
  }

  .gallery-section {
    padding: 45px 35px 90px;
  }

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

/* =======================================================
   MOBILE
   ======================================================= */

@media (max-width: 575.98px) {
  .gallery-page-intro {
    padding: 70px 25px 30px;
  }

  .gallery-page-intro h2 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .gallery-navigation {
    padding: 10px 25px 30px;
  }

  .gallery-navigation-inner {
    gap: 25px;
  }

  .gallery-navigation a {
    font-size: 10px;
    white-space: nowrap;
  }

  .gallery-section {
    padding: 35px 25px 70px;
  }

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

  .gallery-item--large,
  .gallery-item--wide,
  .gallery-item--full {
    grid-column: span 2;
  }

  .gallery-item--portrait,
  .gallery-item--small {
    grid-column: span 1;
  }

  .gallery-lightbox {
    padding: 20px;
  }

  .gallery-lightbox-prev { left: 0; }
  .gallery-lightbox-next { right: 0; }
}
