jQuery(function(a){a("a.dsm-image-lightbox").length&&a("a.dsm-image-lightbox").each(function(i,t){a(this).attr("data-dsm-lightbox-id");var n=!a(this).hasClass("et_pb_button");a(this).magnificPopup({type:"image",removalDelay:500,mainClass:"mfp-fade",zoom:{enabled:n,duration:500,opener:function(a){return a.find("img")}},callbacks:{open:function(){var i=a.magnificPopup.instance,t=a(i.currItem.el[0]);this.container.addClass(t.data("dsm-lightbox-id")+" dsm-lightbox-custom")}}})})});