/* 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;
	opacity:1;
	transition: opacity .5s ease;
}
 
  
#topMenuBG > .standard-width {
	display: flex;
	height: 100%;
	justify-content: space-between;
	align-items: center;

	grid-gap: 1.5rem;
}
  
#topMenuBG #header-logo {
	display: block;
	flex: 0 1 auto;
	height: 75%;

	width: 315px;
	transition: opacity .75s ease;
}

#topMenuBG #header-logo:hover {
	opacity: .75;
	transition: opacity .75s 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;
}
  
#topHeaderContact p {
	display: none;
}

#topHeaderContact p {
	margin-bottom: 0;
}
  
.div-phone-icon {
	display: block;
	width: 25px;
	height: 25px;
}

.div-phone-icon a {
	display: block;
	width: 100%;
	height: 100%;
}



/* Gallery Overlay - Start */
.jsGallery.banner_gallery {
	position: relative;
  }
  .jsGallery.banner_gallery::before {
	display: block;
	position: absolute;
	width: 100%;
	height: 75px;
	content: '';
	bottom: -2px;
	left: 0;
	z-index: 501;
	background-image: url(images/banner-bottom-overlay_1800_.svg);
	background-repeat: no-repeat;
	background-position: bottom;
	/* border: 1px solid red; */
  }
  .cmsDebug .jsGallery.banner_gallery::before {
	background-image: url(../../images/banner-bottom-overlay_1800_.svg);
  }

  @media only screen and (min-width: 1800px) {
	.jsGallery.banner_gallery::before {
		background-image: url(images/banner-bottom-overlay_3600_.svg);
	}
	.cmsDebug .jsGallery.banner_gallery::before {
		background-image: url(../../images/banner-bottom-overlay_3600_.svg);
	}
  }
  /* Gallery Overlay - Finish */



  /* Banner Dark Overlay - Start */
  .jsGallery.banner_gallery::after {
	display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    bottom: 0;
    left: 0;
    z-index: 789;
    background-image: linear-gradient(to bottom,rgba(0,0,0,.99),rgba(0,0,0,.1));
  }

  .page-home .jsGallery.banner_gallery::after {
	display: none;
  }
  /* Banner Dark Overlay - Finish */



/* ;nav-transition-from-mobile; */
@media only screen and (min-width: 1186px) {
	.fixed-header #header-inner,
	.fixed-header.page-home #header-inner {
		position: absolute;
	}

	#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: column;
		justify-content: space-evenly;
		height: 100%;
	}
	
	#topHeaderContact{
		padding-top: .5rem;
		margin-right:0;
	}

	#topHeaderContact p {
		display: inline;
		margin-left: 1rem;
	}
	
	/*
	body #topHeaderContact .cms-button-a{
		transition: padding .5s ease;
	}
	body.scrolled #topHeaderContact .cms-button-a{
		padding: 0 .35rem;
	}
	*/

	.div-phone-icon {
		display: none;
	}
}


@media only screen and (max-width: 767px) {
	.jsGallery.banner_gallery::before {
		height: 40px;
	}
}

@media only screen and (max-width: 679px) {
	#topMenuBG #header-logo {
		height: 65%;
	}
}

@media only screen and (max-width: 550px) {
	.jsGallery.banner_gallery::before {
		height: 32px;
	}

	#topMenuBG #header-logo {
		height: 60%;
	}
}

@media only screen and (max-width: 399px) {
	.jsGallery.banner_gallery::before {
		height: 23px;
	}
}