




/* Gallery viewer CSS */


#gallery .prevbtn, #gallery .nextbtn, #gallery .filmstrip, #gallery .info {
	-display: none;
}



#gallery, #gallery .shade {
	position: fixed;
	left: 0; right: 0;
	top: 0; bottom: 0;
}

#gallery {
	display: none;
	z-index: 100;
}

#gallery .shade {
	z-index: 110;
	background: #000;
	opacity: 0.75;
}

#gallery .frame {
	position: fixed;
	z-index: 120;
	left: 0; right: 0;
	top: 0; bottom: 0;
	margin: 5%; padding: 5%;
	
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	
	background: rgb(63,63,63);
	border-radius: 1vw;
}

#gallery .slide {
	height: 100%;
}

#gallery .frame.showthumbs .slide {
	height: 80%;
}

#gallery .item {
	position: relative;
	height: 100%;
	margin: 0 5em;
}

#gallery .image {
	height: 100%;
	text-align: center;
}

#gallery .image > img.landscape {
	width: 100%;
	height: auto;
}
#gallery .image > img.portrait {
	width: auto;
	height: 100%;
}

#gallery .info {
	position: absolute;
	left: 0; right: 0;
	bottom: 0;
	height: 3em;
	background: rgba(0,0,0,0.75);
}

#gallery .prevbtn {
	float: left;
}

#gallery .nextbtn {
	float: right;
}

#gallery .prevbtn, #gallery .nextbtn {
	height: 100%;
	border-radius: 0.5vmin;
}

#gallery .prevbtn:hover, #gallery .nextbtn:hover {
	background: rgba(255,255,255,0.333);
}

#gallery .prevbtn > a, #gallery .nextbtn > a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	font-size: 4vmin;
	padding: 0 1vw;
}

#gallery .prevbtn > a > *, #gallery .nextbtn > a > * {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

#gallery .closebtn {
	position: absolute;
	top: 0; right: 0;
}

#gallery .closebtn:hover{
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	-o-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

#gallery .closebtn > a {
	display: block;
	width: 100%;
	height: 100%;
	padding: 1vmin;
	text-decoration: none;
	font-variant: small-caps;
	text-transform: lowercase;
	color: inherit;
	font-size: 2vmin;
}

#gallery .filmstrip {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	height: 20%;
	margin-top: 1em; padding-top: 1em;
	border-top: 1px solid white;
}



/*------------------------
|    THUMBNAIL ALBUMS    |
------------------------*/

.album {
	max-height: 290px;
	text-align: left;
	line-height: 1.5;
	margin: 0 auto;
	text-align: center;
	
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	}
.album.compact {
	white-space: nowrap;
	line-height: 1;
	}

.album * {
	-line-height: 120px;
	}

.album a.thumb {
	display: inline-block;
	float: none;
	height: 96px; width: 96px;
	padding: 13px;
	margin-right: 1em;
	margin-bottom: 1em;
	background-color: #bbb;
	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, 0);
	-moz-transition: border-color 0.3s, box-shadow 0.6s;
	-webkit-transition: border-color 0.3s, box-shadow 0.6s;
	-o-transition: border-color 0.3s, box-shadow 0.6s;
	transition: border-color 0.3s, box-shadow 0.6s;
	}
.album::last-line a.thumb {
	-margin-bottom: 0;
}
.album.compact a.thumb {
	margin-bottom: 0;
}
.album a.thumb:hover {
	border-color: rgba(255, 255, 255, 1);
	box-shadow: inset 0 0 4px rgba(0,0,0,0.5);
	}
.album a.thumb > img {
	border-radius: 4px;
	border: none;
	}

