/**
 * Lenis smooth scroll — the rules the library needs on the page.
 *
 * Loaded site-wide alongside assets/js/smooth-scroll.js. Every rule is scoped
 * to the classes Lenis adds to <html>, so nothing here applies when the
 * script is absent or switched off.
 */

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

/*
 * The templates set scroll-behavior: smooth for #links. With Lenis running
 * the browser would smooth every position Lenis writes and the two would
 * fight, so the native one steps aside; Lenis animates the links instead.
 */
html.lenis {
	scroll-behavior: auto !important;
}

/* While the menu or a pop-up has the page locked. */
.lenis.lenis-stopped {
	overflow: clip;
}

/* A box marked to scroll by itself keeps the wheel to itself. */
.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;
}

/* An embed under the pointer must not swallow the wheel mid-glide. */
.lenis.lenis-smooth iframe {
	pointer-events: none;
}
