/* Site-wide custom styles for the Bricks Starter Template. */

/* Bricks renders the header, main content, and footer as direct body children.
 * Keep short pages viewport-height without fixing the footer over content.
 */
body.brx-body {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

/* WordPress offsets the document by the admin-bar height for signed-in users. */
body.admin-bar.brx-body {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

body.brx-body > #brx-content {
	flex: 1 0 auto;
}

body.brx-body > #brx-footer {
	flex-shrink: 0;
}
