/* gallery lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.gallery-item {
    margin-bottom: 20px;
    overflow: hidden;
    /* max-height: 250px; */
    position: relative;
}

.gallery-item:hover {
    cursor: pointer;
}

.gallery-item img {
    /* min-height: 250px; */
    /* width: 100%; */
}

.gallery-overlay {
    background-color: #00000057;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: .5s ease-in-out;
    opacity: 0;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    /* width: 100%;
    height: 100%;
    z-index: 999; */
}

.lightbox img {
    width: 100%;
}

.lightbox .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox .close:hover,
.lightbox .close:focus {
    color: #bbb;
    text-decoration: none;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    cursor: pointer;
}

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

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

.lightbox .prev:hover,
.lightbox .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}