/* =========================================================
   MATEMBEZI — GALLERY PAGE
   Load after assets/css/style.css.
========================================================= */

body[data-template="gallery-page"] {
  --gallery-forest: #102f24;
  --gallery-forest-deep: #061b13;
  --gallery-paper: #fffdf8;
  --gallery-cream: #f6efe2;
  --gallery-gold: #c6a664;
  --gallery-gold-light: #ead69e;
  --gallery-line: rgba(37, 35, 31, .12);
  overflow-x: hidden;
}

body[data-template="gallery-page"].gallery-dialog-open {
  overflow: hidden;
}

body[data-template="gallery-page"] .site-header:not(.is-scrolled):not(.nav-expanded) {
  background: linear-gradient(to bottom, rgba(5, 20, 14, .56), transparent);
}

body[data-template="gallery-page"] .site-header:not(.is-scrolled):not(.nav-expanded) .brand-mark {
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .24),
    0 0 0 5px rgba(255, 255, 255, .055);
}

body[data-template="gallery-page"] .site-header:not(.is-scrolled):not(.nav-expanded) .main-nav a:hover,
body[data-template="gallery-page"] .site-header:not(.is-scrolled):not(.nav-expanded) .main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .1);
  color: var(--gallery-gold-light);
}

/* Hero */

body[data-template="gallery-page"] .gallery-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: max(730px, 88svh);
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header) + 86px) 0 100px;
  background:
    linear-gradient(
      90deg,
      rgba(4, 20, 14, .98) 0%,
      rgba(5, 24, 17, .88) 42%,
      rgba(6, 24, 17, .44) 72%,
      rgba(6, 24, 17, .18) 100%
    ),
    radial-gradient(circle at 78% 17%, rgba(214, 185, 112, .32), transparent 29%),
    var(--gallery-hero-image) var(--gallery-hero-position, center) / cover no-repeat;
}

body[data-template="gallery-page"] .gallery-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 38%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .24) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, .14) 0 1px, transparent 1.5px);
  background-size: auto, 31px 31px, 47px 47px;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to right, #000, transparent 78%);
  mask-image: linear-gradient(to right, #000, transparent 78%);
}

body[data-template="gallery-page"] .gallery-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 16, 11, .6), transparent 34%),
    radial-gradient(ellipse at center, transparent 48%, rgba(2, 13, 9, .35) 100%);
}

body[data-template="gallery-page"] .gallery-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(310px, .54fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: end;
}

body[data-template="gallery-page"] .gallery-hero-copy {
  max-width: 840px;
}

body[data-template="gallery-page"] .gallery-hero .breadcrumbs {
  margin-bottom: 31px;
  color: rgba(255, 255, 255, .64);
}

body[data-template="gallery-page"] .gallery-hero .breadcrumbs a {
  color: rgba(255, 255, 255, .9);
}

body[data-template="gallery-page"] .gallery-hero .eyebrow {
  gap: .58rem;
  padding: .46rem .72rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--pill, 999px);
  background: rgba(255, 255, 255, .08);
  color: var(--gallery-gold-light);
  backdrop-filter: blur(12px);
}

body[data-template="gallery-page"] .gallery-hero h1 {
  max-width: 11ch;
  margin: 22px 0 24px;
  color: #fff;
  font-size: clamp(3.7rem, 6.2vw, 6.2rem);
  line-height: .94;
  letter-spacing: -.052em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .25);
}

body[data-template="gallery-page"] .gallery-hero-copy > p {
  max-width: 63ch;
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--gallery-gold);
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.02rem, 1.4vw, 1.17rem);
  line-height: 1.72;
}

body[data-template="gallery-page"] .gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 30px;
}

body[data-template="gallery-page"] .gallery-hero-actions .btn {
  min-height: 52px;
  padding-inline: 1.25rem;
}

body[data-template="gallery-page"] .gallery-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .84);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}

