* {
    box-sizing: border-box;
}
.slideshow-container {
    width: fit-content;
    height: fit-content;
    position: relative;
    max-width: 100%;
    max-height: auto;
    margin: 3% auto;
    background-color: black;
}

/* hides the images per default */
.slides {
    display: none;
    object-fit: cover;
}
.slides img {
    max-height: 90%;
    width: 100%;
}

/* buttons for next and previous */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* position next button on other side */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.next:hover, .prev:hover {
    background-color: rgb(0,0,0, 0.6);
}

/* fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }