
/************************************************** GALLERY PAGE STYLING
*/

html {
	-webkit-text-size-adjust: 100%;
}

a {
	color: rgb(220, 220, 220);
}

body.gallery {
	margin: 0 1em 1em;
	font-size: 18px;
	letter-spacing: 0.5px;
	background-color: rgba(64, 64, 64, 1.0);
	color: rgb(220, 220, 220);
}

body.gallery > #page-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	/*bottom: 0;*/
	/*min-width: 456px;*/
}

.gallery #throbber { 
	/* display: none; */
	position: fixed;
	width: 100%;
	bottom: 1em;
	z-index: 99;
	text-align: center;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.8);
}
.gallery #throbber > img { padding: 1em 0; }

.gallery footer { margin: 1em; }
.gallery footer > a+a { margin-left: 2em; }

.gallery .gallery-link {
	display: inline-block;
	position: relative;
	width: 25em;
	height: 16em;
	margin: 1em;
	cursor: pointer;
}

.gallery .gallery-link .keyphoto-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.gallery .gallery-link .keyphoto-container img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
}
.gallery .gallery-link .keyphoto-container.portrait-middle img { top: calc(-200%/3); }
.gallery .gallery-link .keyphoto-container.portrait-bottom img { bottom: 0; top: auto; }

.gallery .gallery-link .keyphoto-container.portrait img,
.gallery .gallery-link .keyphoto-container.portrait-top img { }
.gallery .gallery-link .keyphoto-container.landscape { }

.gallery .gallery-link .title-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 0 0.5em;
	background-color: rgba(0, 0, 0, 0.9);
}

.gallery .gallery-link .gallery-title {
	margin-bottom: 0;
}

.gallery .gallery-link .gallery-subtitle {
	margin-top: 0.25em;
	font-size: 80%;
}



.gallery .album-title.title-container {
	padding: 0 1em;
}

.gallery .album-title.title-container .gallery-title {
	font-size: 135%;
	font-weight: bold;
	margin-bottom: 0;
}

.gallery .album-title.title-container .gallery-subtitle {
	font-weight: bold;
}


.gallery .album-thumbnails .thumbnail-container {
	display: inline-block;
	width: 11.1em;
	height: 11.1em;
	margin: 1em;
	text-align: center;
	vertical-align: middle;
	-webkit-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.gallery .album-thumbnails .thumbnail-container img {
	position: relative;
	max-width: calc(100% - 8px);
	max-height: calc(100% - 8px);
	border: 4px solid white;
	cursor: pointer;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.gallery #photo-window {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	padding: 1em;
	width: calc(100% - 2em);
	height: calc(100% - 2em);
	background-color: rgba(0, 0, 0, 0.8);
	color: rgb(0,0,0);
	z-index: 99;
}

.gallery #photo-window #photo-display { 
	background-color: rgb(255,255,255);
	margin: 0 auto;
	/* WIDTH and HEIGHT are set by scripting */ 
}

.gallery #photo-window #photo-browser { height: 4em; }
.gallery #photo-window #photo-browser span.photo-browse {
	display: inline-block;
	width: 50%;
	font-size: 3em;
	padding: 0;
	cursor: pointer;
}
.gallery #photo-window #photo-browser span.browse-prev { text-align: right; }
.gallery #photo-window #photo-browser span.browse-next { text-align: left; }

.gallery #photo-window #photo-container { 
	margin: 0 auto;
	text-align: center; 
	/* WIDTH and HEIGHT are set by scripting */ 
}
.gallery #photo-window img#photo {
	/* WIDTH and HEIGHT are set by scripting */ 
}
.gallery #photo-window img#photo.blurred {
	-webkit-filter: blur(5px);
	filter: blur(15px);
}

.gallery #photo-window #photo-caption { 
	padding: 0.5em 2em;
	height: 4em; 
}


/**********************************************************************  MOBILE STYLING
*/

@media screen and (max-width: 980px){
	body.gallery { font-size: 12px; }
	.gallery .album-thumbnails .thumbnail-container img { 
		max-width: calc(100% - 6px);
		max-height: calc(100% - 6px);
		border: 3px solid white; 
	}
}


@media screen and (max-width: 650px){

}
