/* =========================================================================
 * Lenis 1.1.x base styles.
 *
 * The theme sets `html { scroll-behavior: smooth }`. Lenis drives the page
 * with a window.scrollTo() on every animation frame, and with
 * scroll-behavior:smooth each of those calls restarts a native animation:
 * the page crawls, then jumps. These are the upstream rules that switch the
 * native easing off while the instance is running, plus the helpers Lenis
 * expects for nested scroll areas and stopped/iframe states.
 * ========================================================================= */

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

/* Set whenever an instance exists, so the per-frame scrollTo() is instant
   even before the first smooth scroll starts. */
html.lenis {
	scroll-behavior: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

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