/* Match the shared Herbarium landscape footer without importing the
   unrelated page-section rules in herbarium-poster-content.css. */
.herbarium-footer {
  --footer-landscape-height: 365px;
  --footer-landscape-gap: 20px;
  --footer-landscape-wave-height: 61px;
  --footer-landscape-crop-extension: 0px;
  position: relative;
  isolation: isolate;
  border-top: 0;
  height: auto;
  min-height: 0;
  margin-top: 0;
  padding-top: calc(var(--footer-landscape-height) + var(--footer-landscape-gap));
  background: linear-gradient(to bottom,
    #fcfbf7 0 var(--footer-landscape-height),
    #f7f8f2 var(--footer-landscape-height) 100%);
}

.herbarium-footer .footer-landscape {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 0;
  width: 100vw;
  height: var(--footer-landscape-height);
  overflow: hidden;
  background: url('../img/footer-mountain-landscape-seamless.png') center bottom / auto 90% repeat-x;
  opacity: .82;
  transform: translateX(-50%);
  pointer-events: none;
}

.herbarium-footer .footer-landscape img { display: none; }

.herbarium-footer > .wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.herbarium-footer::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: calc(var(--footer-landscape-height) - var(--footer-landscape-wave-height));
  height: var(--footer-landscape-wave-height);
  background: url('../img/footer-top-wave.svg?v=20260920-3') center / 100% 100% no-repeat;
  pointer-events: none;
}

.herbarium-footer::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: var(--footer-landscape-height) 0 0;
  background: #f7f8f2;
  pointer-events: none;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .herbarium-footer > .wrap { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 991px) {
  .herbarium-footer > .wrap { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 420px) {
  .herbarium-footer > .wrap { padding-left: 16px; padding-right: 16px; }
}
