@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700|Raleway:400,800');

:root {
	--theme-color1: #444;
}

header, .marquee, .slogan, #main, footer {
	font-family: 'Raleway', sans-serif;
	color: #444;
}

body {
	overflow-x: hidden;
	margin-top: 72px;
}

body.is_frontpage { margin-top: 0; }

.wrapper {
	max-width: 1560px;
	margin: auto;
	padding: 0 3em;
}

p {
	margin: 0 0 2em 0;
	line-height: 28.6px;
	font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Raleway', sans-serif; }

h1 {
	/* position: relative; */
	font-size: 2.25em;
	font-weight: 800;
	margin: 0 0 0.7em 0;
	padding-bottom: 0.75em;
	text-transform: uppercase;
}

h2 {
	font-size: 18.3333px;
	padding-bottom: 0.75em;
}

h2, h3 { position: relative; }

h3 {
	font-size: 16.1333px;
	padding-bottom: 0.75em;
}

h4 { font-size: 14.6667px; }

h5 { font-size: 13.2px; }

h6 { font-size: 10.2667px; }

/* h1::after, h2::after, h3::after {
	border-bottom: thin solid;
	bottom: 0;
	content: '';
	display: inline-block;
	left: 0;
	position: absolute;
	width: 3rem;
} */

#site-identity { margin-top: 5px; }

#site-identity .slogan { display: none; }

#logo img,
#title img {
    max-height: 50px;
}

@media screen and (max-width: 767px) {
	#site-identity {
		display: flex;
		text-align: left;
	}
	#logo + #title-and-slogan { margin-left: 1em; }
	#logo + #title-and-slogan #title { margin-top: 0; }
}

blockquote {
	border-left: solid 4px #e6e6e6;
	font-style: italic;
	margin: 0 0 2em 0;
	padding: 0.5em 0 0.5em 2em;
}

blockquote, q { quotes: none; }

#slideshow { width: 100%; }

#slideshow .nivo-caption, #photocaption, .preview_photocaption {
	font-family: 'Open Sans', sans-serif;
	font-weight: 800;
	font-size: 2.4vw;
	text-shadow: 0 0 5px black;
	bottom: 50%;
	transform: translateY(50%);
	text-align: center;
	text-transform: uppercase;
	background-color: transparent;
	opacity: 1;
}

.marquee {
	background-color: black;
	text-align: center;
	color: silver;
	font-size: 18px;
	padding: 1em;
}

#PhotoBox {
	aspect-ratio: 24 / 7;
	margin-bottom: 30px;
}

#scroll_down_container {
	position: relative;
	text-align: center;
}

#scroll_down {
	position: absolute;
	left: calc(50% - 100px);
	bottom: 10px;
	font-size: 40px;
	width: 200px;
	background-color: rgba(255,255,255,0.1);
	border: none;
	transition: all;
	transition-duration: .5s;
}

#scroll_down:hover {
	background-color: rgba(255,255,255,0.5);
	cursor: pointer;
}

#scroll_down:focus { outline: none; }

#scroll_down i { color: white; }

header {
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	padding: 5px 50px;
	position: fixed;
	box-shadow: 0 0 0.125em 0 rgba(0, 0, 0, 0.35);
	background-color: white;
	pointer-events: none;
}

header > * { pointer-events: auto; }

nav, #account_menu, #searchbar {
	display: inline-block;
	vertical-align: middle;
}

#mobile-menu {
	float: right;
	height: 62px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#searchbar {
	position: relative;
	margin-left: 10px;
}

#searchbar button {
	position: absolute;
	right: 0;
	width: 20px;
	visibility: hidden; /* hides sub-menu */
	opacity: 0;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	transform: translateY(-2em);
	z-index: -1;
	transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
}

#searchbar input {
	position: absolute;
	right: -20px;
	width: 200px;
	visibility: hidden; /* hides sub-menu */
	opacity: 0;
	position: absolute;
	top: 100%;
	transform: translateY(-2em);
	z-index: -1;
	transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
}

#searchbar:hover input, #searchbar:hover button {
	visibility: visible; /* shows sub-menu */
	opacity: 1;
	z-index: 1;
	transform: translateY(0%);
	transition-delay: 0s, 0s, 0.3s; /* this removes the transition delay so the menu will be visible while the other styles transition */
}

