jQuery(window).load(function(){jQuery(".fusion-gallery-layout-grid, .fusion-gallery-layout-masonry").each(function(){var a,b=jQuery(this);a=b.find(".fusion-gallery-column"),b.css("min-height","500px"),a.hide(),imagesLoaded(a,function(){b.css("min-height",""),a.fadeIn(),b.isotope({layoutMode:"packery",itemSelector:".fusion-gallery-column",isOriginLeft:!jQuery("body.rtl").length,resizable:!0}),jQuery(window).trigger("resize"),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})})})});