/* ==========================================================================
   Lowaste - Gallery page
   Desktop and mobile layouts based on the supplied gallery references.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.page-gallery {
  --gallery-green: #16815b;
  --gallery-green-dark: rgba(26, 129, 90, 1) --gallery-ink: #0d1933;
  --gallery-muted: #5f6268;
  --gallery-surface: #f7f7f7;
  --gallery-line: #e8e8e8;
  --gallery-shell: 1620px;
  background: #fff;
  color: var(--gallery-ink);
}

.page-gallery main {
  overflow: hidden;
}

/* Header ----------------------------------------------------------------- */
.page-gallery .gallery-header {
  height: 72px;
  background: transparent;
  box-shadow: none;
  transition: height .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.page-gallery .gallery-header::before {
  display: none;
}

.page-gallery .gallery-header .header__inner {
  width: min(100% - 48px, 1840px);
}

.page-gallery .gallery-header .logo {
  height: 21px;
}

.page-gallery .gallery-header .nav__list {
  gap: clamp(1.15rem, 2.3vw, 2.7rem);
}

.page-gallery .gallery-header .nav__link {
  color: #10202b;
  font-size: .75rem;
  font-weight: 400;
  text-shadow: none;
}

.page-gallery .gallery-header .nav__link::after {
  background: var(--gallery-green);
}

.page-gallery .gallery-header .nav__link--with-icon {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.page-gallery .gallery-header .nav__link--with-icon svg {
  width: 13px;
  height: 13px;
}

.page-gallery .gallery-header .icon-btn {
  color: #0f1c26;
}

.page-gallery .gallery-header .btn {
  min-width: 96px;
  min-height: 37px;
  border-radius: 5px;
  background: var(--gallery-green);
  box-shadow: none;
}

.page-gallery .gallery-header.is-stuck {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  width: 100%;
  height: 62px;
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 1px 0 rgba(10, 24, 18, .08), 0 6px 24px rgba(10, 31, 23, .08);
}

.page-gallery.menu-open .gallery-header {
  background: transparent;
  box-shadow: none;
}

.page-gallery.menu-open .gallery-header .header__logo,
.page-gallery.menu-open .gallery-header .icon-btn,
.page-gallery.menu-open .gallery-header .btn {
  opacity: 0;
  pointer-events: none;
}

.page-gallery.menu-open .gallery-header .burger {
  position: relative;
  z-index: 110;
}

.page-gallery.menu-open .gallery-header .burger span {
  background: #fff;
}

/* Hero ------------------------------------------------------------------- */
.gallery-hero {
  --hero-progress: 0;
  position: relative;
  min-height: clamp(720px, 56.25vw, 1010px);
  overflow: hidden;
  isolation: isolate;
  background: url("../img/gallery-hero-background.png") center top / cover no-repeat;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
}

.gallery-hero__layers,
.gallery-hero__layers>* {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.gallery-hero__layers {
  inset: 0;
  z-index: 1;
}

.gallery-hero__layers>* {
  --layer-y: calc(var(--scroll-y, 0px) * var(--depth, 0));
  transform: translate3d(var(--layer-x, 0px), var(--layer-y), 0);
  will-change: transform;
  backface-visibility: hidden;
}

.gallery-hero__sky {
  --depth: .04;
  inset: -4% -3% -6%;
  width: 106%;
  height: 110%;
  object-fit: cover;
  opacity: .98;
  z-index: 1;
}

.gallery-hero__trees {
  --depth: 0;
  left: 0%;
  bottom: 31%;
  width: 100%;
  max-width: none;
  z-index: 3;
}

.gallery-hero__grass {
  --depth: 0;
  left: 0%;
  bottom: -10%;
  width: 100%;
  height: 58%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
}

.gallery-hero__worker {
  max-width: none;
  z-index: 5;
  filter: drop-shadow(0 14px 18px rgba(13, 37, 21, .12));
}

.gallery-hero__worker--left {
  left: 21.3%;
  bottom: 39%;
  width: clamp(120px, 16vw, 170px);
  scale: -1 1;
}

.gallery-hero__worker--middle {
  left: 45%;
  bottom: 23.5%;
  width: clamp(264px, 30vw, 470px);
}

.gallery-hero__worker--right {
  right: 12.5%;
  bottom: 37%;
  width: clamp(100px, 17vw, 159px);
  scale: -1 1;
}

.gallery-hero__content {
  position: absolute;
  top: 17%;
  left: 50%;
  z-index: 7;
  width: min(100% - 40px, 920px);
  transform: translate(-50%, calc(var(--scroll-y, 0px) * .08));
  text-align: center;
  will-change: transform;
}

.gallery-hero h1 {
  margin: 0;
  color: #06090c;
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 6vw, 6rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.055em;
  text-shadow: 0 5px 9px rgba(0, 0, 0, .28);
}

.gallery-hero p {
  margin: 2rem auto 0;
  max-width: 660px;
  color: #121d25;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 100%;
}

/* Gallery content -------------------------------------------------------- */
.gallery-content {
  background: var(--gallery-surface);
}

.gallery-section {
  padding: clamp(40px, 2.6vw, 98px) 60px 0
}

.gallery-section:last-child {
  padding-bottom: clamp(90px, 8vw, 140px);
}

.gallery-section__inner {
  width: min(100%, var(--gallery-shell));
  margin-inline: auto;
}

.gallery-section h2 {
  margin: 0 0 clamp(28px, 2vw, 40px);
  color: #10141a;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.25vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(22px, 2vw, 36px);
  row-gap: clamp(34px, 3.8vw, 60px);
}

.gallery-card {
  min-width: 0;
  margin: 0;
}

.gallery-card__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #e7e8e7;
  aspect-ratio: 1.43 / 1;
  /* cursor: zoom-in; */
}

.gallery-card__open::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, transparent 55%, rgba(5, 21, 14, .28)); */
  opacity: 0;
  transition: opacity .35s ease;
}

