
#warp {
	width: 90%;
	max-width: 600px;

	background: #ffffff;
	margin: 30px auto;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 0 3px 15px rgba(0, 0, 0, 0.75);
	-webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.75);
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}
ul#gallery-container {
	position: relative;
	width: 100%;
	max-width: 600px;
	max-height: 500px;
	padding: 52% 0 10px;
	margin: 0;
	text-align: center;
	display: block;
}
li.gallery-item {
	display: inline-block;
	width: 11%;
	cursor: pointer;
	*display: inline;
				
}
img.gallery-preview {
	background: white;
	margin-top: 100px;
	margin: 100;
	padding: 2% 2% 2%;
	*padding: 2px 2px 10px;
	position: relative;
	top: 0;
	width: 85%;
	height: auto;
	max-height: 45px;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	overflow: hidden;
	-webkit-transition: all 0.3s ease-out 0.2s;
	-moz-transition: all 0.3s ease-out 0.2s;
	-o-transition: all 0.3s ease-out 0.2s;
	transition: all 0.3s ease-out 0.2s;
}
ul#gallery-container:hover li img.gallery-preview {
	opacity: 0.8;
	-webkit-filter: blur(0.3px) grayscale(0.7);
}
ul#gallery-container:hover li:hover img.gallery-preview {
	opacity: 1;
	-webkit-filter: blur(0px) grayscale(0);
}

input.gallery-selector:checked ~ label.gallery-label > img.gallery-preview,
ul#gallery-container:hover li:hover img.gallery-preview:hover {
	z-index: 5;
	box-shadow: 0 4px 5px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.75);
	-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.75);
	-webkit-transform: scale(1.25);
	-moz-transform: scale(1.25);
	-o-transform: scale(1.25);
	transform: scale(1.25);

	-webkit-transform-origin: center center;
	-moz-transform-origin: center center;
	-o-transform-origin: center center;
	transform-origin: center center;
	-webkit-transition: all 0.5s ease-out;
	-moz-transition: all 0.5s ease-out;
	-o-transition: all 0.5s ease-out;
	transition: all 0.5s ease-out;

}
ul#gallery-container:hover li:hover img.gallery-preview:hover {
	z-index: 20;
}
input.gallery-selector:checked ~ label.gallery-label > img.gallery-preview {
	background: #333000;

}

img.gallery-fullsize {
	position: absolute;
	top: 0px;
	left: 0px;
	display: block;
	width: 100%;
	height: auto;
	z-index: -1;
	opacity: 0;
	-webkit-transform: scale(1.05);
	-moz-transform: scale(1.05);
	-o-transform: scale(1.05);
	transform: scale(1.05);
	-webkit-transform-origin: center center;
	-moz-transform-origin: center center;
	-o-transform-origin: center center;
	transform-origin: center center;
	-webkit-transition: all 0.4s ease-out;
	-moz-transition: all 0.4s ease-out;
	-o-transition: all 0.4s ease-out;
	transition: all 0.4s ease-out;
}
ul#gallery-container:hover li.gallery-item:active img.gallery-fullsize {
	z-index: 50;
	opacity: 0.75;
	-webkit-filter: blur(10px) grayscale(1);
	border-radius: 10%;
	-webkit-border-radius: 10%;
	-moz-border-radius: 10%;
	-webkit-transform-origin: center center;
	-moz-transform-origin: center center;
	-o-transform-origin: center center;
	transform-origin: center center;
	-webkit-transition: all 0.3s ease-out 0.2s;
	-moz-transition: all 0.3s ease-out 0.2s;
	-o-transition: all 0.3s ease-out 0.2s;
	transition: all 0.3s ease-out 0.2s;

}
ul#gallery-container:hover
	li:hover
	input.gallery-selector:checked
	~ img.gallery-fullsize {
	z-index: 10;
	opacity: 1;
	border-radius: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
}

input.gallery-selector:checked ~ img.gallery-fullsize {
	display: block;
	opacity: 1;
	z-index: 10;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);

	-webkit-transform-origin: center center;
	-moz-transform-origin: center center;
	-o-transform-origin: center center;
	transform-origin: center center;
	-webkit-transition: all 0.2s ease-in 0.2s;
	-moz-transition: all 0.2s ease-in 0.2s;
	-o-transition: all 0.2s ease-in 0.2s;
	transition: all 0.2s ease-in 0.2s;
	
}
input.gallery-selector {
	display: none;
}
label.gallery-label {
	cursor: pointer;
			
}



.text-overlay {
  position: absolute; /* Absolute Positionierung */
  top: 0; /* Von oben anfangen */
  left: 0; /* Von links anfangen */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5); /* Optionale Hintergrundfarbe */
  color: white; /* Optionale Textfarbe */
  text-align: center; /* Text zentrieren */
}

.text-overlay p {
  margin: 0;
}