/* set up variables to control header height and max-banner height, in different contexts */
/* small screens always use the small header */
body {
	--header-height: var(--min-header-height);
	--banner-height-shim: var(--min-header-height);
}

/* header cutoff width should be adjusted for different sites, depending on the width of their menu. Don't bring it in sooner than necessary */
/* ;nav-transition-from-mobile; */
@media only screen and (min-width: 1186px) {

	body {
		--header-height: var(--max-header-height);
		--banner-height-shim: var(--max-header-height);
	}

	body.fixed-header.page-home {
		--banner-height-shim: 1px;
	}

	body.scrolled {
		--header-height: var(--min-header-height);
	}
}

.banner_gallery {
	--banner-height-adjust: calc(var(--banner-height-shim) + var(--toolbar-height, 0px));
}

/************************* Alert Bar *************************/
#alert-bar {
	text-align: center;
	width: 100%;
}

#alert-bar p {
	margin-bottom: 0;
	display: flex;
	align-content: center;
	justify-content: center;
	padding: 0.5rem;
	margin: 0;
}

#alert-bar p a {
	display: block;
}

/****************** Header Contents ****************************/
#header {
	position: sticky;
	position: -webkit-sticky;
	top: 0px;
	z-index: 1000;
}

#header-inner {
	position: relative;
	width: 100%;
}

#topMenuBG {
	height: var(--header-height);
	position: relative;
	transition: height .5s ease;
	background: transparent;
}

#topMenuBG::after {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	z-index: -1;
	content: '';
	background: white;
	opacity: 1;
	transition: opacity .5s ease;
}


#topMenuBG>.standard-width {
	display: flex;
	height: 100%;
	justify-content: space-between;
	align-items: center;
}

#topMenuBG #header-logo {
	display: block;
	flex: 0 1 auto;
	height: 75%;
}

#topMenuBG #header-logo:hover {
	opacity: .75;
	transition: opacity 1s ease;
}

#topMenuBG #header-logo img {
	max-width: 470px;
	width: 100%;
	height: 100%;
	display: inline-block;
}

#headerRight {
	display: flex;
	flex-direction: row;
}

#topHeaderContact {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-right: 1rem;
	gap: 15px;
	min-width: 75px;
}

#topHeaderContact p {
}

#topHeaderContact p {
	margin-bottom: 0;
}

.div-phone-icon,
.div-email-icon,
.div-location-icon {
	display: block;
	min-width: 25px;
	height: 25px;
	max-width: 25px;
}

.div-phone-icon a {
	display: block;
	width: 100%;
	height: 100%;
}

.div-email-icon img,
.div-phone-icon img {
	vertical-align: middle;
}

.div-phone-icon {
	display: none;
}


/* ;nav-transition-from-mobile; */
@media only screen and (min-width: 1186px) {

	.fixed-header #header-inner,
	.fixed-header.page-home #header-inner {
		/* position: absolute; */
	}

	.fixed-header:not(.scrolled) #topMenuBG.no-banner::after,
	#topMenuBG::after {
		opacity: 1;
	}

	.fixed-header:not(.scrolled) #topMenuBG::after,
	.fixed-header.page-home:not(.scrolled) #topMenuBG::after {
		/* opacity:.7; */
		opacity: 0;
	}

	#topMenuBG>.standard-width {
		position: relative;
	}

	#headerRight {
		margin-right: 0;
		flex-direction: row-reverse;
		justify-content: space-evenly;
		height: 100%;
	}

	#topHeaderContact {
		/* padding-top: .5rem; */
		margin-right: 0;
	}

	#topHeaderContact p {
		display: inline;
		margin: 0;
		margin-left: 1rem;
	}

	.div-phone-icon,
	.div-email-icon,
	.div-location-icon {
		display: none;
	}
}

#topMenuBG>.standard-width {
	flex-direction: column;
}

#headerRight {
	width: 100%;
	justify-content: space-between;
}

#topMenuBG #headerLeft {
	width: 100%;
	border-bottom: 1px solid grey;
	display: flex;
	justify-content: space-between;
	gap: 50px;
}

#topMenuBG #headerLeft .logo {
	display: flex;
	align-items: center;
}

/* Locations */

#locations-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	padding: 30px 0;
	max-width: 870px;
	width: 100%;
	flex: 1;
	transition: all .5s;
}

body.scrolled #locations-header {
	padding: 10px 0;
	transition: all .5s;
}

.location-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.location-icon {
	width: 24px;
	height: auto;
	flex-shrink: 0;
}

.location-info {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.location-title,
.location-title a {
	font-weight: 700;
	font-size: 16px;
	color: #000000;
	margin-bottom: 4px;
}

.location-phone {
	font-size: 15px;
	color: #000000;
	text-decoration: none;
}

.location-phone:hover {
	text-decoration: underline;
}

@media only screen and (max-width: 1186px) {
	#locations-header {
		display: none;

	}

	#topMenuBG>.standard-width {
		flex-direction: row;
	}

	#topMenuBG #headerLeft {
		border-bottom: none;
	}

	#headerRight {
		width: unset;
		justify-content: unset;
	}

}

@media only screen and (max-width: 770px) {

	#topHeaderContact .cms-button-a {
		display: none;
	}

}