document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".hero-slider").forEach(e=>{const t=e.closest("section"),o=t?.dataset.autoplay,a=!("false"===o||!o)&&parseInt(o,10),n=new Glide(e,{type:"carousel",perView:1,autoplay:a,hoverpause:!0,animationDuration:1e3,gap:0,focusAt:"center"});n.mount(),new ResizeObserver(()=>{n.update()}).observe(e)})});