* {
    box-sizing: border-box;
    background-color: black;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

#gallery-section {
    width: 100vw;
    height: 300px;
    position: relative;
}

.MySlides {
    display: none;
    width: 100%;
    max-height: 100vh;
}

.MySlides img {
   width: 100%;
   height: 100vh;
   object-fit: contain;
   object-position: center; 
}


.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;
}

.next {
    right: 10px;
    z-index: 10;
    border-radius: 3px 0 0 3px;
}
.prev{
    left: 10px;
    z-index: 10
}
#home {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}


@media (max-width: 500px){
    #gallery-section {
        height: 70vh;
    }

    .prev, .next{
        font-size: 14px;
        padding: 10px;
    }

    .next{
        right: 5px;
    }
    .prev{
        left: 5px;
    }

    .MySlides img{
        object-fit: contain;
    }
}

@media (max-width: 768px){
    #gallery-section {
        height: 80vh;
    }

    .prev, .next {
        font-size: 16px;
        padding: 8px;
    }

    .MySlides img{
        object-fit: contain;
    }

}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}
