!function(){var o,t=window.jQuery,n=window,e=n.VPData,s=n.VPPopupAPI,a=e.__,c=e.settingsPopupGallery,h=t(document),i=t(window);void 0!==t.fancybox&&s&&(s.vendor="fancybox",s.open=function(n,e,s){var h=[];n.forEach((function(o){"embed"===o.type&&o.src?h.push({type:"iframe",src:o.src,opts:{width:o.width,height:o.height}}):"embed"===o.type&&o.embed?h.push({type:"html",src:o.embed,opts:{width:o.width,height:o.height}}):h.push({type:"image",src:o.src,el:o.el,opts:{width:o.width,height:o.height,srcset:o.srcset,caption:o.caption,thumb:o.srcSmall}})}));var i=[];c.show_zoom_button&&i.push("zoom"),c.show_fullscreen_button&&i.push("fullScreen"),c.show_slideshow&&i.push("slideShow"),c.show_thumbs&&i.push("thumbs"),c.show_share_button&&i.push("share"),c.show_download_button&&i.push("download"),c.show_close_button&&i.push("close");var r={closeExisting:!0,loop:!0,arrows:c.show_arrows,infobar:c.show_counter,smallBtn:!1,toolbar:"auto",buttons:i,baseClass:"vp-fancybox",hideScrollbar:!0,wheel:!1,clickContent:function(o){return!("image"!==o.type||!c.click_to_zoom)&&"zoom"},lang:"wordpress",i18n:{wordpress:{CLOSE:a.fancybox_close,NEXT:a.fancybox_next,PREV:a.fancybox_prev,ERROR:a.fancybox_error,PLAY_START:a.fancybox_play_start,PLAY_STOP:a.fancybox_play_stop,FULL_SCREEN:a.fancybox_full_screen,THUMBS:a.fancybox_thumbs,DOWNLOAD:a.fancybox_download,SHARE:a.fancybox_share,ZOOM:a.fancybox_zoom}},beforeClose:function(){o=!1}};s&&s.emitEvent("beforeInitFancybox",[r,h,e]),1===n.length&&(r.loop=!1),o=t.fancybox.open(h,r,e),s&&s.emitEvent("initFancybox",[r,h,e,o])},s.close=function(){o&&(o.close(),o=!1)},h.on("transitionend",".fancybox-content",(function(){var o=t(this).find(".fancybox-image[sizes]"),n="".concat(Math.round(o.width()/i.width()*100),"vw");o.attr("sizes",n)})))}();