var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
function resizeGridItem(e){void 0!==(grid=jQuery(e).closest(".loop-grid")[0])&&(rowHeight=parseInt(window.getComputedStyle(grid).getPropertyValue("grid-auto-rows")),rowGap=parseInt(window.getComputedStyle(grid).getPropertyValue("grid-row-gap")),rowSpan=Math.ceil((e.querySelector(".grid-item-cont").getBoundingClientRect().height+rowGap)/(rowHeight+rowGap)),e.style.gridRowEnd="span "+rowSpan)}function resizeAllGridItems(){for(allItems=document.getElementsByClassName("grid-item"),x=0;x<allItems.length;x++)resizeGridItem(allItems[x])}function resizeInstance(e){resizeGridItem(item=e.elements[0])}window.addEventListener("resize",resizeAllGridItems),jQuery(document).ready(function(e){resizeAllGridItems(),e(".masonry").addClass("resized"),e(window).on("load",function(){resizeAllGridItems(),e(".masonry").addClass("resized")})});
}