﻿*{
  box-sizing:border-box;
}
body {
  margin: 0; 
  padding: 0;
  background: #fff;
  height: 100%;
}
.slideshow{
  position: relative;
  display: block;
  overflow: hidden;
}

.slideshow figure{
  position: absolute;
  margin:0;
  opacity: 0;
  transition: 1s opacity;
}
.slideshow figure img{
  display:block;
  width:100%;
}
.slideshow figcaption{
  position: absolute;
  font-family: sans-serif;
  font-size: inherit;
  bottom: 0;
  left: 0;
  padding: 0.5em;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  width: 100%;
}
.slideshow figcaption a{
  color: #f55;
}
.slideshow figure.show{
  opacity: 1;
  position: static;
  transition: 1s opacity;
}
.slideshow .next, .slideshow .prev{
  color: #fff;
  position: absolute;
  background: rgba(255,255,255,0.3);
  top: 0;
  width: calc(95% / 2);
  height: 100%;
  z-index: 1;
  margin: 0;
  opacity: 0;
  user-select: none;
  text-align: center;
  transition:all 0.5s ease;
}
.slideshow .next:hover, .slideshow .prev:hover{
  cursor: pointer;
  opacity: 1;
  transition:all 0.5s ease;
}
.slideshow .next{
  right: 0;
}
.slideshow .prev{
  left: 0;
}

@media (min-width:320px){
   .slideshow{
    max-width:80%;
    height:auto;
    margin:0px auto;
  } 
  .slideshow .next, .slideshow .prev{
    height:auto;
  }
}
@media (min-width:480px){
   .slideshow{
    max-width: 95%;
    height: 60%;
   
    /*margin: 15px auto;*/
  } 
  .slideshow .next, .slideshow .prev{
    height:100%;
  }
}