.close,
.next,
.prev {
    cursor: pointer;
    font-weight: 700
}

.gallery-image {
    display: flex;
    float: left;
    margin: 5px;
    height: 25vh;
    width: auto;
    background-color: red
}

.lightbox-overlay {
    position: fixed;
    z-index: 100;
    padding: 2% 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000000e7
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%
}

.lightbox-content img {
    position: relative;
    z-index: 101;
    background-color: #fff;
    transition: 5s;
    max-height: 85vh;
    max-width: 100vh;
    padding: 1px;
    margin: auto;
    min-width: 1px;
    min-height: 1px;
    width: auto
}

.close {
    background-color: transparent;
    border: none;
    color: #fff;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 40px;
    transition: .5s;
    text-decoration: none
}

.desc,
.index-counter {
    color: #fff;
    padding: 5px;
    font-size: 16px;
    transition: .5s;
    margin: auto;
    position: absolute
}

.close:focus,
.close:hover {
    color: #adb5bd
}

.index-counter {
    top: 10px;
    z-index: 103;
    left: 50%;
    transform: translate(-50%)
}

.desc {
    bottom: 20px;
    text-align: center
}

.lightbox-content .image-loader {
    position: absolute;
    z-index: 102;
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    border: 10px solid #616336;
    border-top-color: #fff;
    animation: 1s linear infinite spin
}

@keyframes spin {
    100% {
        transform: rotate(360deg)
    }
}

.next,
.prev {
    position: absolute;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    z-index: 102;
    color: #212529;
    font-size: 35px;
    transition: .6s;
    user-select: none;
    -webkit-user-select: none;
    background-color: #adb5bd
}

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

.prev {
    left: 0;
    border-radius: 0 3px 3px 0
}

@media screen and (max-width:768px) {
    .lightbox-content img {
        max-width: 70vh;
        max-height: 80vh
    }

    .index-counter {
        font-size: 18px
    }

    .next,
    .prev {
        font-size: 25px
    }
}

@media screen and (max-width:425px) {
    .lightbox-content img {
        max-width: 50vh;
        max-height: 75vh
    }

    .next,
    .prev {
        font-size: 20px
    }
}

.next:hover,
.prev:hover {
    background-color: #212529;
    color: #adb5bd
}