@import url('https://fonts.googleapis.com/css?family=Lato:700,400,300');

:root {
	--theme-color1: #83D3C9;
	--text-color: #7C8081;
}

body {
	font-size: 14pt;
	background-color: #F3F6FA;
	color: var(--text-color);
	font-family: Lato, sans-serif;
	font-size: 15pt;
	font-weight: 300;
	letter-spacing: 0.025em;
}

h1, h2, h3, h4, h5, h6 {
	text-transform: uppercase;
	line-height: 1.75em;
	color: inherit;
	font-weight: 300;
	margin-top: 15px;
}

h2 { font-size: 1.35em; }

header, footer {
	position: relative;
	background-image: url(banner.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: fixed;
	background-size: cover;
}

header::before, footer::before, #photospot::before, .preview_photospot::before, .box-hero-image::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: url(overlay.png);
	background-attachment: fixed;
	
}

header {
	padding: 30px 40px;
	color: white;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.is_frontpage header { flex-wrap: wrap; }

#logo {
	margin-right: 10px;
	position: relative; /*prevents overlay on header from superimposing this*/
}

.is_frontpage #logo {
	position: absolute;
    top: 30px;
    left: 30px;
	margin-right: 0;
	float: none;
	margin-right: 0;
}

#logo img {
	max-width: 100px;
	max-height: 100px;
}

#title_box_wrapper {
	transition: all 2s 0.5s ease-in-out;
	order: 2;
}

#title-and-slogan { position: relative; } /*prevents overlay on header from superimposing this*/

.is_frontpage #title_box_wrapper {
	order: 4;
	width: 100%;
}

.is_frontpage #logo { max-width: 100px; }

.is_frontpage #title_box {
	display: table;
	width: 5px;
	padding: 55px;
	background-color: rgba(52, 27, 43, 0.6);
	margin: 30px auto 65px auto;
	text-align: center;
}

#title {
	text-decoration: none;
	font-weight: 900;
	text-transform: uppercase;
	display: block;
}

.is_frontpage #title {
	border-top: 7px double;
	border-bottom: 7px double;
	font-size: 2.5em;
	letter-spacing: 0.2em;
	padding: 7px 10px;
	min-width: 300px;
	width: 100%;
}

#title img {
	max-width: 100%;
	max-height: 74px;
}

.is_frontpage #title img { max-height: 160px; }

#title_box_content { display: none; }

.is_frontpage #title_box_content {
	display: block;
	position: relative;
}

.is_frontpage #title_box_content p { margin-top: 35px; }

#account_menu {
	float: right;
	position: relative;
	background-color: var(--theme-color1);
	border: thin solid var(--theme-color1);
	padding: 4px;
	transition: all .3s ease-in-out;
	color: white;
	margin-bottom: 5px;
	margin-left: 20px;
}

#account_menu a {
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
}

.select_bar ul {
	position: relative;
	top: -2px;
	margin-right: 5px;
}

#mobile_button {
	display: none;
	margin-left: auto;
	z-index: 2;
	cursor: pointer;
	padding: 0 12px;
    background: rgba(163, 169, 170, 0.75);
    border-radius: 2px;
	line-height: 34px;
	opacity: 0.5;
	order: 3;
}

#title_box_content .custom_button { width: 100%; }

.custom_button {
	letter-spacing: 2px;
	line-height: initial;
	color: var(--text-color) !important;
}

#title_box_content .custom_button, footer .custom_button { color: white !important; }

#title_box_content .custom_button:hover,
footer .custom_button:hover {
	background-color: rgba(255,255,255,0.2);
	border: thin solid white;
}

#mobile_container {
	text-align: right;
	order: 3;
	margin-left: auto;
}

nav { float: right; }

nav ul ul::before {
	content: '';
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid white;
	position: absolute;
	left: 43px;
	top: -8px;
}

nav ul ul ul::before {
	border-right: 8px solid white;
	border-bottom: 8px solid transparent;
	border-top: 8px solid transparent;
	border-left: none;
	position: absolute;
	left: -8px;
	top: 16px;
}

nav ul ul::after {
	content: '';
	width: 100%;
	height: 23px;
	position: absolute;
	left: 0;
	top: -21px;
}

