#abdunkeln {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0, 0.8);
	display: none;
	z-index: 3000;
}

.lightboxdiv {
	top: 0;
	left: 0;
	width: 80%;
	height:80%;
	margin-left: auto;
	margin-right: auto;
	padding: 80px 10% 0 10%;
	position: fixed;
	z-index: 3001;
	display: block;
	text-align: center;
	z-index:3001;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0.0;
	-khtml-opacity: 0.0;
	opacity: 0.0;
	transition: all 2.0s ease-in-out;
}

.lightboxdiv.show {
	z-index: 3002;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	-moz-opacity: 1.0;
	-khtml-opacity: 1.0;
	opacity: 1.0;
}

.lightboxbild {
	max-height: 95%;
	max-width: 95%;
	transform: scale(0.6);
	opacity: 0;
	margin-top: 0%;
	position: relative;
	border: solid 4px #FFFFFF;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	transition: all 0.5s ease-in-out;
}

.lightboxdiv.show .lightboxbild {
	transform: scale(1);
	opacity: 1;
}

.lightboxdiv p {
	text-align: center;
	color: #FFFFFF;
}

.lightboxswitch {
	width: 40px;
	height: 40px;
	top: 20px;
	z-index: 4000;
	display: block;
	opacity: 1;
	transition: all 0.5s ease-in-out;
	position: fixed;
	background-position: center;
	background-size: contain;
	cursor: pointer;
}

.lightboxplay {
	background-image: url(play.png);
	left: calc(50vw - 20px);
}

.lightboxplay:hover {
	background-image: url(play_hover.png);
}

.lightboxstop {
	background-image: url(stop.png);
	left: calc(50vw - 20px);
}

.lightboxstop:hover {
	background-image: url(stop_hover.png);
}

.lightboxswitchleft {
	background-image: url(lightboxswitchleft.png);
	left: calc(50vw - 120px);
}

.lightboxswitchleft:hover {
	background-image: url(lightboxswitchleft_hover.png);
}
	
.lightboxswitchright {
	background-image: url(lightboxswitchright.png);
	left: calc(50vw + 80px);
}

.lightboxswitchright:hover {
	background-image: url(lightboxswitchright_hover.png);
}

#lightboxclose {
	position: absolute;
	right: 20px;
	top: 10px;
	width: 30px;
	height: 30px;
	background-image: url('close.png');
	background-size: contain;
	background-position: center;
	display: block;
	z-index: 3003;
	cursor: pointer;
}

.galeriecontainer {
	width: 100%;
	max-width: 100%;
	height: auto;
	margin-top: 20px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 20px;
	row-gap: 20px;
	position: relative;
}

.galeriecontainer.links {
	float: left;
}

.galeriecontainer.rechts {
	float: right;
}

.galeriecontainer .fslightbox {
	flex: 1;
	min-width: calc((100% - 50px) / 6);
	/*max-width: calc((100% - 50px) / 5); */
	aspect-ratio: 1;
	display: block;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.galeriecontainer .fslightbox img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border: solid 2px white;
	transition: all 0.3s ease-in-out;
	box-sizing: border-box;
	background-size: cover;
	background-position: center;
	border-radius: 10px;
	object-fit: cover;
	object-position: center;
}

.galeriecontainer .fslightbox:hover {
	border-color: goldenrod;
}

@media only screen and (min-width: 800px) {
	
	.galeriecontainer .fslightbox {
		flex: 1;
		min-width: calc((100% - 100) / 6);
		max-width:  calc((100% - 100) / 6);
		aspect-ratio: 1;
		background-size: cover;
		background-position: center;
	}

}