/*
 * Full screen viewer for news images. Same look as the hospital portfolio
 * lightbox (assets/css/hospital-details.css), but with its own class names
 * so it does not collide with Bootstrap's .close or other generic classes.
 */

.news-gallery .blog-img,
.news-gallery .post-img img,
.news-gallery .post-para img {
    cursor: zoom-in;
}

.news-lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    background: #7f8c8d;
    z-index: 1024;
    overflow: hidden;
}

.news-lightbox .nlb-filter {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(20px);
    opacity: 0.5;
    background-position: center;
    background-size: cover;
}

.news-lightbox .nlb-img {
    position: absolute;
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    max-width: 95vw;
    box-shadow: 2px 6px 20px -3px #5e5e5e;
}

.news-lightbox .nlb-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    padding: 0 70px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.news-lightbox .nlb-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 50px;
    height: 50px;
    margin: 20px;
    background: rgb(0 0 0 / 62%);
    border-radius: 50px;
    cursor: pointer;
}

.news-lightbox .nlb-close:before,
.news-lightbox .nlb-close:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 60%;
    background: #fff;
}

.news-lightbox .nlb-close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.news-lightbox .nlb-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 767px) {
    .news-lightbox .nlb-img {
        max-width: 92vw;
    }
}
