/* Pixelated Orange - Animations
 * Lenis base styles (from the Lenis docs). Only take effect when Lenis
 * adds its classes to <html>, so harmless when smooth scrolling is off. */

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

/* A theme's scroll-behavior: smooth fights Lenis — override it. */
.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

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

/* Lenis's own lock on <html> is only used for the sidecart, which doesn't
   lock the page itself. Popups and the mobile menu lock <body>; adding
   overflow:hidden to <html> as well changes how the body's height is
   measured, which used to trigger a ScrollTrigger refresh that could leave
   Safari at the top of the page. */
html.lenis.lenis-stopped:has(.po-sidecart.active) {
	overflow: hidden;
}

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