functionlightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){!function(t){t.preventDefault();for(varn,o=[],i=0,e=t.target.closest(".kg-card").previousElementSibling;e&&(e.classList.contains("kg-image-card")||e.classList.contains("kg-gallery-card"));){varr=[];e.querySelectorAll("img").forEach(function(e){r.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),i+=1}),e=e.previousElementSibling,o=r.concat(o)}t.target.classList.contains("kg-image")?o.push({src:t.target.getAttribute("src"),msrc:t.target.getAttribute("src"),w:t.target.getAttribute("width"),h:t.target.getAttribute("height"),el:t.target}):(n=!1,t.target.closest(".kg-gallery-card").querySelectorAll("img").forEach(function(e){o.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),n||e===t.target?n=!0:i+=1}));for(vara=t.target.closest(".kg-card").nextElementSibling;a&&(a.classList.contains("kg-image-card")||a.classList.contains("kg-gallery-card"));)a.querySelectorAll("img").forEach(function(e){o.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e})}),a=a.nextElementSibling;vars=document.querySelectorAll(".pswp")[0];newPhotoSwipe(s,PhotoSwipeUI_Default,o,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:i,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){vart=o[e].el,e=window.pageYOffset||document.documentElement.scrollTop,t=t.getBoundingClientRect();return{x:t.left,y:t.top+e,w:t.width}}}).init()}(e)})})}!function(e,t){"function"==typeofdefine&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeofmodule&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeofwindow?window:this,function(){functione(){}vart=e.prototype;returnt.on=function(e,t){if(e&&t){varn=this._events=this._events||{},e=n[e]=n[e]||[];return-1==e.indexOf(t)&&e.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);varn=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length){t=e.indexOf(t);return-1!=t&&e.splice(t,1),this}},t.emitEvent=function(e,t){varn=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(varo=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){varr=n[i];o&&o[r]&&(this.off(e,r),deleteo[r]),r.apply(this,t)}returnthis}},t.allOff=function(){deletethis._events,deletethis._onceEvents},e}),function(t,n){"use strict";"function"==typeofdefine&&define.amd?define(["ev-emitter/ev-emitter"],function(e){returnn(t,e)}):"object"==typeofmodule&&module.exports?module.exports=n(t,require("ev-emitter")):t.imagesLoaded=n(t,t.EvEmitter)}("undefined"!=typeofwindow?window:this,function(t,e){functionr(e,t){for(varnint)e[n]=t[n];returne}functiona(e,t,n){if(!(thisinstanceofa))returnnewa(e,t,n);varo,i=e;return(i="string"==typeofe?document.querySelectorAll(e):i)?(this.elements=(o=i,Array.isArray(o)?o:"object"==typeofo&&"number"==typeofo.length?c.call(o):[o]),this.options=r({},this.options),"function"==typeoft?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),s&&(this.jqDeferred=news.Deferred),voidsetTimeout(this.check.bind(this))):voidl.error("Bad element for imagesLoaded "+(i||e))}functionn(e){this.img=e}functiono(e,t){this.url=e,this.element=t,this.img=newImage}vars=t.jQuery,l=t.console,c=Array.prototype.slice;(a.prototype=Object.create(e.prototype)).options={},a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},a.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);vart=e.nodeType;if(t&&u[t]){for(varn=e.querySelectorAll("img"),o=0;o<n.length;o++){vari=n[o];this.addImage(i)}if("string"==typeofthis.options.background)for(varr=e.querySelectorAll(this.options.background),o=0;o<r.length;o++){vara=r[o];this.addElementBackgroundImages