
.mySlides {display: none}
.mySlides img {vertical-align: middle;border-radius: 8px;}

.mySlides .overlay{
    position: absolute;
    width: 100%;
    height: calc(100% - 20px);
    top: 20px;
    background: linear-gradient(to bottom,rgb(0 0 0 / 40%) 0.25%,rgb(0 0 0 / 10%) 89%);
    border-radius: 8px;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1200px;
  position: relative;
  margin: auto;
  padding-top: 20px;
}

/* 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.1s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

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

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  color: #cf0000;
  /* background-color: rgba(0,0,0,0.8); */
  /* transform: scale(1.3); */
}

/* Caption text */
.text {
    color: var(--white);
    font-size: 2rem;
    position: absolute;
    top: 16%;
    padding-left: 60px;
    padding-right: 60px;
    text-shadow: 0px 0px 12px #525252;
}

.mySlides span{
    font-size: 3rem;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 20px;
}

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

.dot:hover {
  background-color: #717171;
}

.dot.active{
    transform: scale(0.8);
    background-color: #717171;
}

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

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

@media only screen and (max-width: 1200px) {
    .slideshow-container{
        padding-top:0;
    }

    .mySlides .overlay{
        height: 100%;
        top: 0;
    }

    .mySlides img, .mySlides .overlay{
        border-radius: 0;
    }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}

@media only screen and (max-width: 700px) {
    /* Caption text */
    .text {
        font-size: 1.5rem;
        top: 20%;
    }

    .mySlides span{
        font-size: 2.5rem;
    }
}

@media only screen and (max-width: 545px) {
    /* Caption text */
    .text {
        font-size: 1.2rem;
        top: 30%;
    }

    .mySlides span{
        font-size: 1.7rem;
    }
}

@media only screen and (max-width: 435px) {
    .text {
        font-size: 1rem;
        padding-left: 40px;
        padding-right: 40px;
    }

    .mySlides span{
        font-size: 1.5rem;
    }
}