html, body {
	height: 100%;
	margin: 0px; 
    padding: 0px; 
}
body {
    font-family: Arial, sans-serif; 
    font-size: 14px;
	line-height: 1.5;
    color: #333; 
    background-color: #fff;
}
a {
	color: #333;
}
a, div {
    text-decoration: none;
}
a:hover {
	color: #999;
}
#main {
	height: 100%;
}
#container {
	display: flex;
	align-items: center;
	height: calc(100% - 95px);
	padding-left: 50px;
}
#nav {
	width: 120px;
	min-width: 120px;
	max-width: 120px;
}
#content {
	display: flex;
	align-items: center;
	height: 100%;
	max-width: 90%;
}
.nav {
	position: relative;
    clear: both;
}
.navIcon {
    float: left;
	font-size: 16px;
	font-weight: bold;
	color: #000;
    margin-right: 10px;
	cursor: pointer;
}
.nav a {
    display: block;
}
.nav label {
    display: none;
    padding-top: 1px;
}
.navIcon.mouseover + label {
	display: block;
}
div[id*="text-label"] {
	display: none;
	padding-right: 5%;
}
div[id*="text-label"] p {
	max-height: 80vh;
	overflow-y: auto;
	margin: 0;
	padding: 0;
}
#thumbs {
	max-height: 80vh;
	overflow-y: auto;
}
#dia {
	background-color: #ccc;
    background-size: 100%;
}
#diashow {
	display: none;
}
.thumbRow {
	margin: 10px 0;
}
.thumb {
	float: left;
	margin: 0 10px 10px 0;
	cursor: pointer;
}
.thumbRow::after {
	content: '';
	clear: left;
	display: block;
	height: 0;
}
#slider {
	display: table;
}
#dia, #prev, #next {
	display: table-cell;
	cursor: pointer;
}
#prev, #next {
	height: 100%;
	font-size: 30px;
	font-weight: bold;
	vertical-align: middle;
	padding: 0 10px;
	background: #fff;
}
#dia img {
	width: 900px;
	display: block;
}
#title {
	margin: 5px 0 0 30px;
}
footer {
	width: 100%;
    margin: 15px 0;
}
#footer-inner {
    padding: 0 20px 0 50px;
}
@media only screen and (max-width: 1140px) {
	#dia img {
		max-width: 100%;
		max-height: calc(100vh - 80px);
	}
}
@media only screen and (min-width: 1081px) {
	.navIcon:hover + label {
		display: block;
	}
}
@media only screen and (max-width: 1020px) {
	#diashow {
		width: auto;
	}
}
@media only screen and (max-width: 740px) {
	#container {
		height: calc(100% - 90px);
		padding-left: 25px;
	}
	#thumbs, div[id*="text-label"] p {
		max-height: calc(100vh - 150px);
	}
	#footer-inner {
		font-size: 12px;
		padding: 0 20px;
	}
}
@media only screen and (max-width: 560px) {
	#container {
		flex-direction: column;
		height: calc(100% - 135px);
		padding: 15px 20px 0 20px;
	}
	#nav {
		width: 100%;
		max-width: 100%;
	}
	#content {
		max-width: 100%;	
		height: 100%;
	}
	div[id*="text-label"] {
		padding-right: 0;
	}
	#thumbs, div[id*="text-label"] p {
		max-height: calc(100vh - 330px);
	}
	#diashow {
		padding-left: 0;
		margin: 0 -30px;
	}
}



