document.addEventListener("DOMContentLoaded",function(e){var t=new Isotope(".gallery-wrapper",{itemSelector:".element-item",layoutMode:"fitRows"});document.querySelector(".categories-filter").addEventListener("click",function(e){matchesSelector(e.target,"li a")&&(e=e.target.getAttribute("data-filter"),t.arrange({filter:e}))});for(var r=document.querySelectorAll(".categories-filter"),a=0,i=r.length;a<i;a++)!function(t){t.addEventListener("click",function(e){matchesSelector(e.target,"li a")&&(t.querySelector(".active").classList.remove("active"),e.target.classList.add("active"))})}(r[a])});var lightbox=GLightbox({selector:".image-popup",title:!1});