.gallery {
	position: relative;
	margin: 0;
	background: none;
	border: none;
}

.gallery figure {
	position: absolute;
	display: inline-block;
	top: 0;
	left: 2em;
	z-index: 1;
	animation: wechseln 30s infinite;
}

.gallery figure:last-of-type {
	position: relative;
}

.gallery > figure figcaption {
	position: absolute;
	left: 1em;
	font-size: 2em;
	font-weight: bold;
	bottom: 0.5em;
	z-index: 2;
	color: white;
}

@keyframes wechseln {
	0% {
		opacity: 0;
	}
	20% {
		opacity: 1;
	}
	40% {
		opacity: 1;
	}
	60% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

.gallery figure:nth-of-type(2) {
	animation-delay: 5s;
	opacity: 0;
}

.gallery figure:nth-of-type(3) {
	animation-delay: 10s;
	opacity: 0;
}

.gallery figure:nth-of-type(4) {
	animation-delay: 15s;
	opacity: 0;
}

.gallery figure:nth-of-type(5) {
	animation-delay: 20s;
	opacity: 0;
}

.gallery figure:nth-of-type(6) {
	animation-delay: 25s;
	opacity: 0;
}