body[data-template="gallery-page"] .gallery-text-link i {
  color: var(--gallery-gold-light);
  transition: transform var(--ease, .25s ease);
}

body[data-template="gallery-page"] .gallery-text-link:hover i {
  transform: translateX(4px);
}

body[data-template="gallery-page"] .gallery-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

body[data-template="gallery-page"] .gallery-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .76);
  font-size: .8rem;
  font-weight: 760;
}

body[data-template="gallery-page"] .gallery-hero-points i {
  color: var(--gallery-gold-light);
}

body[data-template="gallery-page"] .gallery-hero-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 27px 27px 72px 27px;
  background: rgba(8, 37, 26, .66);
  color: #fff;
  box-shadow:
    0 30px 72px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(19px) saturate(130%);
}

body[data-template="gallery-page"] .gallery-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gallery-gold), var(--gallery-gold-light), transparent);
}

body[data-template="gallery-page"] .gallery-card-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--gallery-gold-light);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body[data-template="gallery-page"] .gallery-card-number {
  position: absolute;
  top: 17px;
  right: 24px;
  color: rgba(255, 255, 255, .1);
  font: 700 4.5rem/.9 Georgia, "Times New Roman", serif;
  letter-spacing: -.08em;
}

body[data-template="gallery-page"] .gallery-hero-card h2 {
  position: relative;
  max-width: 14ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  line-height: 1.08;
}

body[data-template="gallery-page"] .gallery-hero-card p {
  margin: 17px 0 22px;
  color: rgba(255, 255, 255, .68);
  font-size: .87rem;
  line-height: 1.65;
}

body[data-template="gallery-page"] .gallery-card-button {
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: none;
}

body[data-template="gallery-page"] .gallery-card-button:hover {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .17);
  color: #fff;
}

/* Gallery collection */

body[data-template="gallery-page"] #gallery-collection {
  scroll-margin-top: calc(var(--header, 78px) + 22px);
}

body[data-template="gallery-page"] .gallery-section {
  position: relative;
  padding-block: clamp(76px, 9vw, 124px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(198, 166, 100, .13), transparent 22%),
    linear-gradient(180deg, #faf6ee 0%, #f4ecdf 100%);
}

body[data-template="gallery-page"] .gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(31, 78, 60, .22) 0 1px, transparent 1.4px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 38%);
  mask-image: linear-gradient(to bottom, #000, transparent 38%);
}

body[data-template="gallery-page"] .gallery-section > .container {
  position: relative;
}

body[data-template="gallery-page"] .gallery-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  margin-bottom: 33px;
}

