!function(e){let t,n,s,i,l,o,c,r,a=[],u=[],h=[],d=[],m=[],p=[],g=[],f={height:600,thumbHeight:150,thumbWidth:150,items:3,customControls:{prevButton:'',nextButton:'',fullButton:""},showThumbnails:!0,singleLine:!1},v={},b={},w=[],x=[],k={init:function(){this.createElements(),this.setStyles(),this.setRespProp(),this.setLargeImgDimensions(),this.showThumbnails(),this.setThumbnailsWrapWidth(),this.setThumbnailsDimensions(),this.changeLargeImg(),this.justifyImgs(),this.prev(),this.next(),this.full(),this.hzScroll(),this.setCustomControls(),this.responsive()},createElements:function(){t.prepend('
'),n=t.find(".large-image"),a.push(t.find(".large-image")),n.append(''),(s=t.find(".prev-button")).addClass("inactive"),u.push(s),i=t.find(".next-button"),h.push(i),l=t.find(".full-button"),d.push(l),(c=t.find(".thumbnails")).wrap(''),c.append(t.find("img")),c.find("img").wrap(''),m.push(c),(r=t.find(".gallery-item")).eq(0).addClass("active"),p.push(r),g.push(r.length),r.each(function(t){e(this).css("background-image","url("+e(this).find("img").attr("src")+")"),e(this).find("img").remove()});let f=r.eq(0).css("background-image");n.css("background-image",f),o=e(".thmb-wrap")},setStyles:function(){t.css({width:"100%",outline:"none",position:"relative"}).find("div").css({"background-position":"center","background-repeat":"no-repeat"}),n.css({position:"relative","box-sizing":"border-box"}),v.singleLine&&t.find(o).css("overflow-x","hidden"),c.css({display:"flex","flex-flow":"row wrap"}),c.children().css({"-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box",overflow:"hidden"})},setRespProp:function(){for(let t=0;t=n[l]&&a[t].width()=0?(e(this).parent().parent().css("background-image",t.css("background-image")),t.addClass("active"),t.next().removeClass("active")):e(this).parent().parent().next().scrollLeft(0),k.setPositionOfItem.call(this,t,s,n),k.makeInactiveBtn.call(this,s,n)})},next:function(){i.click(function(){let t=e(this).parent().parent().next().find(".active").next(),n=e(this).parent().parent().next().find(".gallery-item"),s=e(n).index(t);s=e(this).parent().parent().next().width()-5&&e(this).parent().parent().next().scrollLeft(n*s.width())},makeInactiveBtn:function(t,n){e(this).parent().children().removeClass("inactive"),t>n.length-2||t<0?e(this).addClass("inactive"):t<1&&e(this).addClass("inactive")},justifyImgs:function(){for(let e=0;e