/******************************
* SLIDER START
* Adapted from: http://benschwarz.github.io/gallery-css
******************************/
.slider-wrapper {
   position: relative;
   overflow:hidden;   
}
.slide img {
    border-radius: 0px;
}

.css-slider .slide:first-of-type {
  position: relative;
  pointer-events: auto;
  opacity: 1;
  z-index:6;
}
.css-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;  
}
.css-slider .slide:nth-of-type(2) {
  z-index:5;
}
.css-slider .slide:nth-of-type(3) {
  z-index:4;
}

.css-slider .slide a {
  cursor: pointer;
}
.css-slider .slider-control-op {
  display: none;
}
.css-slider .slider-control-op:target ~ .slide {
  pointer-events: none;
  -webkit-animation: none;
  animation: none;
}
.css-slider .slider-control-op:target ~ .controls .slider-control-btn .square {
  -webkit-animation: none;
  animation: none;
}
/******************************
* TWO slides
******************************/
@-webkit-keyframes sliderControlAnimation-2 {
  0% {
    background: #96968c;
  }
  14.3%, 50% {
    background: #70001A;
  }
  64.3%, 100% {
    background: #96968c;
  }
}
@keyframes sliderControlAnimation-2 {
  0% {
    background: #96968c;
  }
  14.3%, 50% {
    background: #70001A;
  }
  64.3%, 100% {
    background: #96968c;
  }
}
@-webkit-keyframes sliderGalleryAnimation-2 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  14.3%, 50% {
    transform: translateX(0%);
    opacity: 1;
  }
  64.3%, 100%  {
    transform: translateX(-100%);
    opacity: 1;
  }
}
@keyframes sliderGalleryAnimation-2 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  14.3%, 50% {
    transform: translateX(0%);
    opacity: 1;
  }
  64.3%, 100%  {
    transform: translateX(-100%);
    opacity: 1;
  }
}
.slides-2.autoplay .slider-control-btn .square{
  -webkit-animation: sliderControlAnimation-2 14s infinite;
  animation: sliderControlAnimation-2 14s infinite;
}
.slides-2.autoplay .slide {
  -webkit-animation: sliderGalleryAnimation-2 14s infinite;
  animation: sliderGalleryAnimation-2 14s infinite;
}
/******************************
* THREE slides
******************************/
@-webkit-keyframes sliderControlAnimation-3 {
  0% {
    background: #96968c;
  }
  9.5%, 33.3% {
    background: #70001A;
  }
  42.9%, 100% {
    background: #96968c;
  }
}
@keyframes sliderControlAnimation-3 {
  0% {
    background: #96968c;
  }
  9.5%, 33.3% {
    background: #70001A;
  }
  42.9%, 100% {
    background: #96968c;
  }
}
@-webkit-keyframes sliderGalleryAnimation-3 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
   9.5%, 33.3% {
    transform: translateX(0%);
    opacity: 1;
  }
  42.9%, 100%  {
    transform: translateX(-100%);
    opacity: 1;
  }
}
@keyframes sliderGalleryAnimation-3 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
   9.5%, 33.3% {
    transform: translateX(0%);
    opacity: 1;
  }
  42.9%, 100%  {
    transform: translateX(-100%);
    opacity: 1;
  }
}
.slides-3.autoplay .slider-control-btn .square{
  -webkit-animation: sliderControlAnimation-3 21s infinite;
  animation: sliderControlAnimation-3 21s infinite;
}
.slides-3.autoplay .slide {
  -webkit-animation: sliderGalleryAnimation-3 21s infinite;
  animation: sliderGalleryAnimation-3 21s infinite;
}
/******************************
* FOUR slides
******************************/
@-webkit-keyframes sliderControlAnimation-4 {
  0% {
    background: #96968c;
  }
  7.1%, 25% {
    background: #70001A;
  }
  32.1%, 100% {
    background: #96968c;
  }
}
@keyframes sliderControlAnimation-4 {
  0% {
    background: #96968c;
  }
  7.1%, 25% {
    background: #70001A;
  }
  32.1%, 100% {
    background: #96968c;
  }
}
@-webkit-keyframes sliderGalleryAnimation-4 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  7.1%, 25%  {
    transform: translateX(0%);
    opacity: 1;
  }
  32.1%, 100%  {
    transform: translateX(-100%);
    opacity: 1;
  }
}
@keyframes sliderGalleryAnimation-4 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  7.1%, 25%  {
    transform: translateX(0%);
    opacity: 1;
  }
  32.1%, 100%  {
    transform: translateX(-100%);
    opacity: 1;
  }
}
.slides-4.autoplay .slider-control-btn .square{
  -webkit-animation: sliderControlAnimation-4 28s infinite;
  animation: sliderControlAnimation-4 28s infinite;
}
.slides-4.autoplay .slide {
  -webkit-animation: sliderGalleryAnimation-4 28s infinite;
  animation: sliderGalleryAnimation-4 28s infinite;
}
/******************************
* FIVE slides
******************************/
@-webkit-keyframes sliderControlAnimation-5 {
  0% {
    background: #96968c;
  }
  5.7%, 20% {
    background: #70001A;
  }
  25.7%, 100% {
    background: #96968c;
  }
}
@keyframes sliderControlAnimation-5 {
  0% {
    background: #96968c;
  }
  5.7%, 20% {
    background: #70001A;
  }
  25.7%, 100% {
    background: #96968c;
  }
}
@-webkit-keyframes sliderGalleryAnimation-5 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  5.7%, 20% {
    transform: translateX(0%);
    opacity: 1;
  }
  25.7%, 100% {
    transform: translateX(-100%);
    opacity: 1;
  }
}
@keyframes sliderGalleryAnimation-5 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  5.7%, 20% {
    transform: translateX(0%);
    opacity: 1;
  }
  25.7%, 100% {
    transform: translateX(-100%);
    opacity: 1;
  }
}
.slides-5.autoplay .slider-control-btn .square{
  -webkit-animation: sliderControlAnimation-5 35s infinite;
  animation: sliderControlAnimation-5 35s infinite;
}
.slides-5.autoplay .slide {
  -webkit-animation: sliderGalleryAnimation-5 35s infinite;
  animation: sliderGalleryAnimation-5 35s infinite;
}
/******************************
* SIX slides
******************************/
@-webkit-keyframes sliderControlAnimation-6 {
  0% {
    background: #96968c;
  }
  4.8%,16.66% {
    background: #70001A;
  }
  21.5%, 100% {
    background: #96968c;
  }
}
@keyframes sliderControlAnimation-6 {
  0% {
    background: #96968c;
  }
  4.8%,16.66% {
    background: #70001A;
  }
  21.5%, 100% {
    background: #96968c;
  }
}
@-webkit-keyframes sliderGalleryAnimation-6 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  4.8%,16.66%  {
    transform: translateX(0%);
    opacity: 1;
  }
  21.5%, 100%  {
    transform: translateX(-100%);
    opacity: 1;
  }
}
@keyframes sliderGalleryAnimation-6 {
  0% {
    transform: translateX(100%);
    opacity: 1;
  }
  4.8%,16.66%  {
    transform: translateX(0%);
    opacity: 1;
  }
  21.5%, 100%  {
    transform: translateX(-100%);
    opacity: 1;
  }
}
.slides-6.autoplay .slider-control-btn .square{
  -webkit-animation: sliderControlAnimation-6 42s infinite;
  animation: sliderControlAnimation-6 42s infinite;
}
.slides-6.autoplay .slide {
  -webkit-animation: sliderGalleryAnimation-6 42s infinite;
  animation: sliderGalleryAnimation-6 42s infinite;
}
/************************************************
* ANIMATION DELAYS
************************************************/
.slides-2 .slider-control-btn:nth-of-type(1) .square,
.slides-3 .slider-control-btn:nth-of-type(1) .square,
.slides-4 .slider-control-btn:nth-of-type(1) .square,
.slides-5 .slider-control-btn:nth-of-type(1) .square,
.slides-6 .slider-control-btn:nth-of-type(1) .square,
.slides-2 .slide:nth-of-type(1),
.slides-3 .slide:nth-of-type(1),
.slides-4 .slide:nth-of-type(1),
.slides-5 .slide:nth-of-type(1),
.slides-6 .slide:nth-of-type(1) {
  -webkit-animation-delay: -2s;
  animation-delay: -2s;
}
.slides-2 .slider-control-btn:nth-of-type(2) .square,
.slides-3 .slider-control-btn:nth-of-type(2) .square,
.slides-4 .slider-control-btn:nth-of-type(2) .square,
.slides-5 .slider-control-btn:nth-of-type(2) .square,
.slides-6 .slider-control-btn:nth-of-type(2) .square,
.slides-2 .slide:nth-of-type(2),
.slides-3 .slide:nth-of-type(2),
.slides-4 .slide:nth-of-type(2),
.slides-5 .slide:nth-of-type(2),
.slides-6 .slide:nth-of-type(2) {
  -webkit-animation-delay: 5s;
  animation-delay: 5s;
}
.slides-3 .slider-control-btn:nth-of-type(3) .square,
.slides-4 .slider-control-btn:nth-of-type(3) .square,
.slides-5 .slider-control-btn:nth-of-type(3) .square,
.slides-6 .slider-control-btn:nth-of-type(3) .square,
.slides-3 .slide:nth-of-type(3),
.slides-4 .slide:nth-of-type(3),
.slides-5 .slide:nth-of-type(3),
.slides-6 .slide:nth-of-type(3) {
  -webkit-animation-delay: 12s;
  animation-delay: 12s;
}
/***********************************
* SLIDER CONTROL ONCLICK STYLES
************************************/
.css-slider .slider-control-op:nth-of-type(1):target ~ .slide:nth-of-type(1),
.css-slider .slider-control-op:nth-of-type(2):target ~ .slide:nth-of-type(2),
.css-slider .slider-control-op:nth-of-type(3):target ~ .slide:nth-of-type(3) {
  pointer-events: auto;
  opacity: 1;
  transition: opacity 1s;
}
.css-slider .slider-control-op:nth-of-type(1):target ~ .slide,
.css-slider .slider-control-op:nth-of-type(2):target ~ .slide,
.css-slider .slider-control-op:nth-of-type(3):target ~ .slide {
  opacity: 0;
  transition: opacity 1s;
}
.css-slider .slider-control-op:nth-of-type(1):target ~ .controls .slider-control-btn:nth-of-type(1) .square,
.css-slider .slider-control-op:nth-of-type(2):target ~ .controls .slider-control-btn:nth-of-type(2) .square,
.css-slider .slider-control-op:nth-of-type(3):target ~ .controls .slider-control-btn:nth-of-type(3) .square {
  background: #4c0181;
  transition: background .5s;
}
/*
	Theme controls how everything looks in SLIDER CSS.
*/
.css-slider {
  position: relative;
  overflow:hidden;
}
.css-slider .slide {
  overflow: hidden;
  text-align: center;
}
.css-slider .slide p {
	margin-bottom:0;
}
.css-slider .controls {
  position: absolute;
  bottom: 10px; 
  right: 10px;  
  z-index: 15;
}
.css-slider .slider-control-btn {
  display: inline-block;
  margin: 0 .02em;
  font-size: 3em;
  text-align: center;
  text-decoration: none;
}
.square {
  display:block;
  width:10px;
  height:10px;
  border-radius:50%;
  background: #96968c;
  transition: background .1s;
}