.gallery-card__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

.gallery-card:hover .gallery-card__open img,
.gallery-card__open:focus-visible img {
  transform: none;
}

.gallery-card:hover .gallery-card__open::after,
.gallery-card__open:focus-visible::after {
  opacity: 1;
}

.gallery-card figcaption {
  margin-top: 13px;
  color: #171b20;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.45;
}

.gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 40px;
  margin: clamp(34px, 4vw, 58px) auto 0;
  padding: .75rem 1.55rem;
  border-radius: 6px;
  color: #fff;
  background: var(--gallery-green);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .25s ease, background-color .25s ease;
}

.gallery-more:hover {
  transform: translateY(-2px);
  background: var(--gallery-green-dark);
}

/* Footer ----------------------------------------------------------------- */
.page-gallery .gallery-footer {
  padding-top: 60px;
  background: #fff;
}

.gallery-footer__inner {
  width: min(100% - 64px, 1760px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.7fr .7fr 1.2fr .9fr;
  gap: clamp(34px, 5vw, 88px);
  align-items: start;
  padding-bottom: clamp(72px, 7vw, 104px);
}

.gallery-footer__brand .logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.gallery-footer__brand p {
  color: #313742;
  font-size: 14px;
  line-height: 1.7;
}

.gallery-footer__socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.gallery-footer__socials a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #111820;
  transition: color .2s ease, transform .2s ease;
}

.gallery-footer__socials a:hover {
  color: var(--gallery-green);
  transform: translateY(-2px);
}

.gallery-footer__socials svg {
  width: 16px;
  height: 16px;
}

.gallery-footer__nav {
  display: grid;
  gap: 23px;
  padding-top: 5px;
}

.gallery-footer__nav a {
  width: fit-content;
  color: #363c48;
  font-size: 14px;
  line-height: 1.35;
  transition: color .2s ease;
}

.gallery-footer__nav a:hover,
.gallery-footer__nav a[aria-current="page"] {
  color: var(--gallery-green);
}

.gallery-footer__contact {
  display: grid;
  gap: 32px;
  padding-top: 5px;
}

.gallery-footer__contact div {
  display: grid;
  gap: 10px;
}

.gallery-footer__contact span {
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.gallery-footer__contact a {
  width: fit-content;
  color: #565c67;
  font-size: .75rem;
  transition: color .2s ease;
}

.gallery-footer__contact a:hover {
  color: var(--gallery-green);
}

.gallery-footer__bar {
  color: rgba(255, 255, 255, .96);
  background: var(--gallery-green);
}

.gallery-footer__bar>div {
  width: min(100% - 64px, 1760px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.gallery-footer__bar p,
.gallery-footer__bar a {
  font-size: 14px;
}

.gallery-footer__bar ul {
  display: flex;
  gap: 32px;
}

/* Lightbox --------------------------------------------------------------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  grid-template-columns: minmax(54px, 1fr) minmax(0, 1180px) minmax(54px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 72px 24px 32px;
  color: #fff;
  background: rgba(5, 13, 10, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.gallery-lightbox__figure {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

.gallery-lightbox__figure img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.gallery-lightbox__figure figcaption {
  margin-top: 15px;
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  transition: background-color .2s ease, transform .2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, .15);
}

.gallery-lightbox__close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.gallery-lightbox__close svg {
  width: 22px;
  height: 22px;
}

.gallery-lightbox__nav {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  justify-self: center;
}

.gallery-lightbox__nav--prev {
  grid-column: 1;
}

.gallery-lightbox__nav--next {
  grid-column: 3;
}

.gallery-lightbox__nav svg {
  width: 26px;
  height: 26px;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .gallery-hero {
    min-height: 720px;
  }

  .gallery-hero__worker--middle {
    left: 54%;
  }

  .gallery-footer__inner {
    grid-template-columns: 1.35fr .7fr 1fr .9fr;
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .gallery-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {

  .page-gallery .gallery-header,
  .page-gallery .gallery-header.is-stuck {
    height: 62px;
    /* background: #fff; */
    box-shadow: 0 1px 0 rgba(10, 24, 18, .08);
  }

  .page-gallery .gallery-header .header__inner {
    width: calc(100% - 32px);
  }

  .page-gallery .gallery-header .logo,
  .page-gallery .gallery-header.is-stuck .logo {
    height: 28px;
  }

  .page-gallery .gallery-header .icon-btn {
    display: none;
  }

  .page-gallery .gallery-header .burger {
    display: grid;
    place-items: center;
    width: 48px;
    height: 38px;
    border-radius: 6px;
    background: #f3f3f3;
  }

  .page-gallery .gallery-header .burger span {
    width: 24px;
    margin-block: 3px;
  }

  .page-gallery.menu-open .gallery-header {
    background: transparent;
    box-shadow: none;
  }

  .gallery-hero {
    min-height: 560px;
    margin-top: 62px;
  }

  .gallery-hero__sky {
    inset: -7% -38% -4%;
    width: 176%;
    height: 112%;
  }

  .gallery-hero__trees {
    left: -24%;
    bottom: 35%;
    width: 151%;
  }

  .gallery-hero__grass {
    left: -18%;
    bottom: -7%;
    width: 136%;
    height: 59%;
  }

  .gallery-hero__worker--left {
    left: -11%;
    bottom: 39%;
    width: 143px;
  }

  .gallery-hero__worker--middle {
    left: auto;
    right: -5%;
    bottom: 2%;
    width: 270px;
  }

  .gallery-hero__worker--right {
    display: none;
  }

  .gallery-hero__content {
    top: 72px;
    width: calc(100% - 36px);
  }

  .gallery-hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
    line-height: 1;
  }

  .gallery-hero p {
    width: min(100%, 360px);
    margin-top: 14px;
    font-size: .91rem;
    line-height: 1.45;
  }

  .gallery-content {
    background: #fff;
  }

  .gallery-section {
    padding: 35px 20px 0;
  }

  .gallery-section:last-child {
    padding-bottom: 15px;
  }

  .gallery-section h2 {
    margin-bottom: 22px;
    font-size: 1.75rem;
  }

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

  .gallery-card__open {
    aspect-ratio: 1.42 / 1;
  }

  .gallery-card figcaption {
    margin-top: 7px;
    font-size: 14px;
    line-height: 19px;
  }

  .gallery-section:not(.is-expanded) .gallery-card--mobile-extra {
    display: none;
  }

  .gallery-more {
    width: min(72%, 300px);
    min-height: 42px;
    margin-top: 30px;
    border-radius: 8px;
    font-size: .78rem;
  }

  .page-gallery .gallery-footer {
    padding-top: 58px;
  }

  .gallery-footer__inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr 1fr;
    gap: 40px 28px;
    padding-bottom: 58px;
  }

  .gallery-footer__brand {
    grid-column: 1 / -1;
  }

  .gallery-footer__brand .logo {
    height: 81px;
  }

  .gallery-footer__brand p {
    font-size: 16px;
  }

  .gallery-footer__contact span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(26, 129, 90, 1);
    text-transform: uppercase;
    letter-spacing: 2%;
  }

  .gallery-footer__contact a {
    width: fit-content;
    color: #565c67;
    font-size: 14px;
    transition: color .2s ease;
  }

  .gallery-footer__nav {
    gap: 18px;
  }

  .gallery-footer__nav a {
    font-size: 16px;
  }

  .gallery-footer__contact {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .gallery-footer__bar>div {
    width: calc(100% - 40px);
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 17px;
    padding-block: 23px;
  }

  .gallery-footer__bar ul {
    flex-wrap: wrap;
    gap: 13px 23px;
  }

  .gallery-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    padding-inline: 10px;
  }

  .gallery-lightbox__nav {
    width: 40px;
    height: 52px;
  }
}

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

  .gallery-hero__trees {
    bottom: 36%;
    width: 165%;
    left: -31%;
  }

  .gallery-hero__grass {
    bottom: -8%;
    left: -25%;
    width: 150%;
    height: 58%;
  }

  .gallery-hero__worker--left {
    left: -11%;
    bottom: 39%;
    width: 143px;
  }

  .gallery-hero__worker--middle {
    right: -9%;
    bottom: 95px;
    width: 322px;
  }

  .gallery-hero__content {
    top: 90px;
  }

  .gallery-hero h1 {
    font-size: 3.3rem;
  }

  .gallery-hero p {
    max-width: 330px;
    font-size: .86rem;
  }

  .gallery-section {
    padding-inline: 20px;
  }

  .gallery-section h2 {
    font-size: 1.6rem;
  }

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

  .gallery-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-footer__contact {
    grid-template-columns: 1fr;
  }

  .gallery-footer__bar ul {
    display: grid;
    gap: 8px;
  }

  .gallery-lightbox {
    display: block;
    padding: 76px 14px 24px;
  }

  .gallery-lightbox__figure {
    margin-top: 8vh;
  }

  .gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

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

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


