/**
 * Footer Hug Window Bottom
 */

/* Make all parents minimum fill the window height */
html,
body,
#page-container,
#et-boc,
#et-main-area {
	height: 100%;
}
/* FIX: If there is an animation on the page Divi will added `overflow-y: hidden` to the `#page-container` breaking the ability to scroll the page in some browsers (e.g., Safari), so reset the height and abandon */
#page-container[style*="overflow-y: hidden"] {
	height: auto;
}

/* Accommodate the WP admin bar */
html:has( body.admin-bar ) {
	height: calc( 100% - var(--wp-admin--admin-bar--height, 32px) );
}

/* Grow the content area to push the footer down to the window edge */
#et-main-area {
	display: flex;
	flex-direction: column;
}

#main-content {
	flex-grow: 1;
}