#searchbar::before {
	content: '\F0349'; /* magnify */
	display: inline-block;
	font: normal normal normal 24px/1 "Material Design Icons";
	font-size: 24px;
	line-height: 1;
	font-size: inherit;
	text-rendering: auto;
	line-height: inherit;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 40px;
	vertical-align: middle;
}

#title {
	text-decoration: none;
	text-transform: uppercase;
}

#account_menu {
	display: inline-block;
	border: thin solid;
	text-transform: uppercase;
	font-weight: bold;
}

#account_menu a {
	text-decoration: none;
	font-weight: 300;
}

#account_menu strong { display: block; }

#account_menu { padding: 10px 20px; }

nav { z-index: 5; }

nav li {
	display: inline-block;
	position: relative;
}

nav ul ul li { border-top: thin solid #E6E6E6; }

nav ul ul li:last-of-type { border-bottom: none; }

nav a {
	padding: 5px 20px;
	display: block;
	text-transform: uppercase;
	text-decoration: none;
	height: auto !important;
	margin-top: -10px;
}

nav ul ul li:first-of-type { border-top: none; }

nav ul ul::after {
	content: '';
	position: absolute;
	top: -10px;
	left: calc(50% - 10px);
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid white;
}

header nav > ul > li > a::before {
	font-family: 'Material Design Icons';
	font-size: 1.7em;
	vertical-align: bottom;
	content: '\F0140'; /* chevron-down */
	margin-left: -0.5em;
	position: relative;
	top: 5px;
}

header nav > ul > li > a:only-child::before, header nav ul ul li > a:only-child::after {
	content: '';
	margin: 0;
}

nav ul ul {
	background-color: white;
	width: 200px !important;
	box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);
	padding: 0 10px;
	visibility: hidden; /* hides sub-menu */
	opacity: 0;
	font-size: 12px;
	position: absolute;
	top: 40px;
	left: calc(50% - 100px);
	width: 100%;
	z-index: -1;
	transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
}

nav ul ul ul::after { display: none; }

nav ul li:hover > ul {
	visibility: visible; /* shows sub-menu */
	opacity: 1;
	z-index: 1;
	transition-delay: 0s, 0s, 0.3s; /* this removes the transition delay so the menu will be visible while the other styles transition */
}

nav ul ul ul {
	left: 190px;
	top: 0;
}

nav ul ul a { margin-top: 0; }

nav ul ul li, nav ul ul a {
	width: 100%;
	display: block;
}

nav ul ul a {
	color: #444 !important;
	padding: 15px 20px;
}

#mobile-button {
	display: none;
	float: right;
	color: white;
	padding: 10px;
	margin-left: 20px;
}

#mobile-menu.toggled .select_bar li + li::before { color: black; }

#mobile-menu.toggled #close {
	display: inline-block;
	font-size: 30px;
	font-weight: bold;
	margin-top: -10px;
	margin-bottom: 10px;
	cursor: pointer;
	position: absolute;
	right: 20px;
	top: 20px;
}

#close { display: none; }

#mobile-menu.toggled nav a::before { display: none; }

.slogan {
	margin-top: 5vw;
	font-size: 18px;
	text-align: center;
	font-weight: bold;
}

.sidebar + .sidebar {
	border-top: thin solid #e6e6e6;
	padding-top: 40px;
}

#main { padding: 5vw 0; }

.has-sidebar #main { display: flex; }

.has-sidebar .page-container {
	margin: 0 0 0 4em;
	width: 100%;
}

/* prevent partial underline on h1, h2, h3 from displaying over left-floated elements */
/* remove if the position of the partial underline itself can be fixed */
.copy img[style*="float: left;"],
.copy table[style*="float: left;"],
.copy iframe[style*="float: left;"],
.copy .slideshow[style*="float: left;"],
.copy.editable.from-db :is(.mce-preview-object, .mce-object-iframe)[style*="float: left;"],
figure.image.align-left {
	position: relative;
	z-index: 1;
}

.page { width: 100%; }

.sidebar-container {
	width: 390px;
	min-width: 390px;
}

#featured {
	clear: both;
	background-color:#f6f6f6;
}

.sidebar h1 { font-size: 14.6667px; }

footer {
	padding: 4em 0 2em 0;
	border-top: solid thin #e6e6e6;
	clear: both;
	text-align: center;
}

