function getGalleryElements(){return document.querySelectorAll('div[data-specific-kind="GALLERY"][data-stretch="true"] .gallery')};function getElementHeight(element){return element.getBoundingClientRect().height};document.addEventListener('DOMContentLoaded',function(){const elements=getGalleryElements();if(!elements.length)return;function updateParentsMinHeight(){elements.forEach(function(galleryElt){const galleryCmpElement=galleryElt.parentElement.parentElement,elementHeight=getElementHeight(galleryElt),galleryCmpElementHeight=getElementHeight(galleryCmpElement);if(galleryCmpElementHeight!==elementHeight){galleryCmpElement.style.minHeight=`${elementHeight}px`}let child=galleryCmpElement;function updateHeight(){let element=child.parentElement;if(element.getAttribute('data-specific-kind')==='SECTION'){element=element.parentElement}if(element.style.minHeight.includes('px')){const childHeight=getElementHeight(child),parentHeight=getElementHeight(element);if(parentHeight>childHeight){element.style.minHeight=`${childHeight}px`}}child=element}while(child&&child!==document.body){if(child.classList.contains('row')&&child.querySelector('[data-kind="SECTION"]')){updateHeight();break}updateHeight()}})};updateParentsMinHeight();const intervalId=setInterval(updateParentsMinHeight,500);setTimeout(()=>{clearInterval(intervalId)},20000);window.addEventListener('load',updateParentsMinHeight);window.addEventListener('resize',updateParentsMinHeight)});