@charset "UTF-8";

#photos {
	padding: 0.5em;
}

div.thumb {
	background-repeat: no-repeat;
	background-position: center center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	width: 14em;
	height: 14em;
	padding: 3px;
	cursor: pointer;
	display: inline-block;
	margin: 0.5em;
}

div.overlay {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, .7);

	filter:alpha(opacity=100);
	-moz-opacity:1;
	-khtml-opacity:1;
	opacity:1;

	display: flex;
	align-items: center;
	justify-content: center;

	z-index: 10000;
}
div.overlay.hidden {
	filter:alpha(opacity=0);
	-moz-opacity:0;
	-khtml-opacity:0;
	opacity:0;
}
div.overlay .close {
	position: fixed;
	top: 0.5em;
	right: 0.5em;
	width: 2em;
	height: 2em;
	background-image: url(../img/close.png);
	background-size: 60% 60%;
	background-repeat: no-repeat;
	background-position: center center;
	cursor: pointer;
}
div.overlay img {
	max-width: 90%;
	max-height: 90%;
	width: auto;
	height: auto;
	box-shadow: 0px 0px 15px #222;
	border-radius: 5px;

	filter:alpha(opacity=100);
	-moz-opacity:1;
	-khtml-opacity:1;
	opacity:1;
}
div.overlay img.hidden {
	filter:alpha(opacity=0);
	-moz-opacity:0;
	-khtml-opacity:0;
	opacity:0;
}

div.overlay .imgHolder {
	position: fixed;
	box-sizing: border-box;
	border-radius: 5px;
	overflow: hidden;

	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center center;
}
div.overlay .imgHolder.hidden {
	filter:alpha(opacity=0);
	-moz-opacity:0;
	-khtml-opacity:0;
	opacity:0;
}
div.overlay .imgHolder.showInfo {
	background-size: 105%;

	filter: blur(5px);
	-webkit-filter: blur(5px);
	-moz-filter: blur(5px);
	-o-filter: blur(5px);
	-ms-filter: blur(5px);
	filter: url(#blur);
	filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='5');
}

div.info {
	position: fixed;
	color: #333;
	padding: 3em;
	text-align: center;
	box-sizing: border-box;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	border-radius: 5px;

	background: rgb(255, 255, 255);
    background: rgba(255, 255, 255, .7);

	filter:alpha(opacity=0);
	-moz-opacity:0;
	-khtml-opacity:0;
	opacity:0;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
div.info.showInfo {
	filter:alpha(opacity=100);
	-moz-opacity:1;
	-khtml-opacity:1;
	opacity:1;
}
div.info div.profile {
	display: block;
	width: 8em;
	height: 8em;
	margin-bottom: 0.5em;
	border-radius: 100%;
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center center;
}
div.info div.username {
	color: #555;
	font-size: 1.4em;
	font-weight: 700;
	margin-bottom: 1.4em;
}
div.info div.caption {
	font-size: 1em;
	font-weight: 500;
}

div.info div.profile, div.info div.username, div.info div.caption {
	transform: translateY(14px);
}
div.info.showInfo div.profile, div.info.showInfo div.username, div.info.showInfo div.caption {
	transform: translateY(0px);
}




div.overlay .prevNext {
	position:absolute;
	height:10em;
	width:10em;
	display:block;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	top:50%;
	margin-top:-5em;

	filter:alpha(opacity=20);
	-moz-opacity:0.2;
	-khtml-opacity:0.2;
	opacity:0.2;

	-webkit-transition: opacity 0.3s ease-in-out;
	-moz-transition: opacity 0.3s ease-in-out;
	-ms-transition: opacity 0.3s ease-in-out;
	-o-transition: opacity 0.3s ease-in-out;
	transition: opacity 0.3s ease-in-out;

	text-shadow:0 0 12px #000, 0 0 10px #FFF;
	cursor:pointer;
}
div.overlay .prevNext:hover {
	filter:alpha(opacity=70);
	-moz-opacity:0.7;
	-khtml-opacity:0.7;
	opacity:0.7;
}
div.overlay .prevNext:active {
	text-shadow:0 0 16px #FFF, 0 0 10px #000;

	filter:alpha(opacity=100);
	-moz-opacity:1;
	-khtml-opacity:1;
	opacity:1;
}
.prevNext b{ display:inline-block; vertical-align:middle;}
#prevBtn b:before, #nextBtn b:after {
	line-height: .7;
	font-size:10em;
	font-weight:normal;
	color:#FFF;
	font-family:Arial;
}

#prevBtn b:before { content:'‹'; }
#nextBtn b:after  { content:'›'; }
#prevBtn { left:0;  text-align:left; }
#nextBtn { right:0; text-align:right; }




@media (max-width: 1000px) {
	div.overlay .close {
		width: 2em;
		height: 2em;
	}
}
@media (max-width: 960px) {
	div.overlay .close {
		width: 2em;
		height: 2em;
	}
}
@media (max-width: 760px) {
	div.overlay .close {
		width: 3em;
		height: 3em;
	}
}
@media (max-width: 640px) {
	div.overlay .close {
		width: 3em;
		height: 3em;
	}
}
@media (max-width: 540px) {
	div.overlay .close {
		width: 4em;
		height: 4em;
	}
}
@media (max-width: 480px) {
	div.overlay .close {
		width: 4em;
		height: 4em;
	}
}
