:root {
	--background-main: #f9f9f6;
	--accent-1: #363333;
	--accent-2: #ff8822;
	--photo-border: #f3ece6;
	--photo-background: #f3ece6;
	--font-main: "century gothic", futura, sans-serif;
}

@media only screen and (max-width: 800px) {
	html {
		font-size: 1.25em;
	}
	
	h1 {
		font-size: 1.5em;
	}
	
	h2 {
		font-size: 1.25em;
	}
	
	nav {
		font-size: 1.25em;
	}
	
	figure {
		margin: 0 0 20px;
		max-width: 720px;
		width: 100%;
		padding: 0;
	}

	nav {
		background-image: url("banner.png");
		background-repeat: no-repeat;
		background-position: left top;
		border-bottom: 4px solid var(--accent-2);
		line-height: 125%;
		padding-top: 55px;
	}
}

@media only screen and (min-width: 800px) {
	html {
		font-size: 1.25em;
	}
	
	h1 {
		font-size: 2em;
	}
	
	h2 {
		font-size: 1.5em;
	}
	
	nav {
		font-size: 1.5em;
	}
	
	figure {
		margin: 10px;
		padding: 0;
		width: 320px;
	}

	nav {
		background-image: url("banner.png");
		background-repeat: no-repeat;
		background-position: right top;
		border-bottom: 4px solid var(--accent-2);
		line-height: 125%;
		min-height: 55px;
		padding-right: 350px;
	}
}

html {
	background-color: var(--accent-1);
	font-family: var(--font-main);
}

body {
	background-color: var(--background-main);
	border: 20px solid var(--accent-1);
	margin: 0 auto;
	max-width: 1360px;
	padding: 20px;
}

h1 {
	margin: 15px 0 10px;
	border-bottom: 1px solid var(--accent-2);
}

p {
	line-height: 140%;
}

nav ul {
	display: flex;
	flex-flow: row wrap;
	margin: 0 0 4px;
	padding: 0;
}

nav li {
	border-right: 1px solid var(--accent-1);
	list-style: none;
	margin: 0 10px 0 0;
	padding: 0 10px 0 0;
}

nav li:last-child {
	border-width: 0; 
}

nav li a {
	color: var(--accent-1);
	font-weight: bold;
	text-decoration: none;
}

footer {
	border-top: 4px solid var(--accent-2);
	margin: 10px 0 0;
}

footer p {
	margin: 5px 0 0;
}

label {
	display: block;
	margin: 0 0 10px;
}

select {
	display: block;
	font-family: "century gothic", futura, sans-serif;
	font-size: 1em;
}

input {
	font-size: 1em;
}

.photo_group {
	display: flex;
	flex-flow: row wrap;
}

figure div {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	min-height: 220px;
}

figure img {
	border: 10px solid var(--photo-border);
	box-shadow: 2px 2px #aaa;
	display: block;
}

figcaption {
	background-color: var(--photo-background);
	border-bottom: 1px solid var(--accent-1);
	border-top: 4px solid var(--accent-1);
	box-shadow: 2px 2px #aaa;
	margin: 4px 0 0;
	padding: 5px;
}

figcaption p {
	margin: 0;
	padding: 0 0 10px;
}

figcaption p:empty {
	display: none;
}

figcaption p.unit {
	font-style: italic;
}

figcaption p.date {
	font-weight: bold;
}

span[lang] {
	font-style: italic;
}

#lightbox {
	align-items: center;
	background-color: rgba(0, 0, 0, 0.75);
	display: none;
	height: 100%;
	justify-content: center;
	left: 0;
	position: fixed;
	text-align: center;
	top: 0;
	width: 100%;
}

#lightbox img {
	border: 25px solid var(--photo-border);
	max-height: calc(100% - 90px);
	max-width: calc(100% - 90px);
}