",{target:"_blank",href:t.attr("href"),html:''})}}$(document).on("click",".lightbox",function(t){t.preventDefault(),$.magnificPopup.open({type:"image",image:{markup:mfpMarkup},items:[mfpGetItem($(this))]})}),$(document).on("click",".lightbox-gallery",function(t){t.preventDefault();var e=$(this).find("a").map(function(t,e){return mfpGetItem($(e))}).get(),i=e.map(function(t){return t.src}).indexOf($(t.target).closest("a").attr("href"));$.magnificPopup.open({type:"image",image:{markup:mfpMarkup},gallery:{enabled:!0},items:e},i)})