footer { color: #bbb !important; }

#all_socialmedia { margin-top: .5em; }

.toggled { right: 0 !important; }

.custom_button {
	font-size: unset;
	padding: .25em 1.25em;
	font-family: 'Raleway', Helvetica, sans-serif;
}

#overlay {
	background-color: rgba(0,0,0,0.7);
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	transition: all;
	transition-duration: .5s;
	z-index: 5;
	opacity: 0;
	width: 0;
}

#overlay.active {
	opacity: 1;
	width: 100%;
}

.is_frontpage header {
	background-color: transparent;
	box-shadow: none;
	position: absolute;
	color: white;
	text-shadow: 0 0 5px black;
}

.is_frontpage header .mdi { text-shadow: none; }

.is_frontpage header nav ul ul { text-shadow: none; }

.is_frontpage .slogan { margin-top: 4em; }

.is_frontpage #account_menu { border: thin solid white; }

@media only screen and (max-width: 1200px) {
	nav, #account_menu, #searchbar { float: none; }

	#searchbar { display: flex; }

	#searchbar button { width: 80%; }

	#searchbar button {
		width: 20%;
		background-color: var(--theme-color1);
		border-radius: 0;
	}

	#searchbar button i { color: white; }

	#searchbar, #account_menu {
		border: none !important;
		border-bottom: thin solid #E6E6E6 !important;
		margin: 0;
		width: 100%;
	}

	#searchbar {
		padding-bottom: 20px;
		padding-left: 0;
	}

	#account_menu {
		padding-bottom: 10px;
		padding-left: 0;
	}

	#searchbar::before { display: none; }

	#searchbar input, #searchbar button {
		position: static !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}

	#account_menu * { color: #444 !important; }

	#mobile-button {
		display: block;
		float: right;
		padding: 10px;
		background-color: var(--theme-color1);
		cursor: pointer;
		margin-top: 10px;
	}

	#mobile-button i { color: white; }

	#mobile-menu {
		flex-direction: column;
		padding: 20px;
		overflow: auto;
		position: fixed;
		right: -300px;
		top: 0;
		height: 100vh;
		width: 300px;
		background-color: white;
		transition: all;
		transition-duration: .5s;
		align-items: initial;
		justify-content: initial;
		text-shadow: none;
	}

	#close { color: var(--theme-color1); }

	#title { justify-content: left; }

	#mobile-menu nav {
		margin-top: 20px;
		order: 3;
		width: 100%;
	}

	#mobile-menu nav a { margin-top: 0; }

	nav > ul > li { border-bottom: thin solid #E6E6E6; }

	nav li::after, nav ul::after { display: none !important; }

	header nav { min-width: auto; }

	header nav > ul > li > ul > li > a::before {
		font-family: 'Material Design Icons';
		font-size: 1.7em;
		vertical-align: bottom;
		content: '\F0140'; /* chevron-down */
		margin-left: -0.5em;
		position: relative;
		top: 5px;
	}

	header nav > ul > li > ul > li > a:only-child::before, header nav ul ul li > a:only-child::after {
		content: '';
		margin: 0;
	}

	nav li {
		position: static !important;
		display: block !important;
	}

	nav ul {
		position: static !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		transform: none !important;
		box-shadow: none !important;
	}

	nav ul ul {
		width: 100% !important;
		padding: 0 !important;
	}

	nav ul ul a {
		padding-left: 20px;
		font-size: 14.6667px;
	}

	nav ul ul ul a {
		padding-left: 40px;
		font-size: 14.6667px;
	}

	nav a {
		color: black !important;
		padding: 15px 0;
	}
}

@media only screen and (max-width: 1000px) {
	#main, .page, .sidebar, .sidebar-container, .page-container {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.sidebar {
		border-bottom: 2px solid #E6E6E6;
		margin-bottom: 20px !important;
	}

	#main { padding-top: 5vw !important; }
}

@media only screen and (max-width: 768px) {
	.sidebar + .sidebar { border-top: none; }

	.wrapper { padding: 0 20px; }

	nav, #account_menu, #searchbar {
		display: block;
		float: none;
	}
	
	.is_frontpage header{ padding: 5px 50px 5px 20px; }
}

.boxes { padding: 3em 0; }

.preview_PhotoBox {
	aspect-ratio: 2 / 1;
	margin-bottom: 1em;
}

.box-hero-image { aspect-ratio: 2 / 1; }

.box h2 { text-transform: uppercase; }

.box .content {
	background-color: white;
	padding: 2em;
}
