.scnm-news-lightbox-trigger {
    cursor: zoom-in;
}

.scnm-news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
}

.scnm-news-lightbox[hidden] {
    display: none;
}

.scnm-news-lightbox__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 2.75rem;
}

.scnm-news-lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
}

.scnm-news-lightbox__image {
    display: block;
    max-width: min(100%, 1200px);
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.scnm-news-lightbox__button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.scnm-news-lightbox__button:hover,
.scnm-news-lightbox__button:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.scnm-news-lightbox__button--prev,
.scnm-news-lightbox__button--next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.scnm-news-lightbox__button--prev {
    left: 0;
}

.scnm-news-lightbox__button--next {
    right: 0;
}

.scnm-news-lightbox__caption {
    min-height: 1.5rem;
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
}

body.scnm-news-lightbox-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .scnm-news-lightbox {
        padding: 0.75rem;
    }

    .scnm-news-lightbox__button--prev,
    .scnm-news-lightbox__button--next {
        top: auto;
        bottom: 0;
        transform: none;
    }
}
