(function($){var gridvidIsog=function($scope,$){if(jQuery("body:not(.elementor-editor-active) .loadmore-wrapper-gallery-vid").length){var jQueryloadmorexen=jQuery('.container-after-gallery-vid');var jQuerycontainer=jQuery('.loadmore-wrapper-gallery-vid').isotope({itemSelector:'.isotope-item',layoutMode:"packery",transitionDuration:"0.7s",percentPosition:true});jQuerycontainer.imagesLoaded(function(){jQuerycontainer.isotope("layout");});}
var itemcount=jQuery('.loadmore-wrapper-gallery-vid').data('load-item');var buttontext=jQuery('.loadmore-wrapper-gallery-vid').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-vid").hide();}
else{jQuery(".iso-load-more-wrap-gallery-vid").show();};}
if(iso.filteredItems.length<initShow){}
else if(iso.filteredItems.length==initShow){}
else{jQueryloadmorexen.after('<div class="carex-more-wrapper-new text-center  iso-load-more-wrap-gallery-vid"><a class="button-4 carex-load-more-bt cursor-pointer" id="load-more-gallery-vid">'+buttontext+'</a></div>');}
jQuery("#load-more-gallery-vid").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-video-gallery.default',gridvidIsog);});})(jQuery);