@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic");

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes fadein {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes moveup {
	0% { transform: translateY(3em); }
	100% { transform: translateY(0em); }
}

* {
	box-sizing: border-box;
}

body {
	background: #1C1C1C;
	color: #FFFFFF;
	font-family: "Source Sans Pro";
	font-size: 16pt;
	font-weight: 300;
	line-height: 1em;
	padding: 0;
	margin: 0;
}

a {
	text-decoration: none;
}

#loader {
	background: #272727;
	display: block;
	position: fixed;
	height: 100vh;
	width: 100vw;
	left: 0;
	top: 0;
	z-index: 7;
}

#loading {
	display: block;
	position: fixed;
	border-top: 0.25em solid rgba(255, 255, 255, 0.1);
	border-right: 0.25em solid rgba(255, 255, 255, 0.1);
	border-bottom: 0.25em solid rgba(255, 255, 255, 0.1);
	border-left: 0.25em solid #ffffff;
	border-radius: 50%;
	bottom: calc(50% - 2em);
	left: calc(50% - 2em);
	height: 2em;
	width: 2em;
	animation: spin 1s linear infinite;
}

#container {
	display: block;
	position: relative;
	height: 100%;
	width: 100%;
	padding-bottom: 3em;
}

#header {
	background: #1A1A1A;
	bottom: 0;
	left: 0;
	padding: 1em;
	display: block;
	position: fixed;
	width: 100%;
	animation: moveup 1s ease;
	z-index: 8;
}

#gallery {
	display: none;
	flex-wrap: wrap;
	position: relative;
}

.thumbnail {
	display: block;
	position: relative;
	height: calc(40vh - 2em);
	min-height: 4em;
	width: 20%;
	overflow: hidden;
	animation: fadein 2s ease;
}

@media only screen and (max-width: 1280px) {
	.thumbnail {
		width: 25%;
	}
}

@media only screen and (max-width: 960px) {
	.thumbnail {
		width: 50%;
	}
}

@media only screen and (max-width: 720px) {
	.thumbnail {
		width: 100%;
	}
}

.thumbnail:hover {
 	cursor: pointer;
}

.thumbimg {
	object-fit: cover;
	display: block;
	position: absolute;
	z-index: 4;
}

.thumbcaptionbg {
	background-color: rgba(1, 1, 1, 0.25);
	display: block;
	position: absolute;
	pointer-events: none;
	bottom: 0;
	width: 100%;
	text-align: center;
	animation: moveup 2s ease;
	z-index: 5;
}

.thumbcaptiontext {
	font-size: 16pt;
	bottom: 0;
	z-index: 6;
}

#viewerbg {
	background: rgba(0, 0, 0, 0.8);
	display: none;
	position: fixed;
	height: 100vh;
	width: 100vw;
	align-items: center;
	justify-content: center;
	z-index: 9;
}

.viewer {
	display: block;
	position: relative;
	border-radius: 8px;
	max-width: 80vw;
	max-height: 80vh;
	text-align: center;
	z-index: 10;
}