/*
* Slider, A Slideshow Plugin
* From: https://www.w3schools.com/howto/howto_js_slideshow.asp
* By: Emanuel
* Version: 1.0
* Updated: 10/04/18
*/

/** {box-sizing: border-box}*/
.slide {display: none;width:940px; height:auto;}
.slide > img, .slide > a > img{
    margin-left: auto;
    margin-right: auto;
    display:block;
}

/* Slideshow container */
.slideshow-container {
  width:940px;
  height:490px;
  background-size: 100% !important;
  overflow:hidden;
  margin-top: 0px;
  position: relative;
}

/* Next & previous buttons */
.slideshow-prev, .slideshow-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
}
/* Position the "prev button" to the left */
.slideshow-prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.slideshow-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.slideshow-prev:hover, .slideshow-next:hover {
  background-color: #436e5d;
  text-decoration-line: none; /* overload a:hover --> "text-decoration: underline" in style.css */
}

/* Side Image Text */
.slide-text {
  display: inline-block;
  font-size: 25px;
  line-height: 1.5;
  padding: 12px 8px 12px 1px;
  text-align: center;
}

/* Caption text */
.slideshow-text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 7px 12px;
  position: relative;
  bottom: 8px;
  width: 100%;
  height: 100%;
  text-align: center;
  vertical-align: middle;
}

/* The dots/bullets/indicators */
.slideshow-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .slideshow-dot:hover {
  background-color: #436e5d;
}

/* Fading animation */
.slideshow-fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes slideshow-fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes slideshow-fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
/* #Tablet (Portrait)
================================================== */
/* Note: Design for a min width of 796px */
@media only screen and (min-width: 768px) and (max-width: 995px){ /* width decrease by 0.8 from orginal*/
    .slideshow-container, .slide {width: 752px;height:392px;}
    .slide img{max-width: 752px; width: auto; max-height: 392px;height: auto;}
    .slideshow-prev, .slideshow-next,.slideshow-text {font-size: 15px}
    .slide-text { font-size: 20px;  line-height: 1.2;  padding: 9.6px 6.4px 9.6px 0.8px;}
}

/* #Mobile (Landscape)
================================================== */
/* Note: Design for a width of 480px */
@media only screen and (min-width: 480px) and (max-width: 767px) { /* width decrease by 0.556 from "Design for a min width of 796px"*/
    .slideshow-container, .slide {width: 420px;height:219px;}
    .slide img{max-width: 420px; width: auto; max-height: 219px;height: auto;}
    .slideshow-prev, .slideshow-next,.slideshow-text {font-size: 11px}
    .slide-text { font-size: 10px;  line-height: 1.2;  padding: 4.8px 3.2px 4.8px 0.4px;}
}
/* #Mobile (Portrait)
================================================== */
/* Note: Design for a width of 480px */
@media only screen and (max-width: 479px){ /* width decrease by 0.714 from "Design for a min width of 796px"*/
    .slideshow-container, .slide {width: 300px;height:156px;}
    .slide img{max-width: 300px; width: auto; max-height: 156px;height: auto;}
    .slideshow-prev, .slideshow-next,.slideshow-text {font-size: 11px}
    .slide-text { font-size: 10px;  line-height: 1.2;  padding: 4.8px 3.2px 4.8px 0.4px;}
}