/* ========================================================================
   FIX: visible title parallax + mobile header, drawer and footer only
   ======================================================================== */

/* The JS writes --content-parallax-y while the hero is scrolling. */
.gallery-hero__content {
  transform: translate3d(-50%,
      var(--content-parallax-y, 0px),
      0);
}

@media (max-width: 760px) {
  .page-gallery.menu-open {
    overflow: hidden;
  }

  /* Match the supplied mobile header: logo left, hamburger right. */
  .page-gallery .gallery-header,
  .page-gallery .gallery-header.is-stuck,
  .page-gallery.menu-open .gallery-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 220;
    height: 62px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(10, 24, 18, .08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-gallery .gallery-header .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 32px);
    height: 100%;
    margin-inline: auto;
  }

  .page-gallery .gallery-header .header__logo,
  .page-gallery.menu-open .gallery-header .header__logo {
    position: relative;
    z-index: 222;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    opacity: 1;
    pointer-events: auto;
  }

  .page-gallery .gallery-header .logo,
  .page-gallery .gallery-header.is-stuck .logo {
    /* display: block;
    width: auto;
    height: 28px; */
  }

  .page-gallery .gallery-header .nav,
  .page-gallery .gallery-header .icon-btn,
  .page-gallery .gallery-header .header__tools>.btn {
    display: none;
  }

  .page-gallery .gallery-header .header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  .page-gallery .gallery-header .burger {
    position: relative;
    z-index: 222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #101820;
    background: #f3f3f3;
  }

  .page-gallery .gallery-header .burger span,
  .page-gallery.menu-open .gallery-header .burger span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: #101820;
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(2) {
    opacity: 0;
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile navigation panel. These rules only affect the gallery page. */
  .page-gallery .drawer {
    position: fixed;
    inset: 62px 0 0;
    z-index: 215;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: calc(100dvh - 62px);
    padding: 24px 20px 28px;
    overflow-y: auto;
    color: #101820;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -12px, 0);
    transition:
      opacity .25s ease,
      visibility .25s ease,
      transform .25s ease;
  }

  .page-gallery.menu-open .drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .page-gallery .drawer nav {
    width: 100%;
  }

  .page-gallery .drawer__list {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-gallery .drawer__list li {
    border-bottom: 1px solid #ecefed;
  }

  .page-gallery .drawer__list a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 4px;
    color: #15201b;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
  }

  .page-gallery .drawer__list a[aria-current="page"] {
    color: var(--gallery-green);
  }

  .page-gallery .drawer__foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    padding-top: 28px;
  }

  .page-gallery .drawer__foot .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    border-radius: 7px;
  }

  .page-gallery .drawer__foot .btn--light {
    color: #fff;
    background: var(--gallery-green);
  }

  .page-gallery .drawer__foot .btn--outline-light {
    color: var(--gallery-green);
    border: 1px solid var(--gallery-green);
    background: #fff;
  }



  .gallery-footer__inner {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 24px;
  }

  .gallery-footer__brand,
  .gallery-footer__contact {
    grid-column: 1 / -1;
  }

  .gallery-footer__nav {
    min-width: 0;
  }

  .gallery-footer__nav a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .gallery-footer__bar>div {
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .gallery-footer__contact {
    grid-template-columns: 1fr;
  }

  /* The three policy links stay in one horizontal row as in the reference. */
  .gallery-footer__bar ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
  }

  .gallery-footer__bar li,
  .gallery-footer__bar a {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {

  .gallery-hero__layers>*,
  .gallery-hero__content,
  .gallery-card__open img,
  .gallery-more,
  .gallery-lightbox {
    transition: none !important;
    transform: none !important;
  }
}







/* =========================================================
   GALLERY TITLE: MOVE BEHIND TREES WHILE SCROLLING
   ========================================================= */

/*
 * Remove the layers wrapper stacking context.
 * This allows the title, trees, grass and workers
 * to use the same z-index hierarchy.
 */
.gallery-hero__layers {
  z-index: auto;
}

/* Background grass stays behind the title */
.gallery-hero__grass {
  z-index: 2;
}

/* Title is above grass but below trees */
.gallery-hero__content {
  z-index: 3;
  transform: translate3d(-50%,
      var(--content-parallax-y, 0px),
      0);
}

/* Trees cover the title when it moves downward */
.gallery-hero__trees {
  z-index: 4;
}

/* Workers remain in the foreground */
.gallery-hero__worker {
  z-index: 5;
}



/* ==========================================================================
   LOWASTE GALLERY — TABLET UI FIX ONLY
   Applies only from 761px to 1024px.
   Desktop (>1024px) and existing mobile (<=760px) remain unchanged.
   ========================================================================== */

@media (min-width: 761px) and (max-width: 1024px) {

  /* -----------------------------------------------------------------------
     HEADER / NAV
     JS already uses NAV_BP = 1024. The old CSS switched to the burger only
     at 760px, creating a 761–1024px breakpoint mismatch. Keep one tablet
     navigation system here.
     ----------------------------------------------------------------------- */

  .page-gallery.menu-open {
    overflow: hidden;
  }

  .page-gallery .gallery-header,
  .page-gallery .gallery-header.is-stuck,
  .page-gallery.menu-open .gallery-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 220;
    height: 68px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(10, 24, 18, .08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-gallery .gallery-header .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 48px);
    height: 100%;
    margin-inline: auto;
  }

  .page-gallery .gallery-header .header__logo,
  .page-gallery.menu-open .gallery-header .header__logo {
    position: relative;
    z-index: 222;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    opacity: 1;
    pointer-events: auto;
  }

  .page-gallery .gallery-header .logo,
  .page-gallery .gallery-header.is-stuck .logo {
    width: auto;
    height: 25px;
  }

  .page-gallery .gallery-header .nav,
  .page-gallery .gallery-header .icon-btn,
  .page-gallery .gallery-header .header__tools>.btn {
    display: none;
  }

  .page-gallery .gallery-header .header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  .page-gallery .gallery-header .burger {
    position: relative;
    z-index: 222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f3f3f3;
  }

  .page-gallery .gallery-header .burger span,
  .page-gallery.menu-open .gallery-header .burger span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: #101820;
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(2) {
    opacity: 0;
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Tablet drawer: right-side panel rather than stretching a phone menu
     across a large tablet display. */
  .page-gallery .drawer {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 215;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: min(420px, 100%);
    height: calc(100dvh - 68px);
    padding: 28px 28px 30px;
    overflow-y: auto;

    color: #101820;
    background: #fff;
    box-shadow: -22px 0 48px rgba(10, 31, 23, .12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(24px, 0, 0);

    transition:
      opacity .25s ease,
      visibility .25s ease,
      transform .25s ease;
  }

  .page-gallery.menu-open .drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .page-gallery .drawer nav {
    width: 100%;
  }

  .page-gallery .drawer__list {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-gallery .drawer__list li {
    border-bottom: 1px solid #ecefed;
  }

  .page-gallery .drawer__list a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 4px;
    color: #15201b;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
  }

  .page-gallery .drawer__list a[aria-current="page"] {
    color: var(--gallery-green);
  }

  .page-gallery .drawer__foot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    padding-top: 28px;
  }

  .page-gallery .drawer__foot .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    border-radius: 7px;
  }

  .page-gallery .drawer__foot .btn--outline-light {
    color: var(--gallery-green);
    border: 1px solid var(--gallery-green);
    background: #fff;
  }


  /* -----------------------------------------------------------------------
     HERO
     ----------------------------------------------------------------------- */

  .gallery-hero {
    min-height: clamp(640px, 70vw, 720px);
    margin-top: 68px;
  }

  /* Widen the scenery only on tablet so portrait tablets do not show the
     compressed desktop composition. */
  .gallery-hero__trees {
    left: -11%;
    bottom: 33%;
    width: 122%;
    max-width: none;
  }

  .gallery-hero__grass {
    left: -8%;
    bottom: -8%;
    width: 116%;
    height: 61%;
    max-width: none;
    object-position: center top;
  }

  .gallery-hero__worker--left {
    left: 3%;
    bottom: 39%;
    width: clamp(128px, 16vw, 164px);
  }

  .gallery-hero__worker--middle {
    left: 50%;
    right: auto;
    bottom: 12%;
    width: clamp(270px, 34vw, 350px);
    transform: translateX(-50%);
  }

  .gallery-hero__worker--right {
    right: 4%;
    bottom: 40%;
    width: clamp(108px, 14vw, 144px);
  }

  .gallery-hero__content {
    top: 14%;
    width: min(calc(100% - 64px), 760px);
  }

  .gallery-hero h1 {
    font-size: clamp(3.45rem, 7vw, 4.65rem);
  }

  .gallery-hero p {
    max-width: 610px;
    margin-top: 1.2rem;
    font-size: clamp(.94rem, 1.65vw, 1.08rem);
  }


  /* -----------------------------------------------------------------------
     GALLERY CONTENT
     Two columns across ALL tablets; the previous CSS used three columns
     above 900px, which becomes cramped on 912/1024px devices.
     ----------------------------------------------------------------------- */

  .gallery-section {
    padding: clamp(56px, 6vw, 76px) 32px 0;
  }

  .gallery-section:last-child {
    padding-bottom: clamp(76px, 8vw, 104px);
  }

  .gallery-section h2 {
    margin-bottom: 30px;
    font-size: clamp(1.75rem, 3.2vw, 2.1rem);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(18px, 2.8vw, 28px);
    row-gap: clamp(28px, 4vw, 42px);
  }

  .gallery-card__open {
    aspect-ratio: 1.43 / 1;
  }

  .gallery-card figcaption {
    margin-top: 10px;
    font-size: .74rem;
    line-height: 1.4;
  }

  .gallery-more {
    margin-top: 38px;
  }


  /* -----------------------------------------------------------------------
     FOOTER
     Avoid the compressed 4-column desktop footer at 901–1024px.
     ----------------------------------------------------------------------- */

  .page-gallery .gallery-footer {
    padding-top: 70px;
  }

  .gallery-footer__inner {
    width: calc(100% - 64px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px 44px;
    padding-bottom: 70px;
  }

  .gallery-footer__brand {
    grid-column: 1 / -1;
    max-width: 620px;
  }

  .gallery-footer__contact {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
  }

  .gallery-footer__nav {
    min-width: 0;
  }

  .gallery-footer__nav a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .gallery-footer__bar>div {
    width: calc(100% - 64px);
    gap: 20px;
  }

  .gallery-footer__bar ul {
    gap: 22px;
  }


  /* -----------------------------------------------------------------------
     LIGHTBOX
     ----------------------------------------------------------------------- */

  .gallery-lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 10px;
    padding: 72px 18px 28px;
  }

  .gallery-lightbox__nav {
    width: 42px;
    height: 56px;
  }
}

