/* careful, minimizers and sass parsers break this for unknown reasons 
   adapted from https://codepen.io/arrive/pen/EOGyzK
 */
.slideshow-outer {
  width: 100%;
  height: max(20vw, 20vh);
  position: relative;
  border-bottom: 1px solid #cdd16b;
  /* background-image: url('data:image/png;base64,...'); */
  background-color: #354c5e;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 max(20vw, 20vh);
          flex: 1 0 max(20vw, 20vh);
  /* background: #fff; */
}

.slideshow-gradient {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  /* background: linear-gradient(0deg, rgb(0, 0, 0) 0%, #354c5e 2%, rgba(0, 0, 0, 0.345) 35%, rgba(0, 0, 0, 0) 100%); */
  background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.7) 0%, rgba(53, 76, 94, 0) 20%, rgba(53, 76, 94, 0.4) 80%, rgba(0, 0, 0, 0.7) 100%);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(53, 76, 94, 0) 20%, rgba(53, 76, 94, 0.4) 80%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 9;
}

.slideshow-title {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /*
  line-height: 100%;
  text-align: center;
  vertical-align: middle;
  */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 10;
  color: white;
  font-size: min(70px, 8vw);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7333333333);
  font-family: headerFont, "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.slideshow {
  list-style-type: none;
}

.slideshow,
.slideshow:after {
  /* top: -16px; Not sure why I needed this fix
  /* position: absolute; */
  width: 100%;
  height: 100%;
  left: 0px;
  /* z-index: 0; */
}

.slideshow li span {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  color: transparent;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  -webkit-animation: imageAnimation 18s linear infinite 0s;
          animation: imageAnimation 18s linear infinite 0s;
}

/* these queries ignore dpi, but whatchu going to do? */
.slideshow li:nth-child(1) span {
  background-image: url("/assets/img/newex_1.jpg");
}
@media (max-width: 1920px) {
  .slideshow li:nth-child(1) span {
    background-image: url("/assets/img/preview1920/newex_1.jpg");
  }
}
@media (max-width: 1000px) {
  .slideshow li:nth-child(1) span {
    background-image: url("/assets/img/preview1000/newex_1.jpg");
  }
}
@media (max-width: 500px) {
  .slideshow li:nth-child(1) span {
    background-image: url("/assets/img/preview500/newex_1.jpg");
  }
}
.slideshow li:nth-child(1) span {
  opacity: 1;
  /* animation-delay: 17.62s; */
}

.slideshow li:nth-child(2) span {
  background-image: url("/assets/img/newex_3.jpg");
}
@media (max-width: 1920px) {
  .slideshow li:nth-child(2) span {
    background-image: url("/assets/img/preview1920/newex_3.jpg");
  }
}
@media (max-width: 1000px) {
  .slideshow li:nth-child(2) span {
    background-image: url("/assets/img/preview1000/newex_3.jpg");
  }
}
@media (max-width: 500px) {
  .slideshow li:nth-child(2) span {
    background-image: url("/assets/img/preview500/newex_3.jpg");
  }
}
.slideshow li:nth-child(2) span {
  /* animation-delay: 5.62s; */
  -webkit-animation-delay: 6s;
          animation-delay: 6s;
}

.slideshow li:nth-child(3) span {
  background-image: url("/assets/img/newex_5.jpg");
}
@media (max-width: 1920px) {
  .slideshow li:nth-child(3) span {
    background-image: url("/assets/img/preview1920/newex_5.jpg");
  }
}
@media (max-width: 1000px) {
  .slideshow li:nth-child(3) span {
    background-image: url("/assets/img/preview1000/newex_5.jpg");
  }
}
@media (max-width: 500px) {
  .slideshow li:nth-child(3) span {
    background-image: url("/assets/img/preview500/newex_5.jpg");
  }
}
.slideshow li:nth-child(3) span {
  /* animation-delay: 11.62s; */
  -webkit-animation-delay: 12s;
          animation-delay: 12s;
}

@-webkit-keyframes imageAnimation {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  41% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes imageAnimation {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  41% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.no-cssanimations .cb-slideshow li span {
  opacity: 1;
  color: #fff;
  font-size: 40px;
}