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(),jQuery(this).hasClass("fusion-gallery-layout-masonry")&&!jQuery(this).hasClass("fusion-masonry-has-vertical")&&0<jQuery(this).find(".fusion-grid-column:not(.fusion-grid-sizer)").not(".fusion-element-landscape").length&&jQuery(this).addClass("fusion-masonry-has-vertical"),imagesLoaded(a,function(){b.css("min-height",""),a.fadeIn(),b.isotope({layoutMode:"packery",itemSelector:".fusion-gallery-column",isOriginLeft:!jQuery("body.rtl").length,resizable:!0,initLayout:!1}),b.on("layoutComplete",function(a,b){var c=jQuery(a.target);c.parents(".fusion-blog-layout-grid").length&&!c.parents(".fusion-blog-layout-grid").hasClass("fusion-blog-equal-heights")&&setTimeout(function(){c.parents(".fusion-blog-layout-grid").isotope()},50),c.parents(".fusion-portfolio-wrapper").length&&setTimeout(function(){c.parents(".fusion-portfolio-wrapper").isotope()},50)}),b.isotope(),jQuery(window).trigger("resize"),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})})})});