nav ul ul ul:after {
	content: '';
	width: 23px;
	height: 100%;
	position: absolute;
	left: -21px;
	top: 0px;
}

nav ul ul {
	background-color: white;
	box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.075);
}

nav > ul > li > a {
	display: block;
	text-decoration: none;
	padding: 5px;
	font-size: 14px;
	padding: 8px 10px;
}

nav > ul > li:hover {
	background-color: rgba(255,255,255,0.3);
	border: thin solid white;
}

nav ul li.current, nav ul ul a.current {
	background-color: var(--theme-color1);
	color: white;
}

nav > ul > li {
	display: inline-block;
	position: relative;
	border: thin solid transparent;
}

nav ul ul a {
	color: var(--text-color);
	text-decoration: none;
	display: block;
	font-size: 12px;
	padding: 6px 12px;
	width: 160px;
	text-align: left;
}

nav ul ul li:hover { background-color: var(--theme-color1); }

nav li:hover > a { color: white; }

nav ul ul li {
	width: 160px;
	border-top: thin solid rgba(124, 128, 129, 0.2);
	list-style: none;
	position: relative;
}

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

nav ul ul li:last-of-type { margin-bottom: 10px; }

nav ul ul {
	display: none;
	z-index: 9999;
}

nav li:hover > ul {
	display: block;
	position: absolute;
	width: auto;
	margin-top: 20px;
	margin-left: -20px;
}

nav ul ul li:hover > ul {
	margin-top: -10px;
	top: 0;
	left: 180px;
}

header .slogan {
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

#logo + #title-and-slogan { margin-left: 0; }

.is_frontpage header .slogan { margin: 35px 0 0 0 !important; }

article { padding: 70px; }

article + article { padding-top: 0; }

.wrapper {
	max-width: 1400px;
	margin: auto;
}

.white-bg {
	background-color: white;
	display: table;
	width: 100%;
	padding: 75px;
	line-height: 1.5em;
}

.has-sidebar .sidebar-container {
	display: table-cell;
	width: 300px;
	padding-right: 20px;
	vertical-align: top;
}

.sidebar { margin-bottom: 50px; }

.sidebar ul { list-style-position: inside; }

#PhotoBox, .preview_PhotoBox, .box-hero-image { aspect-ratio: 5 / 2; }

#photocaption, .preview_photocaption, .box-hero-caption {
	bottom: calc(50% - 3vw);
	font-size: 5vw;
	text-align: center;
	font-weight: bold;
	background-color: transparent;
	opacity: 1;
	line-height: 1;
}

#PhotoBox { margin-bottom: 20px; }

.preview_photocaption, .box-hero-caption { font-size: 3vw; }

.page-container { display: table-cell; }

.has-sidebar .page h1 { text-align: left; }

#searchbar {
	width: 100%;
	text-align: center;
	padding-bottom: 10px;
}

#searchbar input { width: 68%; }

.marquee {
	max-width: 700px;
	margin: auto;
	padding-bottom: 70px;
	text-align: center;
}

.white-bg a {
	color: var(--theme-color1);
	text-decoration: none;
	transition: all 0.2s ease-in-out;
}

blockquote {
	background-color: var(--theme-color1);
	padding: 8%;
	color: white;
}

blockquote a {
	transition: all 0.2s ease-in-out;
	color: white !important;
}

.white-background a:hover, blockquote a { text-decoration: underline; }

footer {
	padding: 7vw;
	clear: both;
	color: white;
	text-align: center;
}

footer h1, footer .copy { position: relative; }

footer img, footer .nivoSlider { border: 10px solid white; }

#footer2 {
	text-align: center;
	padding: 7vw;
}

#footer2 .site_contact { display: block; }

#footer2 .site_contact_cell { display: inline; }

#socialmedia { margin-bottom: 20px; }

#container {
	position: relative;
	left: 0;
	transition: all;
	transition-duration: .5s;
}

#container.active { left: -300px; }

.fc-view-container { font-size: 0.75em; }

