﻿.css-slideshow{
  position: relative;
  max-width: 700px;
  height: 320px;
  /*margin: 5em auto .5em auto;*/
}
.css-slideshow figure{
  border: 10px solid #fff;
  margin: 0;
  max-width: 680px;
  height: 300px;
  background: #000;
  position: absolute;
  overflow:hidden;
}
.css-slideshow img{
  box-shadow: 0 0 2px #666;
}
.css-slideshow figcaption{
  position: relative;
  top: -100px;
  height:100px;
  color: #fff;
  background: rgba(0,0,0, .3);
  font-size: 12px;
  padding: 0px 0px;
  opacity: 0;
  transition: opacity .5s;
}
.css-slideshow figcaption a{
    color: lightblue;
    text-decoration:underline;
    position: relative;    
}
.css-slideshow figcaption p{ 
  font-family: 'Segoe UI';
  font-size: 12px;
  padding: 5px 10px 5px;
}

.css-slideshow figcaption p strong{ 
  font-family: 'Segoe UI';
  font-size: 16px;
}

.css-slideshow:hover figure figcaption{
  transition: opacity .5s;
  opacity: 1;
  z-index: 5;
}
.css-slideshow:hover figure figcaption a{  
    color: lightblue;
    text-decoration:underline;
    position: relative;
}
.css-slideshow-attr{
  max-width: 700px;
  text-align: right;
  font-size: .7em;
  font-style: italic;
  margin:0 auto;
}
.css-slideshow-attr a{
  color: #666;
}
.css-slideshow figure{
  opacity:0;
}
figure:nth-child(1) {   
  animation: xfade 25s 0s infinite;
  -o-animation: xfade 25s 0s infinite;
  -moz-animation: xfade 25s 0s infinite;
  -webkit-animation: xfade 25s 0s infinite;
}
figure:nth-child(2) {
  animation: xfade 25s 5s infinite;
  -o-animation: xfade 25s 5s infinite;
  -moz-animation: xfade 25s 5s infinite;
  -webkit-animation: xfade 25s 5s infinite;
}
figure:nth-child(3) {
  animation: xfade 25s 10s infinite;
  -o-animation: xfade 25s 10s infinite;
  -moz-animation: xfade 25s 10s infinite;
  -webkit-animation: xfade 25s 10s infinite;
}
figure:nth-child(4) {
  animation: xfade 25s 15s infinite;
  -o-animation: xfade 25s 15s infinite;
  -moz-animation: xfade 25s 15s infinite;
  -webkit-animation: xfade 25s 15s infinite;
}
figure:nth-child(5) {
  animation: xfade 25s 20s infinite;
  -o-animation: xfade 25s 20s infinite;
  -moz-animation: xfade 25s 20s infinite;
  -webkit-animation: xfade 25s 20s infinite;
}

/*figure:nth-child(6) {
  animation: xfade 48s 12s infinite;
}
figure:nth-child(7) {
  animation: xfade 48s 6s infinite;
}
figure:nth-child(8) {
  animation: xfade 48s 0s infinite;
}*/

@keyframes xfade{
  0%{
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  20%{
    opacity: 0;
  }
  98% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-moz-keyframes xfade{
  0%{
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  20%{
    opacity: 0;
  }
  98% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes xfade{
  0%{
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  20%{
    opacity: 0;
  }
  98% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}