body[data-template="gallery-page"] .gallery-section-head h2 {
  margin: 14px 0 12px;
  color: var(--gallery-forest);
  font-size: clamp(2.75rem, 5.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

body[data-template="gallery-page"] .gallery-section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted, #69645c);
  line-height: 1.72;
}

body[data-template="gallery-page"] .gallery-count {
  display: grid;
  justify-items: end;
  padding-bottom: 4px;
}

body[data-template="gallery-page"] .gallery-count strong {
  color: var(--gallery-forest);
  font: 700 2.6rem/.9 Georgia, "Times New Roman", serif;
}

body[data-template="gallery-page"] .gallery-count span {
  margin-top: 6px;
  color: var(--muted, #69645c);
  font-size: .68rem;
  font-weight: 840;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-template="gallery-page"] .gallery-filter-bar {
  position: sticky;
  z-index: 8;
  top: calc(var(--header, 78px) + 12px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
  padding: 9px;
  border: 1px solid rgba(37, 35, 31, .1);
  border-radius: 18px;
  background: rgba(255, 253, 248, .86);
  box-shadow: 0 18px 42px rgba(41, 34, 23, .09);
  backdrop-filter: blur(16px) saturate(130%);
}

body[data-template="gallery-page"] .gallery-filter {
  min-height: 40px;
  padding: .55rem .86rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted, #69645c);
  font: inherit;
  font-size: .75rem;
  font-weight: 820;
  cursor: pointer;
  transition:
    color var(--ease, .25s ease),
    border-color var(--ease, .25s ease),
    background var(--ease, .25s ease),
    transform var(--ease, .25s ease);
}

body[data-template="gallery-page"] .gallery-filter:hover {
  color: var(--gallery-forest);
  background: rgba(198, 166, 100, .1);
}

body[data-template="gallery-page"] .gallery-filter.is-active {
  border-color: rgba(31, 78, 60, .16);
  background: var(--gallery-forest);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 47, 36, .16);
}

body[data-template="gallery-page"] .gallery-filter:focus-visible,
body[data-template="gallery-page"] .gallery-tile:focus-visible,
body[data-template="gallery-page"] .gallery-lightbox button:focus-visible,
body[data-template="gallery-page"] .gallery-lightbox a:focus-visible {
  outline: 3px solid var(--gallery-gold-light);
  outline-offset: 3px;
}

body[data-template="gallery-page"] .gallery-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

body[data-template="gallery-page"] .gallery-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #d9d1c2;
  color: #fff;
  box-shadow: 0 18px 44px rgba(36, 31, 22, .12);
  cursor: zoom-in;
  text-align: left;
  transition:
    transform .36s cubic-bezier(.2, .7, .2, 1),
    box-shadow .36s ease,
    opacity .22s ease;
}

body[data-template="gallery-page"] .gallery-tile-wide {
  grid-column: auto;
}

body[data-template="gallery-page"] .gallery-tile-tall {
  grid-row: auto;
}

body[data-template="gallery-page"] .gallery-tile[hidden] {
  display: none;
}

body[data-template="gallery-page"] .gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform .65s cubic-bezier(.2, .7, .2, 1),
    filter .45s ease;
}

body[data-template="gallery-page"] .gallery-tile-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 19, 13, .86), rgba(4, 19, 13, .06) 62%),
    linear-gradient(125deg, rgba(4, 19, 13, .2), transparent 45%);
  transition: background .35s ease;
}

body[data-template="gallery-page"] .gallery-tile-meta {
  position: absolute;
  right: 20px;
  bottom: 19px;
  left: 20px;
  display: grid;
  gap: 4px;
}

body[data-template="gallery-page"] .gallery-tile-meta small {
  color: var(--gallery-gold-light);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body[data-template="gallery-page"] .gallery-tile-meta strong {
  max-width: 20ch;
  color: #fff;
  font: 700 clamp(1.18rem, 2vw, 1.7rem)/1.08 Georgia, "Times New Roman", serif;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .34);
}

body[data-template="gallery-page"] .gallery-tile-open {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(6, 27, 19, .34);
  color: #fff;
  opacity: 0;
  transform: translateY(-6px);
  backdrop-filter: blur(10px);
  transition:
    opacity .3s ease,
    transform .3s ease,
    background .3s ease;
}

body[data-template="gallery-page"] .gallery-tile:hover {
  z-index: 2;
  transform: translateY(-5px);
  box-shadow: 0 28px 58px rgba(26, 34, 26, .2);
}

body[data-template="gallery-page"] .gallery-tile:hover img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.02);
}

body[data-template="gallery-page"] .gallery-tile:hover .gallery-tile-open,
body[data-template="gallery-page"] .gallery-tile:focus-visible .gallery-tile-open {
  opacity: 1;
  transform: translateY(0);
}

body[data-template="gallery-page"] .gallery-empty-state {
  margin: 30px 0 0;
  padding: 28px;
  border: 1px dashed rgba(37, 35, 31, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .45);
  color: var(--muted, #69645c);
  text-align: center;
}

body[data-template="gallery-page"] .gallery-empty-state[hidden] {
  display: none;
}

/* Lightbox */

body[data-template="gallery-page"] .gallery-lightbox {
  width: min(1180px, calc(100vw - 34px));
  max-width: none;
  max-height: calc(100svh - 34px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: #071a13;
  color: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .56);
}

body[data-template="gallery-page"] .gallery-lightbox::backdrop {
  background: rgba(3, 13, 9, .86);
  backdrop-filter: blur(10px) saturate(80%);
}

body[data-template="gallery-page"] .gallery-lightbox[open] {
  animation: galleryDialogIn .28s cubic-bezier(.2, .7, .2, 1) both;
}

body[data-template="gallery-page"] .gallery-lightbox-shell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100svh - 34px);
}

