.image_gallery {
    padding: 40px 0;
}

.lightbox {
    display: block;
    position: relative;
}

.image_gallery .lightbox img {
    border: 1px solid #ddd;
    padding: 2px;
}

.lightbox img {
    object-fit: cover;
    cursor: pointer;
    width: 100%;
}

#lightbox.show {
    visibility: visible;
    opacity: 1;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s;
}

#close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    cursor: pointer;
}

#lightbox img {
    max-width: 80%;
    max-height: 80%;
    border: 1px solid var(--black);
    padding: 5px;
    border-radius: 10px;
    background: #fff;
}

#prev-arrow,
#next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

#prev-arrow {
    left: 20px;
}

#next-arrow {
    right: 20px;
}

.page-item.active .page-link {
    border: 1px solid transparent;
    background: var(--first-color);
}

.page-link:focus {
    box-shadow: none;
    color: var(--black);
}

@media only screen and (max-width:767px) and (min-width: 320px) {
    .image_gallery {
        padding: 30px 0;
    }

    .lightbox img {
        height: 100%;
    }
}