body {
	font-family: 'Crimson Text', serif;
	color: #222;
	background-color: #fff;
	font-size: 1.3em;
	line-height: 1.3em;
	
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Libre Baskerville', serif;
	margin: 1em 0;
}

h2 {font-size: 3em;}
h3 {font-size: 1.5em;}
h4 {font-size: 0.75em;}

a {text-decoration: none; color: #222;}

.center {
	margin: 15px auto;
	display: inline-block;
}

#header {
	background-color: #222;
	color: #fff;
	text-align: center;
	padding: 1.5em 0;
	
	position: fixed;
	width: 100%;
	top: 0px;
	
	z-index: 998;
}
#header h3, h4 {margin: 0.2em 0;}
div.fakeheader {height: 8em;}

#footer {
	text-align: center;
	padding: 30px;
}

div.page {
	width: 800px;
	margin: 0 auto;
}

#prevproject, #nextproject {
	display: none;
	position: fixed;
	top: 50%;
	z-index: 999;
	
	padding: 15px;
}
#prevproject p, #nextproject p {margin: 0px;}
#prevproject {left: 0px;}
#nextproject {right: 0px; text-align: right;}

a.decorated, article.portfolio-entry a {
	text-decoration: underline;
	text-decoration-color: #d36;
	text-decoration-style: dashed;
}

p.caption {
	margin-top: -15px;
	font-size: 0.8em;
	line-height: 1.1em;
	color: #777;
}

span.spoiler {
	background-color: #222;
}

span.spoiler:hover {
	background-color: inherit;
}

article.portfolio-entry img {
	width: 100%;
	height: 400px;
	
	margin: 15px 0;
	object-fit: cover;
}

img.full {height: initial !important;}

div.split-two {
	display: flex;
	justify-content: space-between;
}

div.split-two img {
	width: 48%;
}

div.index {
	margin: 0 auto;
	width: 1200px;
}

div.index a.index-text {
	width: 792px;
	height: 80px;
	
	background-color: #fff;
	color: #222;
	border: 4px dashed #d36;
	
	display: flex;
	justify-content: center;
	align-items: center;
}

div.index a.index-text:hover {
	background-color: #d36;
	color: #fff;
}

div.index a.index-text p {
	
}

div.indexcategory {
	display: flex;
	flex-wrap: wrap;
	width: 1200px;
}

@media (max-width: 1200px) {
	div.indexcategory {
		width: 800px;
	}
	
	div.index {
		width: 800px;
	}
}

div.indexcategory a {
	display: block;
	margin: 5px 5px;
	width: 380px;
	height: 250px;
}

div.indexcategory a img {
	width: 380px;
	height: 250px;
	object-fit: cover;
}

div.indexcategory a h2 {
	display: inline;
	padding: 10px;
	position: relative;
	top: -80px;
	left: 15px;
	
	text-align: center;
	font-size: 1.5em;
	
	background-color: #222;
	color: #fff;
	
	opacity: 1;
}

div.index a:hover h2 {opacity: 1;}

@media screen and (max-width: 1200px) {
	#prevproject, #nextproject {
		top: 8px;
		color: #fff;
	}
}