/* The theme owns the navigation; Elementor owns each page's content. */
body.page .site-main.bhh-page {
	display: grid;
	grid-template-columns: 300px minmax(0, 800px);
	width: min(1100px, 100%);
	max-width: 100%;
	margin-inline: auto;
}

.bhh-sidebar {
	padding: 10px;
	font-family: Arial, sans-serif;
	font-size: 16px;
	line-height: 24px;
}

.bhh-sidebar-inner {
	position: sticky;
	top: 40px;
	/* Expanded gallery menus must remain usable on shorter screens. */
	max-height: calc(100vh - 60px);
	max-height: calc(100dvh - 60px);
	overflow-y: auto;
}

.bhh-menu,
.bhh-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bhh-menu li {
	margin-bottom: 10px;
}

.bhh-menu a {
	color: #000;
}

.bhh-menu a:hover,
.bhh-menu a:focus-visible,
.bhh-menu .current-menu-item > a,
.bhh-menu .current-page-parent > a,
.bhh-menu .current-page-ancestor > a {
	color: #c00;
}

.bhh-menu .sub-menu {
	display: none;
	margin-left: 20px;
}

.bhh-menu .current-menu-item > .sub-menu,
.bhh-menu .current-menu-ancestor > .sub-menu,
.bhh-menu .current-page-parent > .sub-menu,
.bhh-menu .current-page-ancestor > .sub-menu,
.bhh-menu li:focus-within > .sub-menu {
	display: block;
}

.bhh-sidebar-logo {
	display: block;
	width: 130px;
	margin-top: 20px;
}

.bhh-sidebar-logo img {
	display: block;
	width: 130px;
	height: auto;
}

.bhh-page-content {
	min-width: 0;
}

/* Existing Elementor outer containers used to include the 300px sidebar. */
.bhh-page-content .page-content > .elementor > .e-con {
	--width: 100%;
	max-width: 100%;
}

@media (max-width: 1279px) {
	body.page .site-main.bhh-page {
		display: block;
		width: 100%;
	}

	.bhh-sidebar {
		display: none;
	}
}