@media screen and (max-width: 1000px) {
	nav ul ul li:first-of-type { margin-top: 0; }

	nav ul ul li:last-of-type { margin-bottom: 0; }

	article { padding: 70px 20px; }

	header:has(nav, #account_menu) #mobile_button { display: inline-block; }

	#mobile_container {
		position: fixed;
		right: -300px;
		top: 0;
		width: 300px;
		height: 100vh;
		background-color: #1c2021;
		padding: 0.25em 0.75em 1em 0.75em;
		box-shadow: inset 7px 0 9px -7px black;
		transition: all;
		transition-duration: .5s;
        overflow-y: auto;
	}

	#container.active #mobile_container { right: 0; }

	#account_menu {
		float: none;
		display: inline-block;
		margin-top: 5px;
	}

	#account_menu strong { display: block; }

	nav {
		margin: 0;
		margin-top: 10px;
		border-bottom: thin solid rgba(255, 255, 255, 0.05) !important;
	}

	nav ul li {
		border: none !important;
		display: block;
		background-color: transparent !important;
	}

	nav ul ul li:first-of-type, nav ul ul li:hover > ul { margin-top: 0; }

	nav > ul > li > a { font-weight: bold; }

	nav li:hover ul {
		position: static;
		display: block;
		margin-top: 0;
	}

	nav ul a {
		padding: 10px 0 !important;
		border-top: thin solid rgba(255, 255, 255, 0.05) !important;
	}

	nav ul ul::after, nav ul ul::before { content: none; }

	nav a.current { position: relative; }

	nav a.current:after {
		content: '';
		position: absolute;
		right: 0;
		width: 0;
		height: 0;
		border-top: 8px solid transparent;
		border-bottom: 8px solid transparent;
		border-right: 8px solid white;
	}

	nav > ul > li > a.current { padding-right: 20px !important; }

	nav ul ul {
		display: block;
		position: static;
		background-color: transparent !important;
		box-shadow: none;
	}

	nav ul ul li { width: 100%; }

	nav ul ul a {
		width: 100%;
		text-align: right;
		font-size: 14px;
		padding-right: 20px !important;
	}

	nav ul ul ul a { padding-right: 40px !important; }

	body { overflow-x: hidden; }

	.white-bg { padding: 50px; }
}

@media screen and (max-width: 767px) {
	header { flex-direction: column; }

	.is_frontpage #logo {
		top: 0;
		left: 0;
	}

	#title_box_wrapper #title_box {
		width: 100%;
		padding: 10px 20px;
		text-align: center;
	}
	
	.is_frontpage #title_box {
		background-color: transparent;
		height: auto;
		margin: 30px 0;
		max-width: 100%;
	}

	.is_frontpage #title { min-width: auto; }

	.is_frontpage #logo { position: relative; }

	.is_frontpage header .slogan { margin: 10px 0 !important; }

	.is_frontpage #title_box_content p { margin-top: 10px; }

	#mobile_button {
		position: fixed;
		right: 10px;
		top: 10px;
		transition: all;
		transition-duration: .5s;
	}

	#container.active #mobile_button { right: 310px; }

	.white-bg {
		display: flex;
		flex-direction: column;
		padding: 30px;
	}
	
	.page-container { order: 1; }
	
	#home_menu input, #page_menu input { margin-right: 0; }

	nav { width: 100%; }
	
	nav a { padding: 10px; }
	
	.has-sidebar .sidebar-container {
		order: 2;
		padding-right: 0;
		float: none;
		width: 100%;
		margin-top: 20px;
	}

	.has-sidebar .page {
		margin-left: 0;
		margin-top: 80px;
	}

	.page h1, .sidebar h1 {
		position: static !important;
		text-align: center;
	}

	.white-bg, .page, .has-sidebar .sidebar-container {
		width: 100%;
		margin-left: 0;
	}

	.preview_photocaption { font-size: 6vw; }

	#footer2 { display: block; }

	#footer2 .col {
		display: block;
		width: 100%;
		padding-right: 0;
		margin-bottom: 20px;
	}
}

@media screen and (max-width: 500px) {
	.is_frontpage #title { font-size: 8vw; }

	.white-bg { padding: 20px; }
}

.box .content { text-align: center; }

.box .content { padding: .5em 2em 2em 2em ; }

.box .content a { color: var(--text-color); }

/* workaround for iOS Safari position:fixed + background-size:cover bug (https://stackoverflow.com/questions/24154666) */
@supports (-webkit-touch-callout: none) {
	header,
	footer,
	header::before,
	footer::before,
	#photospot::before,
	.preview_photospot::before { background-attachment: scroll; }
}