/* Tablet portrait refinement: 761–860px only.
   Kept separate so 900/1024 landscape tablets retain more scene width. */
@media (min-width: 761px) and (max-width: 860px) {
  .gallery-hero {
    min-height: 640px;
  }

  .gallery-hero__trees {
    left: -18%;
    width: 136%;
    bottom: 34%;
  }

  .gallery-hero__grass {
    left: -12%;
    width: 124%;
  }

  .gallery-hero__worker--left {
    left: -1%;
    width: 126px;
  }

  .gallery-hero__worker--middle {
    bottom: 9%;
    width: 280px;
  }

  .gallery-hero__worker--right {
    right: 1%;
    width: 108px;
  }

  .gallery-hero__content {
    width: calc(100% - 48px);
  }

  .gallery-section {
    padding-inline: 26px;
  }

  .gallery-footer__inner,
  .gallery-footer__bar>div {
    width: calc(100% - 52px);
  }
}

/* =========================================================
   MOBILE GALLERY — VIEW MORE ONLY
   Scoped to gallery cards only. No header/hero/footer/tablet changes.
   ========================================================= */

/* Hide the CSS-only control outside mobile. */
.gallery-toggle {
  display: none;
}

@media (min-width: 761px) {
  .gallery-section>.gallery-section__inner>.gallery-more {
    display: none !important;
  }
}

