#gallery {
    padding-top: 40px;
}

.photo_single{
    padding-bottom: 119px;
}

#image-gallery .image{
    width: 279px;
    height: 200px;
}


.img-wrapper {
    width:  100%;
    height: 100%;
    position: relative;
    margin-top: 15px;

}

#prevButton, #nextButton, #exitButton{
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1) 0% 0% no-repeat padding-box;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


#prevButton i, #nextButton i, #exitButton i{
    font-size: 24px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.img-overlay {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    border-radius: 15px;
}

.img-overlay img {
    width: 24px;
    height: 24px;
}

#overlay {
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    /* Removes blue highlight */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#overlay img {
    margin: 0;
    width: 80%;
    height: auto;
    object-fit: contain;
    padding: 5%;
}

@media screen and (min-width: 768px) {
    #overlay img {
        width: 60%;
    }
}

@media screen and (min-width: 1200px) {
    #overlay img {
        width: 80%;
    }
}

#nextButton,
#prevButton,
#exitButton {
    color: #fff;
    font-size: 2em;
    transition: opacity 0.8s;
}

#nextButton:hover,
#prevButton:hover,
#exitButton:hover {
    opacity: 0.7;
}

@media screen and (min-width: 768px) {
    #nextButton,
    #prevButton,
    #exitButton {
        font-size: 3em;
    }
}

#exitButton {
    position: absolute;
    top: 15px;
    right: 15px;
}