body[data-template="gallery-page"] .gallery-lightbox-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(4, 19, 13, .55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform .25s ease, background .25s ease;
}

body[data-template="gallery-page"] .gallery-lightbox-close:hover {
  transform: rotate(5deg) scale(1.04);
  background: rgba(4, 19, 13, .78);
}

body[data-template="gallery-page"] .gallery-lightbox-stage {
  position: relative;
  display: grid;
  min-height: min(68svh, 720px);
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(198, 166, 100, .11), transparent 36%),
    #06140f;
}

body[data-template="gallery-page"] .gallery-lightbox-stage figure {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  place-items: center;
}

body[data-template="gallery-page"] .gallery-lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(68svh, 720px);
  object-fit: contain;
}

body[data-template="gallery-page"] .gallery-lightbox-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 48px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(5, 24, 17, .52);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: background .25s ease, transform .25s ease;
}

body[data-template="gallery-page"] .gallery-lightbox-nav:hover {
  background: rgba(5, 24, 17, .82);
  transform: translateY(-50%) scale(1.04);
}

body[data-template="gallery-page"] .gallery-lightbox-prev {
  left: 17px;
}

body[data-template="gallery-page"] .gallery-lightbox-next {
  right: 17px;
}

body[data-template="gallery-page"] .gallery-lightbox-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 24px 27px 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 90% 0%, rgba(198, 166, 100, .13), transparent 35%),
    #0d2a20;
}

body[data-template="gallery-page"] .gallery-lightbox-counter {
  display: block;
  margin-bottom: 6px;
  color: var(--gallery-gold-light);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-template="gallery-page"] .gallery-lightbox-details h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

body[data-template="gallery-page"] .gallery-lightbox-details p {
  max-width: 67ch;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: .83rem;
  line-height: 1.58;
}

body[data-template="gallery-page"] .gallery-lightbox-details .btn {
  white-space: nowrap;
}

@keyframes galleryDialogIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* CTA */

body[data-template="gallery-page"] .gallery-cta {
  position: relative;
  overflow: hidden;
}

body[data-template="gallery-page"] .gallery-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(198, 166, 100, .18);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(198, 166, 100, .035),
    0 0 0 88px rgba(198, 166, 100, .025);
  pointer-events: none;
}

body[data-template="gallery-page"] .gallery-cta .cta-inner {
  position: relative;
  z-index: 1;
}

body[data-template="gallery-page"] .gallery-cta .eyebrow {
  margin-bottom: 11px;
  color: var(--gallery-gold-light);
}

/* Responsive */

@media (max-width: 1040px) {
  body[data-template="gallery-page"] .gallery-hero {
    min-height: auto;
    padding-bottom: 78px;
  }

  body[data-template="gallery-page"] .gallery-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(290px, .5fr);
    gap: 38px;
  }

}

