/* ==========================================================================
   SMOOTH SCROLL — OVERRIDES
   --------------------------------------------------------------------------
   Loads after assets/css/vendor/lenis.css and corrects two things that
   clash with the theme.

   Behaviour: assets/js/components/smooth-scroll.js
   ========================================================================== */


/* --- 1. Keep iframes clickable -------------------------------------------
   Lenis disables pointer events on every iframe while smoothing, so that
   scrolling over an embed still moves the page. That would also make the
   YouTube popup unclickable — no play button, no volume, no fullscreen.
   Interactive embeds are put back.

   Side effect: scrolling with the cursor directly over one of these
   embeds uses native scrolling instead of the smooth glide. Worth it. */
.lenis.lenis-smooth .kk-player iframe,
.lenis.lenis-smooth .w-popup iframe,
.lenis.lenis-smooth .w-video iframe,
.lenis.lenis-smooth iframe[src*="google.com/maps"] {
	pointer-events: auto;
}


/* --- 2. Cancel native smooth scrolling ------------------------------------
   If scroll-behavior:smooth is set anywhere, the browser and Lenis both
   try to animate the same scroll and the result stutters. Lenis owns
   scrolling now. */
html.lenis {
	scroll-behavior: auto !important;
}
