/* Loading Image */
/*div.gallerie-loading {*/
	/*position: absolute;*/
	/*top: 0px;*/
	/*bottom: 0px;*/
	/*left: 0px;*/
	/*right: 0px;*/
	/*width: 126px;*/
	/*height: 22px;*/
	/*margin: auto;*/
	/*z-index: 10000;*/
	/*background: url("loading.gif");*/
/*}*/

#gallery {
	margin: auto;
}

#gallery > a {
	margin: 15px;
}

#gallery > a img {
	border: 2px solid #fff;
	border-radius: 5px;
	opacity: 0.9;
	transition: all 500ms;
	-webkit-transition: all 500ms;
	-moz-transition: all 500ms;
	-ms-transition: all 500ms;
	-o-transition: all 500ms;
	z-index: 1;
	position: relative;
}

/* Image Index and Title Text */
.gallerie-text {
	max-width: 60%;
	min-width: 200px;
	margin: 0px 10px;
	vertical-align: bottom;
}

.gallerie-text div {
	width: 100%;
	text-overflow: ellipsis;
}

/* Image Title Text */
.gallerie-title {
	
}

/* Image Index */
.gallerie-index {
	
}

/* Gallerie Controls */
.gallerie-control {
	font-size: 30px;
	min-width: 40px;
	min-height: 40px;
	margin: 0px;
	border: 2px solid transparent;
	vertical-align: top;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	/*padding: 7px;*/
	color: #fff;
	border-radius: 50%;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

	transition: all 500ms;
		-webkit-transition: all 500ms;
		-moz-transition: all 500ms;
		-ms-transition: all 500ms;
		-o-transition: all 500ms;
}

.gallerie-control:hover {
	background: #222;
	border: 2px solid white;
	border-radius: 100%;
	cursor: pointer;
}

.gallerie-control-previous{
	
}

.gallerie-control-next {
}

/* Gallery Overlay */
.gallerie-overlay {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background-color:rgba(0,0,0,0.9);
	z-index: 1000;
}

/* Image Box Container */
.gallerie-imagebox {
	width: 100%;
	height: 50% !important;
	position: relative;
	top: 0px;
	left: 0px;
	margin: 20px 0px;
}

.gallerie-imagebox img {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	margin: auto;
	border: 4px solid white;
	border-radius: 5px;
	
	transition: all 500ms;
		-webkit-transition: all 500ms;
		-moz-transition: all 500ms;
		-ms-transition: all 500ms;
		-o-transition: all 500ms;
}

.gallerie-imagebox:after { 
   content: "."; 
   visibility: hidden; 
   display: block; 
   height: 0; 
   clear: both;
}

/* Caption Box Container */
.gallerie-captionbox {
	color: white;
	width: 100%;
	position: relative;
	top: 0px;
	left: 0px;
	text-align: center;
	padding: 5px 0px 30px 0px;
}

.gallerie-captionbox:after { 
   content: "."; 
   visibility: hidden; 
   display: block; 
   height: 0; 
   clear: both;
}

.gallerie-captionbox > div {
	display: inline-block;
}

/* Thumb Box Container */
.gallerie-thumbbox {
	height: 100px;
	min-width: 100%;
	position: relative;
	top: 0px;
	left: 0px;
	margin: 0px auto;
	text-align: center;
	float: left;
	white-space: nowrap;
}

.gallerie-thumbbox ul {
	position: relative;
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	left: 0px;
}

.gallerie-thumbbox li {
	width: 177px;
	height: 100px;
	display: inline-block;
	text-align: center;
	margin: 0px 10px 0px 10px;
	cursor: pointer;
}

.gallerie-thumbbox img {
	max-width: 100%;
	max-height: 100%;
	border: 2px solid #fff;
	border-radius: 5px;
	opacity: 0.60;
	vertical-align: middle;
}

.gallerie-thumbbox-hover img {
	opacity: 1.0;
	border-color: #0ff;
}

.gallerie-thumbbox-selected img {
	opacity: 1.0;
	border-color: #ff0;
}


.gallerie-imagebox img {
	transition: all 500ms;
	-webkit-transition: all 500ms;
	-moz-transition: all 500ms;
	-ms-transition: all 500ms;
	-o-transition: all 500ms;
}

@media (min-width: 800px) and (max-width: 900px) , screen and (max-height: 420px) {
	.gallerie-imagebox {
		height: 30% !important;
	}
}

@media (min-width: 600px) and (max-width: 900px) , screen and (max-height: 414px) {
	.gallerie-thumbbox li {
		width: 120px;
	}
}

@media (min-width: 800px) and (min-height: 771px) {
	.gallerie-imagebox {
		height: 70% !important;
	}
}

@media (min-width: 800px) and (min-height: 650px) and (max-height: 770px) {
	.gallerie-imagebox {
		height: 60% !important;
	}
}

@media (min-width: 560px) and (max-width: 570px) , screen and (max-height: 320px) {
	.gallerie-thumbbox li {
		width: 100px;
	}

	.gallerie-imagebox img {
		min-width: 230px;
		height: 130px !important;
	}

	.gallerie-imagebox {
		height: 35% !important;
	}

	.gallerie-captionbox {
		padding: 0;
	}
}

@media (min-width: 1000px) and (max-width: 1024px) and (min-height: 1360px)  and (max-height: 1366px) {
	.gallerie-imagebox {
		height: 36% !important;
	}

	.gallerie-imagebox img {
		max-height: 500px;
	}
}

@media (min-width: 1000px) and (max-width: 1024px) and (min-height: 760px)  and (max-height: 768px) {
	.gallerie-imagebox {
		height: 60% !important;
	}

	.gallerie-imagebox img {
		max-height: 500px;
	}
}

.gallerie-close {
	float: right;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 7px;
	color: #fff;
	border: 0;
	border-radius: 50%;
	background: hsla(0,0%,100%,.09);
	margin: 2% 2% 0 0;
}

.gallerie-close :hover  {
	cursor: pointer;
	border: 2px solid white;
	border-radius: 100%;
	background: #222;
}