
/* ############################################################
	050 - FOTOGALERIE (NUR ÜBERSICHT)
############################################################ */

/* Modulbox */
.mdl050-modul-box {
	position: relative;
	width: 100%;
}

/* Foto */
.mdl050-image-box {
	position: relative;
	overflow: hidden;
	width: 100%;
}
.mdl050-image-box::before {
	content: "";
	display: block;
	width: 100%;
	padding-bottom: calc(100% / 1);
}
	.mdl050-image-box > .mdl050-image {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		-o-object-fit: cover;
		-ms-object-fit: cover;
		-moz-object-fit: cover;
		-webkit-object-fit: cover;
		object-fit: cover;
		-webkit-transform-origin: 50% 50%;
		transform-origin: 50% 50%;
	}


/* ############################################################
	RASTER
############################################################ */

/* Liste */
.mdl050-list {
	position: relative;
	display: block;
	width: 100%;
}

/* Rastersystem */
.mdl050-list > .flex-container {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: left;
	width: 100%;
}
	.mdl050-list > .flex-container > .flex-item {
		position: relative;
		display: flex;
		margin: var(--gap) var(--gap) 0 0;
	}
@media screen and (max-width: 1199.98px) {
	/* 1/2  - 2 columns per row */
	.mdl050-list > .flex-container > .flex-item {
		width: calc(1/2*100% - (1 - 1/2)*var(--gap));
	}
	/* align last row columns to the left */
	.mdl050-list > .flex-container > .flex-item:nth-child(2n),
	.mdl050-list > .flex-container > .flex-item:last-child {
		margin-right: 0;
	}
	/* remove top margin from first row */
	.mdl050-list > .flex-container > .flex-item:nth-child(-n+2) {
		margin-top: 0;
	}
	
	/* Inview: Delay  */
	.mdl050-list > .flex-container > .flex-item.come-in.delay-different:nth-child(even) {
		-webkit-animation-delay: 200ms;
		-moz-animation-delay: 200ms;
		-ms-animation-delay: 200ms;
		-o-animation-delay: 200ms;
		animation-delay: 200ms;
	}
}
@media screen and (min-width: 1200px) {
	/* 1/4  - 4 columns per row */
	.mdl050-list > .flex-container > .flex-item {
		width: calc(1/4*100% - (1 - 1/4)*var(--gap));
	}
	/* align last row columns to the left */
	.mdl050-list > .flex-container > .flex-item:nth-child(4n),
	.mdl050-list > .flex-container > .flex-item:last-child {
		margin-right: 0;
	}
	/* remove top margin from first row */
	.mdl050-list > .flex-container > .flex-item:nth-child(-n+4) {
		margin-top: 0;
	}
	
	/* Inview: Delay  */
	.mdl050-list > .flex-container > .flex-item.come-in.delay-different:nth-child(4n+2) {
		-webkit-animation-delay: 200ms;
		-moz-animation-delay: 200ms;
		-ms-animation-delay: 200ms;
		-o-animation-delay: 200ms;
		animation-delay: 200ms;
	}
	.mdl050-list > .flex-container > .flex-item.come-in.delay-different:nth-child(4n+3) {
		-webkit-animation-delay: 400ms;
		-moz-animation-delay: 400ms;
		-ms-animation-delay: 400ms;
		-o-animation-delay: 400ms;
		animation-delay: 400ms;
	}
	.mdl050-list > .flex-container > .flex-item.come-in.delay-different:nth-child(4n+4) {
		-webkit-animation-delay: 600ms;
		-moz-animation-delay: 600ms;
		-ms-animation-delay: 600ms;
		-o-animation-delay: 600ms;
		animation-delay: 600ms;
	}
}