@media (max-width: 860px) {
  body[data-template="gallery-page"] .gallery-hero-grid {
    grid-template-columns: 1fr;
  }

  body[data-template="gallery-page"] .gallery-hero {
    padding-top: calc(var(--header, 78px) + 72px);
    background:
      linear-gradient(to bottom, rgba(4, 20, 14, .89), rgba(4, 20, 14, .7)),
      var(--gallery-hero-image) var(--gallery-hero-position, center) / cover no-repeat;
  }

  body[data-template="gallery-page"] .gallery-hero-copy {
    max-width: 740px;
  }

  body[data-template="gallery-page"] .gallery-hero-card {
    max-width: 610px;
    border-radius: 24px;
  }

  body[data-template="gallery-page"] .gallery-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  body[data-template="gallery-page"] .gallery-hero {
    min-height: 710px;
    padding: calc(var(--header, 72px) + 56px) 0 58px;
  }

  body[data-template="gallery-page"] .gallery-hero .breadcrumbs {
    margin-bottom: 22px;
  }

  body[data-template="gallery-page"] .gallery-hero h1 {
    margin-block: 18px 20px;
    font-size: clamp(3.05rem, 15vw, 4.5rem);
  }

  body[data-template="gallery-page"] .gallery-hero-copy > p {
    padding-left: 16px;
    font-size: .98rem;
  }

  body[data-template="gallery-page"] .gallery-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-template="gallery-page"] .gallery-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  body[data-template="gallery-page"] .gallery-text-link {
    justify-content: center;
    min-height: 44px;
  }

  body[data-template="gallery-page"] .gallery-hero-points {
    gap: 9px 14px;
  }

  body[data-template="gallery-page"] .gallery-hero-points li {
    font-size: .72rem;
  }

  body[data-template="gallery-page"] .gallery-hero-card {
    display: none;
  }

  body[data-template="gallery-page"] .gallery-section {
    padding-block: 56px;
  }

  body[data-template="gallery-page"] .gallery-section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-template="gallery-page"] .gallery-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-items: start;
  }

  body[data-template="gallery-page"] .gallery-count strong {
    font-size: 2rem;
  }

  body[data-template="gallery-page"] .gallery-filter-bar {
    top: calc(var(--header, 72px) + 8px);
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
  }

  body[data-template="gallery-page"] .gallery-filter-bar::-webkit-scrollbar {
    display: none;
  }

  body[data-template="gallery-page"] .gallery-filter {
    flex: 0 0 auto;
  }

  body[data-template="gallery-page"] .gallery-editorial-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-template="gallery-page"] .gallery-tile,
  body[data-template="gallery-page"] .gallery-tile-wide,
  body[data-template="gallery-page"] .gallery-tile-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    border-radius: 17px;
  }

  body[data-template="gallery-page"] .gallery-tile-open {
    opacity: .82;
    transform: none;
  }

  body[data-template="gallery-page"] .gallery-lightbox {
    width: 100vw;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  body[data-template="gallery-page"] .gallery-lightbox-shell {
    max-height: 100svh;
  }

  body[data-template="gallery-page"] .gallery-lightbox-stage {
    min-height: 58svh;
  }

  body[data-template="gallery-page"] .gallery-lightbox-stage img {
    max-height: 58svh;
  }

  body[data-template="gallery-page"] .gallery-lightbox-nav {
    top: auto;
    bottom: 15px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  body[data-template="gallery-page"] .gallery-lightbox-nav:hover {
    transform: scale(1.04);
  }

  body[data-template="gallery-page"] .gallery-lightbox-details {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  }

  body[data-template="gallery-page"] .gallery-lightbox-details .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  body[data-template="gallery-page"] .gallery-hero-points li:last-child {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  body[data-template="gallery-page"] *,
  body[data-template="gallery-page"] *::before,
  body[data-template="gallery-page"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  body[data-template="gallery-page"] .gallery-hero {
    min-height: auto;
    padding: 40px 0;
    background: var(--gallery-forest) !important;
  }

  body[data-template="gallery-page"] .gallery-hero-card,
  body[data-template="gallery-page"] .gallery-filter-bar,
  body[data-template="gallery-page"] .gallery-lightbox,
  body[data-template="gallery-page"] .gallery-cta {
    display: none !important;
  }

  body[data-template="gallery-page"] .gallery-editorial-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }

  body[data-template="gallery-page"] .gallery-tile,
  body[data-template="gallery-page"] .gallery-tile-wide,
  body[data-template="gallery-page"] .gallery-tile-tall {
    grid-column: span 1;
    grid-row: span 1;
    break-inside: avoid;
  }
}
