{
  background: transparent;
  border-color: transparent;
}
  
#gallery {
  position: relative;
  margin:0;
  background: none;
  border: none;
}
 
#gallery figure {
	position: absolute;
	display: inline-block;
	left: -3em;
	z-index: 1;
	animation: wechseln 18s 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: 6s;
  opacity: 0;
}

#gallery figure:nth-of-type(3) {
  animation-delay: 10s;
  opacity: 0;
}
#gallery figure:nth-of-type(4) {
  animation-delay: 14s;
  opacity: 0;
}
