* {
  box-sizing: border-box;
}

img {
  vertical-align: middle;
}

/* Slideshow container */

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */

.prev,
.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;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

/* Position the "next button" to the right */

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a grey background color */

.prev:hover,
.next:hover {
  background-color: #f1f1f1;
  color: black;
}

.slider {
  width: 100%;
  position: relative;
  margin: auto;
}

.slider .slide {
  display: none;
  height: 100%;
  width: 100%;
}

.slider .slide img {
  height: 100%;
  width: 100%;
  -webkit-filter: contrast(90%);
          filter: contrast(90%);
  -o-object-fit: cover;
     object-fit: cover;
}

.slider .slide .caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: #fff;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.slider a.prev-g,
.slider a.next-g {
  position: absolute;
  top: 50%;
  font-size: 30px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  color: #ffffff;
  padding: 12px;
  transition: 0.2s;
}

.slider a.prev-g:hover,
.slider a.next-g:hover {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
}

.slider a.next-g {
  right: 1%;
}

.slider .next {
  right: 20px;
}

.slider .prev {
  left: 20px;
}

.show {
  -webkit-animation: fade 0.5s ease-out;
          animation: fade 0.5s ease-out;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

