body {
        margin: 0px;
}
#photoportrait {
	height: 98%;
        width: auto%;
	max-height: 98%;
}
#photolandscape {
        max-width: 100%;
	height: auto;
	width: auto;
	max-height: 93vh;
}
.landscape #photodiv {
	display: flex;
	justify-content: center;
	align-items: center;
}
.infoportrait {
	max-width: 50vw;
	padding-left: 20px;
	align-self: end;
}
.infolandscape {
	display: flex;
}
.landscape .infolandscape {
	align-items: start;
}
h1 {
        padding-bottom: 0px;
        margin-bottom: 0px;
        line-height: 0.8em;
        opacity: 1.0;
	border: 1px solid red;
}
.nav {
        background: #FFF;
	width: 100%;
}
.copyrightbox {
        top: 96%;
        font-size: 10px;
        color: #999;
        padding-bottom: 5px;
        padding-left: 5px;
        padding-right: 5px;
	background: #000;
        opacity: 0.75;
        filter: alpha(opacity=75);
}
a.copyrightlink:link, a.copyrightlink:visited {
        color: #999;
}
a.copyrightlink:hover, a.copyrightlink:active {
        color: #99F;
}
.disabled {
	color: #CCC;
}
.navelement {
	width: 33.333%;
	display: inline-block;
	text-align: center;
	white-space: nowrap;
	min-height: 40px;
	line-height: 40px;
}
#navwide {
	width: 100%;
	display: flex;
	align-content: start;
	justify-content: space-between;
}
#navnarrow {
	width: 100%;
}
#title {
	font-size: 18pt;
	font-weight: bold;
	display: inline-block;
	padding-left: 5px;
	box-sizing: border-box;
}
#navwide #title {
	width: 74%;
}
#navnarrow #title {
	width: 100%;
}
.navlinks {
	width: 25%;
	float: right;
}
#navnarrow .navlinks {
	width: 100%;
}
.portrait #main {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: start;
}
.navlinks {
	max-width: 250px;
	min-width: 50px;
}
.infoelement {
	padding-right: 10px;
	margin-top: 20px;
	box-sizing: border-box;
}
table {
	color: #888;
}
td .exifvalue {
	padding-left: 10px;
}
.nextpagelink {
	text-align: center;
	font-size: 24pt;
	font-weight: bold;
}
@media only screen and (min-width: 899px) {
/* wide screens greater than 900px */
	.portrait #navwide {
		display: none;
	}
	.landscape #navnarrow {
		display: none;
	}
	.landscape .infoelement {
		width: 50%;
		justify-content: stretch;
		display: flex;
	}
	.portrait #map {
		width: 100%;
	}
}
@media only screen and (min-width: 701px) and (max-width: 900px) {
/* medium screens */
	.portrait #navwide {
		display: none;
	}
	.landscape #navnarrow {
		display: none;
	}
	#map {
		width: 100%;
	}
	.landscape .infoelement {
		width: 95%;
		padding: 10px;
		margin-top: 0px;
	}
	.navlinks {
		width: 250px;
		min-width: 250px;
	}
}
@media only screen and (max-width: 700px) {
/* small screens */
	.portrait #navnarrow {
		display: none;
	}
	.landscape #navnarrow {
		display: none;
	}
	#navwide {
		width: auto;
		flex-direction: column;
	}
	#navwide #title {
		width: 100%;
		display: block;
	}
	#navwide .navelement {
		width: 33.333%;
	}
	.navlinks {
		order: 1;
		width: 100%;
		max-width: none;
	}
	#title {
		order: 2;
	}
	#main {
		height: auto;
	}
	.portrait #main {
		display: block;
	}
	.infolandscape {
		width: 100%;
		display: block; /* turn off flex */
	}
	.infoportrait {
		width: 100%;
		max-width: 100%;
		padding-left: 0px;
	}
	#map {
		width: 100%;
		height: 250px;
	}
	.infoelement {
		width: 95%;
		padding: 10px;
	}
	#photoportrait {
		height: auto;
		max-width: 100%;
	}
}
