(()=>{"use strict";document.addEventListener("DOMContentLoaded",function(){var photoGalleries=document.querySelectorAll(".photo-gallery");if(photoGalleries.length){var resizeTimeout,updateEmptyCellHeight=function(photoGallery){var emptyCell=photoGallery.querySelector(".photo-gallery__empty-cell");if(emptyCell){var lastEmptyCellHeight=parseFloat(photoGallery.style.getPropertyValue("--empty-cell-height"))||0,emptyCellHeight=emptyCell.clientHeight;lastEmptyCellHeight!==emptyCellHeight&&photoGallery.style.setProperty("--empty-cell-height","".concat(emptyCellHeight,"px"))}};window.addEventListener("resize",function(){clearTimeout(resizeTimeout),resizeTimeout=setTimeout(function(){photoGalleries.forEach(function(gallery){return updateEmptyCellHeight(gallery)})},16)},{passive:!0}),photoGalleries.forEach(function(gallery){updateEmptyCellHeight(gallery)})}})})();