@media (max-width: 760px) {

  /* Keep the exact mobile two-column layout from the existing UI. */
  .gallery-section>.gallery-section__inner>.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 26px 12px;
    overflow: visible;
    padding-bottom: 0;
  }

  /* Visually hide the checkbox while keeping it operable via the label. */
  .gallery-section>.gallery-section__inner>.gallery-toggle {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  /* Initially show only the first two cards. */
  .gallery-section>.gallery-section__inner>.gallery-grid>.gallery-card--mobile-extra {
    display: none !important;
  }

  /* Reveal cards 3–6 only inside the section whose View more was tapped. */
  .gallery-section>.gallery-section__inner>.gallery-toggle:checked+.gallery-grid>.gallery-card--mobile-extra {
    display: block !important;
  }

  /* Mobile-only View more button. */
  .gallery-section>.gallery-section__inner>.gallery-more {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: min(52%, 210px);
    min-height: 42px;
    margin: 30px auto 0;
    padding: .75rem 1.55rem;
    border-radius: 8px;
    color: #fff;
    background: var(--gallery-green);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    user-select: none;
  }

  .gallery-section>.gallery-section__inner>.gallery-more:hover {
    background: var(--gallery-green-dark);
  }

  .gallery-more__less {
    display: none;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__more {
    display: none;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__less {
    display: inline;
  }

  /* Keyboard focus indication for the hidden checkbox control. */
  .gallery-section>.gallery-section__inner>.gallery-toggle:focus-visible~.gallery-more {
    outline: 2px solid var(--gallery-green-dark);
    outline-offset: 3px;
  }
}

/* ==========================================================================
   GALLERY MOBILE NAV — MATCH CONTACT PAGE
   Mobile only (<= 760px). No gallery content/tablet/desktop/footer changes.
   ========================================================================== */
@media (max-width: 760px) {

  .page-gallery.menu-open {
    overflow: hidden;
  }

  /* Header dimensions match Contact mobile header */
  .page-gallery .gallery-header,
  .page-gallery .gallery-header.is-stuck,
  .page-gallery.menu-open .gallery-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 220;
    height: 68px;
    color: #101820;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-gallery .gallery-header .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 32px);
    height: 100%;
    margin-inline: auto;
    gap: 18px;
  }

  /* Keep logo visible while menu is open */
  .page-gallery .gallery-header .header__logo,
  .page-gallery.menu-open .gallery-header .header__logo {
    position: relative;
    z-index: 222;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    opacity: 1;
    pointer-events: auto;
  }

  .page-gallery .gallery-header .logo,
  .page-gallery .gallery-header.is-stuck .logo,
  .page-gallery.menu-open .gallery-header .logo {
    display: block;
    width: auto;
    height: 22px;
  }

  /* Mobile uses only logo + burger */
  .page-gallery .gallery-header .nav,
  .page-gallery .gallery-header .icon-btn,
  .page-gallery .gallery-header .header__tools>.btn {
    display: none;
  }

  .page-gallery .gallery-header .header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* Match Contact hamburger / close button */
  .page-gallery .gallery-header .burger {
    position: relative;
    z-index: 222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #101820;
    background: #f3f3f3;
  }

  .page-gallery .gallery-header .burger span,
  .page-gallery.menu-open .gallery-header .burger span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 0;
    border-radius: 99px;
    background: #101820;
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(2) {
    opacity: 0;
  }

  .page-gallery.menu-open .gallery-header .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Drawer matches Contact mobile menu */
  .page-gallery .drawer {
    position: fixed;
    inset: 68px 0 0;
    z-index: 215;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: calc(100dvh - 68px);
    padding: 24px 20px 28px;
    overflow-y: auto;
    color: #101820;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -12px, 0);
    transition:
      opacity .25s ease,
      visibility .25s ease,
      transform .25s ease;
  }

  .page-gallery.menu-open .drawer,
  .page-gallery .drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .page-gallery .drawer nav {
    width: 100%;
  }

  .page-gallery .drawer__list {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-gallery .drawer__list li {
    border-bottom: 1px solid #ecefed;
  }

  .page-gallery .drawer__list a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 4px;
    color: #15201b;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 500;
  }

  .page-gallery .drawer__list a[aria-current="page"] {
    color: var(--gallery-green);
  }

  /* Login area matches Contact: one filled button occupying left half */
  .page-gallery .drawer__foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    padding-top: 28px;
  }

  .page-gallery .drawer__foot .btn,
  .page-gallery .drawer__foot .btn--outline-light {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--gallery-green);
    font-family: "DM Sans", sans-serif;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
  }

  .page-gallery .drawer__foot .btn:hover,
  .page-gallery .drawer__foot .btn--outline-light:hover {
    color: #fff;
    background: var(--gallery-green-dark, #0f6b4a);
    transform: none;
  }

  /* Header is now 68px high; keep hero aligned immediately below it */
  .page-gallery .gallery-hero {
    margin-top: 68px;
  }
}

