@import url('https://fonts.googleapis.com/css?family=Crimson+Text:400,400i,600,700');

* {
	font-family: 'Crimson Text', serif;
}

h1 {
	font-family: 'Crimson Text', serif;
	font-weight: 600;
	color: #990000;
	text-align: center;
}

h2 {
	font-family: 'Crimson Text', serif;
	font-weight: 600;
	color: #887744;
    margin-top: 32px;
}

h3 {
	font-family: 'Crimson Text', serif;
	font-size: 20px;
	font-weight: 600;
	color: #750000;
    margin-bottom: 4px;
}

h4 {
	font-family: 'Crimson Text', serif;
	color: #777777;
}

body {
	width: 56%;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 50px;
    font-size: 18px;
}

body .inline-header {
	font-family: 'Crimson Text', serif;
	font-weight: 600;
	color: #750000;
}

td {
	padding-right: 15px;
	text-align: left;
	vertical-align: top;
}

.title img {
	display: block;
  margin-left: auto;
  margin-right: auto;
}

nav ul {
	padding: 0;
	list-style-type: none;
	text-align: center;
}

nav li {
  display: inline-block;
	padding: 0px 20px;
	font-family: 'Crimson Text', serif;
	color: #555555;
  text-decoration: none;
  font-size: 24px;
}

nav li a {
	font-family: 'Crimson Text', serif;
  text-decoration: none;
  font-size: 24px;
}

a:link {
	color: #00689a;
	text-decoration: none;
}

a:visited {
	color: #00689a;
	text-decoration: none;
}

a:hover {
	color: #888888;
}

.align_center {
	text-align: center;
}

.thumbnail {
	display: inline-block;
	position: relative;
	width: 180px;
	height: 180px;
	overflow: hidden;
	border: 1px solid #ccc;
	margin: 5px;
}

.thumbnail img {
	position: absolute;
	left: 50%;
	top: 50%;
	height: 100%;
	width: auto;
	-webkit-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
}

.thumbnail:hover {
	border: 1px solid #888888;
}

.thumbnail img.portrait {
	width: 100%;
	height: auto;
}

.overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.7);
	visibility: hidden;
	opacity: 0;
}

.overlay:target {
	visibility: visible;
	opacity: 1;
}

.popup .close {
	position: absolute;
	top: 2%;
	right: 5%;
	font-size: 30px;
}

.popup .close:link {
	color: #bbbbbb;
	text-decoration: none;
}

.popup .close:hover {
	color: #ffffff;
	text-decoration: none;
}

.popup img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	max-height: 90%;
	max-width: 90%;
}

@media screen and (max-width:700px max-heigth:700px) {
	.popup{
		height: 70%;
		width: 70%;
	}
}

