/* 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: 1024px) {
	
	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%;
}

.fixed-header.page-home #header-inner {
	position: absolute;
}

#topMenuBG {
	height: var(--header-height);
	position:relative;
	transition: height .5s ease;

	background: #3C3C3C;
	/* background: linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 100%); */
}

.page-home #topMenuBG {
	background: black;
	background: linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 100%);
}

.page-home #topMenuBG::after{
	opacity: 0;
}

.page-home.scrolled #topMenuBG::after{
	opacity: 1;
}


#topMenuBG::after{
	position:absolute;
	top:0;
	bottom:0;
	right:0;
	left:0;
	z-index:-1;
	content:'';
	/* background: white; */
	background: #3b3b3b;
	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: 194px;
	min-width: 194px;
	height: 59px;
}

#topMenuBG #header-logo img {
	width: auto;
	height: 100%;
	display:inline-block;
}

#topMenuBG #header-logo img.logo_white {
	display: inline-block;
}
#topMenuBG #header-logo img.logo_green {
	display: none;
}

  
#headerRight {
	display: flex;
	flex-direction: row;
}

#topHeaderContact {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-right: 1rem;
	grid-gap: 1rem;
	min-width: 70px;
}
  
#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%;
}

.div-email-icon a {
	display: flex;
}


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

	display: none;
  }
  .cmsDebug .jsGallery.banner_gallery::before {
	background-image: url(../../images/banner-overlay_white_1800.svg);
  }

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



  /* Banner Dark Overlay - Start */
  .jsGallery.banner_gallery::after {
	display: block;
    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));

	display: none;
  }

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



/* ;nav-transition-from-mobile; */
@media only screen and (min-width: 1024px) {
	/* .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: center;
		height: 100%;
	}
	
	#topHeaderContact{
		/* padding-top: .5rem; */
		padding-top: 0;
		margin-right:0;

		display: none;
	}

	#topHeaderContact p {
		display: inline;
		margin-left: 1rem;
	}

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


@media only screen and (max-width: 1340px) {
	#topMenuBG #header-logo {
		min-width: unset;
	}

	#topMenuBG > .standard-width {
		grid-gap: .5rem;
	}
}