html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* Market My Church addition (2026-11-14): with reduced motion or "Pause animations", the page scrolls natively.
   site.js also never starts Lenis in that case and destroys it when calm is switched on. */
@media (prefers-reduced-motion: reduce) {
  html.lenis, html.lenis body { scroll-behavior: auto !important; }
  .lenis.lenis-stopped { overflow: visible; }
}
html.ds-calm.lenis, html.ds-calm.lenis body { scroll-behavior: auto !important; }
