:root {
	--link_hover: DeepSkyBlue;
	--gallery_container_color: White;
	--gallery_label_color: initial;
	--top_color: AntiqueWhite;
	--right_column_color: rgba(225, 225, 225, 0.3);
	--inner_border: 1px solid lightgray;
	
	--border-radius: 5px;
	--border-top-radius: 5px 5px 0px 0px;
	--nav_background: rgb(225, 225, 220); /* rgb(225, 225, 220);*/
	--nav_button_background: BurlyWood;
}
*{ 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	min-height: 0px;
	min-width: 0px;
}
img {
	min-height: 0px;
	min-width: 0px;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}
title{
	display: none
}
html{ 
	background-color: rgb(205, 205, 200);
	font-family: Verdana;
}
body {
	min-height: 100vh;
	width: 100%;
	background-color: rgb(245, 245, 245);
	display: grid;
	grid-gap: 5px;
	padding: 5px;
	grid-template-rows: 40px 1fr;
	grid-template-columns: 1fr 6fr 1fr;
	grid-template-areas: 
	". nav ."
	". content .";
	overflow: auto;
}
body.ScreenHeight {
	max-height: 100vh;
}
@media (max-aspect-ratio: 5/3){
	body {
		grid-template-rows: 50px auto;
		grid-template-columns: 1fr;
		grid-template-areas: 
		"nav"
		"content";
	}
}
#nav, #content {
	padding: 0.4em;
	background-color: var(--nav_background);
	border-radius: 5px;
}
#nav {
	grid-area: nav;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	grid-gap: 5px;
}
#nav > a {
	display: flex;
	color: Black;
	background-color: var(--nav_button_background);
	border: 1px solid black;
	border-radius: 2px;
	text-decoration: none;
	justify-content: center;
	align-items: center;
	font-size: 1em;
}
#nav > a#currentpage{
	font-weight: bold;
}
#nav > a:hover {
	color: var(--link_hover);
}
#content {
	grid-area: content;
	height: auto;
	max-height: 100%;
	width: 100%;
	display: grid;
	grid-gap: 5px;
	object-fit: contain;
	text-align: center;
	justify-items: stretch;
	background-color: rgb(225, 225, 220);
}
#content.partial {
	max-height: 70%;
}