@media screen {

.contentgalerie {
	display: table-cell;
	width: 100%;
	line-height: 1;
	margin: 0.5rem;
	padding: 0.5rem 0 1rem 0 ;
}

.contentgalerie_headline {
	display: block;
	width: 100%;
	font-weight: bold;
	color: black;
	background-color: #E7E9EA;
	border-top-left-radius: 0.2rem;
	border-top-right-radius: 0.2rem;
	padding: 0.1rem 0.4rem;
	margin: 0;
	line-height: 1.75;
}


.contentgalerie_vorschau {
	position: relative;
	background-color: #f5f5f5;
	width: 100%;
	margin-left: 0;
	float: left;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	line-height: 1;
}
.contentgalerie_item {
	flex: 0 1 20%;
	overflow: hidden;
	float: left;
	border: 3px solid #ecedee;
	margin: 0;
}
.contentgalerie_item:nth-of-type(n+6) {
	display: none;
}
.contentgalerie_item:hover {
	border: 3px solid #7a003f;
}
.contentgalerie_item a {
	display: flex;
	justify-content: center;
	overflow: hidden;
	height: 100px;
	height: 10vh;
}
.contentgalerie_item a img {
	display: block;
	align-self: center;
	max-width: 100%;
	width: 100%;
	height: auto;
}

.contentgalerie_plus,
.contentgalerie_plus + label {
	position: absolute;
	left: calc(80% - 19px);
	top: calc(5vh - 12px);
	width: 38px;
	height: 38px;
	background: transparent;
}
.contentgalerie_plus  {
	display: none;
}
.contentgalerie_plus + label:before {
	content:url(../img/lupe_plus.png); 
	background: transparent;
}
.contentgalerie_plus:checked ~ .contentgalerie_item {
	display: block;
}
.contentgalerie_plus:checked + label:before {
	content:url(../img/lupe_minus.png);
	background: transparent;
}

.contentgalerie_lightbox {
	display: none;
	z-index: 9999;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
	align-items: center;
	background: rgba(0,0,0,0.9);
	margin: 0;
	padding: 0;
}
.contentgalerie_lightbox:target {
	display: flex;
}

.contentgalerie_box {
	background-color: white;
	padding: 0.2rem;
	padding-bottom: 0;	
}
.contentgalerie_box > a {
	color: transparent;
	font-size: 0;
}
.contentgalerie_box a img {
	width: 100%;
	max-width: 980px;
	height: auto;
}
.contentgalerie_box_caption {
	display: flex;
	justify-content: space-between;
	background-color: white;
	width: 100%;
	line-height: 1.75rem;
	padding: 0.1rem;
}
.contentgalerie_box_prev,
.contentgalerie_box_next,
.contentgalerie_box_titel {
	line-height: 1.75rem;
	padding: 0.2rem;
}
.contentgalerie_box_prev span,
.contentgalerie_box_next span,
.contentgalerie_box_titel span {
	color: #666;
}
.pfeil {
	font-size: 1rem;
	line-height: 1rem;
	color: #666;
}
.contentgalerie_box_prev:hover span,
.contentgalerie_box_next:hover span,
.contentgalerie_box_prev:hover .pfeil,
.contentgalerie_box_next:hover .pfeil {
	color: #7A003F;
}

}

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

.contentgalerie_item {
	-webkit-flex: 0 1 25%;
	-ms-flex:  1 25%;
	flex: 0 1 25%;
}
.contentgalerie_item:nth-of-type(n+5) {
	display: none;
}
.contentgalerie_plus,
.contentgalerie_plus + label {
	left: calc(75% - 19px);
}

}

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

.contentgalerie_item {
	-webkit-flex: 0 1 33%;
	-ms-flex:  1 33%;
	flex: 0 1 33.333333%;
}
.contentgalerie_item:nth-of-type(n+4) {
	display: none;
}
.contentgalerie_plus,
.contentgalerie_plus + label {
	left: calc(66.666666% - 19px);
}

.contentgalerie_box_caption,
.contentgalerie_box_prev,
.contentgalerie_box_next,
.contentgalerie_box_titel {
	line-height: 1.5rem;
}
.contentgalerie_box_prev,
.contentgalerie_box_next,
.contentgalerie_box_titel {
	padding: 0.15rem;
}

.bildtitel {
	text-overflow: -o-ellipsis-lastline;
}
.bildzaehler {
	display: none;
}

}

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

.contentgalerie_item {
	-webkit-flex: 0 1 50%;
	-ms-flex:  1 50%;
	flex: 0 1 50%;
}
.contentgalerie_item:nth-of-type(n+3) {
	display: none;
}
.contentgalerie_plus,
.contentgalerie_plus + label {
	left: calc(50% - 19px);
}

.contentgalerie_box_caption,
.contentgalerie_box_prev,
.contentgalerie_box_next,
.contentgalerie_box_titel {
	line-height: 1.25rem;
	padding: 0.1rem;
}

.back_prev {
	display: none;
}

}



