!function(){document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".et_pb_gallery_items"),e=(0<e.length&&e.forEach(e=>{e&&e.getAttribute("data-is-responsive-count")&&(updateGalleryPerPageSettings(e),window.addEventListener("resize",()=>updateGalleryPerPageSettings(e)))}),document.querySelectorAll(".et_pb_filterable_portfolio")),e=(0<e.length&&e.forEach(e=>{e&&e.getAttribute("data-is-responsive-count")&&(updatePortfolioPerPageSettings(e),window.addEventListener("resize",()=>updatePortfolioPerPageSettings(e)))}),document.querySelectorAll(".et_pb_image"));0<e.length&&e.forEach(e=>{t(e)})}),updateGalleryPerPageSettings=e=>{var t=JSON.parse(e.getAttribute("data-posts-per-device"));let a;switch(getDeviceType()){case"desktop":a=t.desktop;break;case"tablet":a=t.tablet;break;case"mobile":a=t.phone}e.setAttribute("data-per_page",a)},updatePortfolioPerPageSettings=e=>{var t=JSON.parse(e.getAttribute("data-posts-per-device"));let a;switch(getDeviceType()){case"desktop":a=t.desktop;break;case"tablet":a=t.tablet;break;case"mobile":a=t.phone}e.setAttribute("data-posts-number",a)};const t=e=>{var t,a,r,i,o,s=JSON.parse(e.getAttribute("data-lightbox-settings"));s&&(t=getDeviceType(),o=s.url,a=s.target,r=e.querySelector("img").getAttribute("src"),e)&&("tablet"===t&&"off"===s.tablet&&((i=e.querySelector("a")).classList.remove("et_pb_lightbox_image"),"-1"!==o)&&(i.setAttribute("href",o),i.setAttribute("target",a)),"tablet"===t&&"on"===s.tablet&&((i=e.querySelector("a")).classList.add("et_pb_lightbox_image"),i.setAttribute("href",r)),"mobile"===t&&"off"===s.phone&&((i=e.querySelector("a")).classList.remove("et_pb_lightbox_image"),"-1"!==o)&&(i.setAttribute("href",o),i.setAttribute("target",a)),"mobile"===t)&&"on"===s.phone&&((o=e.querySelector("a")).classList.add("et_pb_lightbox_image"),o.setAttribute("href",r))}}(jQuery);
jQuery(function(d){function i(){d(".dd-floating-divimenu, .dd-floating-divimenu-tablet, .dd-floating-divimenu-phone").each(function(){var i,t=d(window).scrollTop();(i=window.matchMedia("(min-width: 981px)").matches?d(this).attr("data-hide"):window.matchMedia("(max-width: 767px)").matches?d(this).attr("data-hide-p"):d(this).attr("data-hide-t"))&&t>=parseInt(i)?d(this).hide():d(this).css("display","")})}i(),d(window).on("scroll resize",function(){i()})});