(function($){var gridIsog=function($scope,$){if(jQuery("body:not(.elementor-editor-active) .loadmore-wrapper-gallery").length){var jQueryloadmorexen=jQuery('.container-after-gallery');var jQuerycontainer=jQuery('body:not(.elementor-editor-active) .loadmore-wrapper-gallery').isotope({itemSelector:'.isotope-item',layoutMode:"packery",transitionDuration:"0.7s",percentPosition:true});jQuerycontainer.imagesLoaded(function(){jQuerycontainer.isotope("layout");});var itemcount=jQuery('body:not(.elementor-editor-active) .loadmore-wrapper-gallery').data('load-item');var buttontext=jQuery('body:not(.elementor-editor-active) .loadmore-wrapper-gallery').data('button-text');var initShow=itemcount;var counter=initShow;var iso=jQuerycontainer.data('isotope');loadMore(initShow);function loadMore(toShow){jQuerycontainer.find(".hidden").removeClass("hidden");var hiddenElems=iso.filteredItems.slice(toShow,iso.filteredItems.length).map(function(item){return item.element;});jQuery(hiddenElems).addClass('hidden');jQuerycontainer.isotope('layout');if(hiddenElems.length==0){jQuery(".iso-load-more-wrap-gallery").hide();}
else{jQuery(".iso-load-more-wrap-gallery").show();};}
if(iso.filteredItems.length<initShow){}
else if(iso.filteredItems.length==initShow){}
else{jQueryloadmorexen.after('<div class="bauen-more-wrapper-new text-center  iso-load-more-wrap-gallery" ><button class="button-4 mt-30"  id="load-more-gallery"><a> '+buttontext+'</a></button></div>');}
jQuery("#load-more-gallery").click(function(){if(jQuery('#filters').data('clicked')){counter=initShow;jQuery('#filters').data('clicked',false);}else{counter=counter;};counter=counter+initShow;loadMore(counter);});}};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/renax-gallery.default',gridIsog);});})(jQuery);