/* 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;
}

#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%;
	/* box-shadow: 0 0 7px #828282; */
}

#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; */
	background: var(--body-color);
	opacity:1;
	transition: opacity .5s ease;
}

#topMenuBG #topNav {
	display: flex;
	height: 100%;
	width: 100%;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 3px solid #82817d;
}
 
  
#topMenuBG > .standard-width {
	display: flex;
	height: 100%;
	justify-content: space-between;
	align-items: center;

	flex-direction: column;
}

#topMenuBG #contacts-bar {
	max-width: var(--standard-width);
    width: 100%;
	margin: 0 auto;
	min-height: 40px;
	border-bottom: 3px solid #82817d;
	margin-bottom: 15px;
	text-align: right;
	display: flex;
	align-items: center;
    justify-content: flex-end;
	gap: 70px;
}

#topMenuBG #contacts-bar > div {
	white-space: nowrap;
	display: flex;
	gap: 10px;
	align-items: center;
}

#topMenuBG #contacts-bar > div > div {
	display: flex;
}

#topMenuBG #contacts-bar img {
	max-width: 18px;
	max-height: 18px;
	width: 100%;
}

#topMenuBG #contacts-bar a {
	color: black;
	font-weight: 300;
    font-size: .9rem;
}
  
#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 {
	width: auto;
	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 {
	display: none;
}

#topHeaderContact p {
	margin-bottom: 0;
	margin-top: 0;
}
  
.div-phone-icon {
	display: block;
	width: 25px;
	height: 25px;
}

.div-phone-icon a {
	display: block;
	width: 100%;
	height: 100%;
}

.div-email-icon img,
.div-phone-icon img {
	vertical-align: middle;
}

/* ;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%;
		gap: 20px;
	}
	
	#topHeaderContact{
		/* padding-top: .5rem; */
		margin-right:0;
	}

	#topHeaderContact p {
		display: inline;
		margin-left: 1rem;
	}

	.div-phone-icon,
	.div-email-icon {
		display: none;
	}
}

@media only screen and (max-width: 1186px) {
	#topMenuBG #contacts-bar .phone,
	#topMenuBG #contacts-bar .email {
		display: none;
	}
}

