new Swiper("#swiper-pages", {loop: true,slidesPerView: "auto",pagination: {el: "#swiper-pages-pagination",clickable: true,bulletClass: "m-portfolio-bullet",bulletActiveClass: "m-portfolio-bullet-active",},navigation: {nextEl: "#swiper-pages-next",prevEl: "#swiper-pages-prev",},});const equalHeightBlocks = document.querySelectorAll("[data-equal-height]");const getTallestHeight = (nodes) =>Math.max(...[...nodes].map((el) => el.clientHeight));const setEqualHeight = function () {/*reset height*/equalHeightBlocks.forEach((block) => (block.style.minHeight = ""));/*run only if blocks are not wrapped*/if (window.innerWidth < 768) return;/*set height based on tallest*/const tallest = getTallestHeight(equalHeightBlocks);equalHeightBlocks.forEach((block) => (block.style.minHeight = tallest + "px"),);};window.addEventListener("resize", setEqualHeight);document.addEventListener("DOMContentLoaded", setTimeout(setEqualHeight,100));