/* ==========================================================================
   GALLERY — VIEW MORE ON MOBILE + TABLET + DESKTOP
   Final override only. No header/hero/footer/lightbox/card-design changes.
   ========================================================================== */

/* Keep checkbox available to its label without showing it visually. */
.gallery-section>.gallery-section__inner>.gallery-toggle {
  position: absolute !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Default collapsed state: cards marked as extra stay hidden. */
.gallery-section>.gallery-section__inner>.gallery-grid>.gallery-card--mobile-extra {
  display: none !important;
}

/* View more reveals all extra cards in that specific gallery section. */
.gallery-section>.gallery-section__inner>.gallery-toggle:checked+.gallery-grid>.gallery-card--mobile-extra {
  display: block !important;
}

/* View more button must be visible at EVERY breakpoint. */
.gallery-section>.gallery-section__inner>.gallery-more {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 30px auto 0;
  padding: .75rem 1.55rem;
  border-radius: 8px;
  color: #fff;
  background: var(--gallery-green);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.gallery-section>.gallery-section__inner>.gallery-more:hover {
  color: #fff;
  background: var(--gallery-green-dark);
}

/* View more / View less text switching works on every screen size. */
.gallery-more__less {
  display: none;
}

.gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__more {
  display: none;
}

.gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__less {
  display: inline;
}

.gallery-section>.gallery-section__inner>.gallery-toggle:focus-visible~.gallery-more {
  outline: 2px solid var(--gallery-green);
  outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   DESKTOP > 1024px
   Three-column grid: show one complete row (3 cards) before View more.
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {

  /*
    Card 3 carries gallery-card--mobile-extra in the existing HTML.
    Make only that card visible in the collapsed desktop state so the first
    desktop row contains exactly three cards.
  */
  .gallery-section>.gallery-section__inner>.gallery-grid>.gallery-card--mobile-extra:nth-child(3) {
    display: block !important;
  }

  /* Once expanded, cards 3–6 are all visible. */
  .gallery-section>.gallery-section__inner>.gallery-toggle:checked+.gallery-grid>.gallery-card--mobile-extra {
    display: block !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-more {
    width: auto;
    min-width: 118px;
    max-width: 180px;
    font-size: .72rem;
  }
}


/* --------------------------------------------------------------------------
   TABLET 761px–1024px
   Existing tablet grid is two columns: show first 2 cards before View more.
   -------------------------------------------------------------------------- */
@media (min-width: 761px) and (max-width: 1024px) {

  .gallery-section>.gallery-section__inner>.gallery-more {
    width: min(42%, 210px);
    min-width: 150px;
    font-size: .78rem;
  }
}


/* --------------------------------------------------------------------------
   MOBILE <= 760px
   Keep existing two-card collapsed mobile layout.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {

  .gallery-section>.gallery-section__inner>.gallery-more {
    width: min(52%, 210px);
    min-width: 0;
    font-size: .78rem;
  }
}

/* ==========================================================================
   GALLERY — DESKTOP 6 CARDS + CLEAN VIEW MORE
   Final override only.
   Desktop: show all 6 cards.
   Tablet/Mobile: keep View more / View less expansion.
   ========================================================================== */

/* Ensure hover color variable is valid even if an older declaration is malformed. */
.page-gallery {
  --gallery-green-dark: rgba(26, 129, 90, 1);
}


/* --------------------------------------------------------------------------
   DESKTOP > 1024px
   Show all six cards in the 3-column / 2-row grid.
   Keep the View more control centered below the grid like the reference.
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {

  .gallery-section>.gallery-section__inner>.gallery-grid>.gallery-card--mobile-extra {
    display: block !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-more {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 118px;
    max-width: 170px;
    min-height: 40px;

    margin: 28px auto 0;
    padding: .72rem 1.5rem;

    border-radius: 6px;
    color: #fff;
    background: var(--gallery-green);

    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
  }

  .gallery-section>.gallery-section__inner>.gallery-more:hover {
    color: #fff;
    background: var(--gallery-green-dark);
    transform: none;
  }

  /*
    Desktop already displays all 6 cards.
    Keep the label visually as "View more" and prevent the text changing
    to "View less" when the checkbox is clicked.
  */
  .gallery-section>.gallery-section__inner>.gallery-more .gallery-more__more {
    display: inline !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-more .gallery-more__less {
    display: none !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__more {
    display: inline !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__less {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   TABLET 761px–1024px
   First 2 cards visible; View more reveals cards 3–6.
   -------------------------------------------------------------------------- */
@media (min-width: 761px) and (max-width: 1024px) {

  .gallery-section>.gallery-section__inner>.gallery-grid>.gallery-card--mobile-extra {
    display: none !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked+.gallery-grid>.gallery-card--mobile-extra {
    display: block !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-more {
    display: flex !important;
    width: min(42%, 210px);
    min-width: 150px;
    min-height: 42px;
    margin: 30px auto 0;
    border-radius: 8px;
    font-size: .78rem;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:not(:checked)~.gallery-more .gallery-more__more {
    display: inline !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:not(:checked)~.gallery-more .gallery-more__less {
    display: none !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__more {
    display: none !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__less {
    display: inline !important;
  }
}


/* --------------------------------------------------------------------------
   MOBILE <= 760px
   First 2 cards visible; View more reveals cards 3–6.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {

  .gallery-section>.gallery-section__inner>.gallery-grid>.gallery-card--mobile-extra {
    display: none !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked+.gallery-grid>.gallery-card--mobile-extra {
    display: block !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-more {
    display: flex !important;
    width: min(52%, 210px);
    min-width: 0;
    min-height: 42px;
    margin: 30px auto 0;
    border-radius: 8px;
    font-size: .78rem;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:not(:checked)~.gallery-more .gallery-more__more {
    display: inline !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:not(:checked)~.gallery-more .gallery-more__less {
    display: none !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__more {
    display: none !important;
  }

  .gallery-section>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__less {
    display: inline !important;
  }
}


/* ==========================================================================
   FINAL FIX — GALLERY VIEW MORE + iPhone 13 HERO
   Keep this block at the ABSOLUTE END of gallery.css.
   No desktop/tablet design changes outside the requested gallery-card behavior.
   ========================================================================== */

/* --------------------------------------------------------------------------
   VIEW MORE
   JS adds .is-gallery-extra according to viewport:
   - Desktop > 1024px: first 6 visible
   - Tablet/Mobile <= 1024px: first 2 visible
   -------------------------------------------------------------------------- */

.gallery-section>.gallery-section__inner>.gallery-grid>.gallery-card {
  display: block !important;
}

.gallery-section>.gallery-section__inner>.gallery-grid>.gallery-card.is-gallery-extra {
  display: none !important;
}

.gallery-section.is-expanded>.gallery-section__inner>.gallery-grid>.gallery-card.is-gallery-extra {
  display: block !important;
}

/* JS hides the control when the section does not exceed its viewport limit. */
.gallery-section>.gallery-section__inner>.gallery-more[hidden] {
  display: none !important;
}

.gallery-section>.gallery-section__inner>.gallery-more:not([hidden]) {
  display: flex !important;
}

/* Make View more / View less follow the JS expansion state at every breakpoint. */
.gallery-section:not(.is-expanded)>.gallery-section__inner>.gallery-more .gallery-more__more {
  display: inline !important;
}

.gallery-section:not(.is-expanded)>.gallery-section__inner>.gallery-more .gallery-more__less {
  display: none !important;
}

.gallery-section.is-expanded>.gallery-section__inner>.gallery-more .gallery-more__more {
  display: none !important;
}

.gallery-section.is-expanded>.gallery-section__inner>.gallery-more .gallery-more__less {
  display: inline !important;
}

/* Desktop: the control appears ONLY when there are more than 6 cards. */
@media (min-width: 1025px) {
  .gallery-section>.gallery-section__inner>.gallery-more:not([hidden]) {
    width: auto !important;
    min-width: 118px !important;
    max-width: 170px !important;
    min-height: 40px !important;
    margin: 28px auto 0 !important;
    font-size: .72rem !important;
  }
}

/* Tablet: first two cards are the collapsed state. */
@media (min-width: 761px) and (max-width: 1024px) {
  .gallery-section>.gallery-section__inner>.gallery-more:not([hidden]) {
    width: min(42%, 210px) !important;
    min-width: 150px !important;
    min-height: 42px !important;
    margin: 30px auto 0 !important;
    font-size: .78rem !important;
  }
}

/* Mobile: first two cards are the collapsed state. */
@media (max-width: 760px) {
  .gallery-section>.gallery-section__inner>.gallery-more:not([hidden]) {
    width: min(52%, 210px) !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 30px auto 0 !important;
    font-size: .78rem !important;
  }
}


/* --------------------------------------------------------------------------
   iPHONE 13 / NARROW MOBILE HERO
   Stabilizes the 390px-wide composition without changing desktop/tablet.
   This intentionally overrides the older max-width:480px rules that enlarge
   the trees to 165% and the middle worker to 322px.
   -------------------------------------------------------------------------- */
@media (max-width: 430px) {

  .page-gallery .gallery-hero {
    height: 585px !important;
    min-height: 585px !important;
    margin-top: 68px !important;
    overflow: hidden !important;
  }

  .page-gallery .gallery-hero__layers {
    inset: 0 !important;
    overflow: hidden !important;
  }

  .page-gallery .gallery-hero__trees {
    --layer-x: -50%;
    left: 50% !important;
    right: auto !important;
    bottom: 41% !important;
    width: 100% !important;
    max-width: none !important;
    height: 130px;
  }

  .page-gallery .gallery-hero__grass {
    right: auto !important;
    bottom: -5% !important;
    /* width: 100% !important; */
    /* max-width: none !important; */
    height: 55% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .page-gallery .gallery-hero__worker--left {
    left: -7% !important;
    right: auto !important;
    bottom: 39% !important;
    width: 128px !important;
  }

  .page-gallery .gallery-hero__worker--middle {
    left: auto !important;
    right: -51% !important;
    bottom: 13% !important;
    width: 311px !important;
    max-width: none !important;
  }

  .page-gallery .gallery-hero__worker--right {
    display: none !important;
  }

  .page-gallery .gallery-hero__content {
    top: 62px !important;
    left: 50% !important;
    width: calc(100% - 32px) !important;
    max-width: 360px !important;
  }

  .page-gallery .gallery-hero h1 {
    font-size: clamp(3rem, 13.4vw, 3.3rem) !important;
    line-height: 1 !important;
  }

  .page-gallery .gallery-hero p {
    width: 100% !important;
    max-width: 330px !important;
    margin-top: 14px !important;
    font-size: .86rem !important;
    line-height: 1.42 !important;
  }
}






/* =========================================================
   HERO WORKERS — MATCH THE LAYER EACH ONE STANDS ON
   left/right stand on the tree-line strip  -> trees depth (.16)
   middle stands on the front grass         -> grass depth (.07)
   ========================================================= */
.gallery-hero__worker--left,
.gallery-hero__worker--right {
  --depth: 0;
}

.gallery-hero__worker--middle {
  --depth: 0;
}

.gallery-hero__worker--middle {
  left: 66%;
  right: auto;
  bottom: 12%;
  width: clamp(291px, 49vw, 370px);
  transform: translateX(-50%);
  /* ← this wipes out the parallax transform */
}


/* ==========================================================================
   MOBILE HERO TEXT PARALLAX — FINAL FIX
   Scope: Gallery hero text stacking/transform on mobile only.
   No gallery cards, nav, footer, desktop or tablet layout changes.
   ========================================================================== */

@media (max-width: 760px) {

  /* Let tree/content z-index values participate in the same hero stack. */
  .page-gallery .gallery-hero__layers {
    z-index: auto !important;
  }

  /* Keep grass behind the moving copy. */
  .page-gallery .gallery-hero__grass {
    z-index: 2 !important;
  }

  /*
    JS updates --content-parallax-y while scrolling.
    Keep the copy below the trees so it visually passes underneath them.
  */
  .page-gallery .gallery-hero__content {
    z-index: 1 !important;
    transform: translate3d(-50%,
        var(--content-parallax-y, 0px),
        0) !important;
    will-change: transform !important;
  }

  /* Trees must cover the title/description as the copy moves down. */
  .page-gallery .gallery-hero__trees {
    z-index: 4 !important;
  }

  /* Workers remain foreground artwork. */
  .page-gallery .gallery-hero__worker {
    z-index: 5 !important;
  }
}



/* ==========================================================================
   FIX — VIEW LESS LABEL ON DESKTOP (7+ cards)
   The desktop block above pins the label to "View more" via a
   :checked rule with specificity (0,6,0), which outranks the
   .is-expanded rules (0,5,0) even though those come later.
   These selectors are (0,7,0), so they win and the label follows
   the JS expansion state at every breakpoint.
   ========================================================================== */

.gallery-section.is-expanded>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__more {
  display: none !important;
}

.gallery-section.is-expanded>.gallery-section__inner>.gallery-toggle:checked~.gallery-more .gallery-more__less {
  display: inline !important;
}

/* =========================================================
   MOBILE HERO PARALLAX FIX ONLY
   Does not affect gallery/cards/header/footer
   ========================================================= */

@media (max-width: 760px) {

  .gallery-hero__layers>[data-parallax-depth] {
    transform: translate3d(var(--layer-x, 0px),
        var(--layer-y, 0px),
        0);
    will-change: transform;
    backface-visibility: hidden;
  }

  .gallery-hero__content {
    transform: translate3d(-50%,
        var(--content-parallax-y, 0px),
        0);

    will-change: transform;
  }
}

.gallery-hero {
  overflow: hidden;
}

.gallery-hero__content {
  z-index: 1;
}

.gallery-hero__trees {
  z-index: 4;
}

.gallery-hero__worker {
  z-index: 5;
}



/* Zoom cursor + hidden nav fix */
.gallery-card__open {
  cursor: zoom-in;
}

.gallery-lightbox__nav[hidden] {
  display: none !important;
}


@media (max-width:760px) {

  .gallery-hero__worker--left {
    --depth: 0 !important;
    --layer-y: 0px !important;
    transform: translate3d(0, 0, 0) !important;
  }

}


/* ==========================================================
   GALLERY WORKERS — KEEP ATTACHED TO THEIR GROUND LAYERS
   ========================================================== */

/* ==========================================================
   GALLERY SCENE — STATIC GROUND + WORKERS
   ========================================================== */

.gallery-hero__trees,
.gallery-hero__grass,
.gallery-hero__worker--left,
.gallery-hero__worker--middle,
.gallery-hero__worker--right {
  --depth: 0 !important;
  --layer-y: 0px !important;
}

/* Desktop only - reduce gap between footer nav columns */
@media (min-width: 1025px) {

  .gallery-footer__nav+.gallery-footer__nav {
    margin-left: -110px !important;
  }

}