.news-body {
    max-width: 820px;
    margin-inline: auto;
}

.news-preview-banner {
    display: flex;
    max-width: 820px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-inline: auto;
}

.news-hero-image {
    display: block;
    width: 100%;
    max-height: 560px;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    object-fit: cover;
}

.news-content-block {
    margin-bottom: 1.5rem;
}

.news-image-block {
    display: block;
}

.news-image-block.LEFT { margin-right: auto; }
.news-image-block.CENTER { margin-inline: auto; }
.news-image-block.RIGHT { margin-left: auto; }
.news-image-block.FULL { width: 100% !important; }

.news-image-button,
.news-gallery__tile {
    display: block;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: #e2e8f0;
    cursor: zoom-in;
}

.news-image-button {
    width: 100%;
    border-radius: .9rem;
}

.news-image-button img {
    display: block;
    width: 100%;
    height: auto;
}

.news-image-button:focus-visible,
.news-gallery__tile:focus-visible {
    outline: 3px solid var(--brand-primary, #0d6efd);
    outline-offset: 3px;
}

.news-gallery {
    display: grid;
    height: clamp(270px, 52vw, 480px);
    gap: .35rem;
    overflow: hidden;
    border-radius: 1rem;
    background: #e2e8f0;
}

.news-gallery[data-visible-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-gallery[data-visible-count="3"] {
    grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
}

.news-gallery[data-visible-count="3"] .news-gallery__tile:first-child {
    grid-row: 1 / 3;
}

.news-gallery[data-visible-count="4"] {
    grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
}

.news-gallery__tile {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.news-gallery__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.news-gallery__tile:hover img {
    transform: scale(1.025);
}

.news-gallery__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: .15rem;
    background: rgba(15, 23, 42, .66);
    color: #fff;
    text-align: center;
}

.news-gallery__more strong {
    font-size: clamp(1.65rem, 5vw, 2.5rem);
    line-height: 1;
}

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

.news-lightbox {
    position: fixed;
    z-index: 1080;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(.75rem, 3vw, 2rem);
}

.news-lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(2, 6, 23, .94);
}

.news-lightbox__content {
    position: relative;
    display: grid;
    width: min(100%, 1200px);
    height: min(90vh, 860px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    color: #fff;
}

.news-lightbox__figure {
    display: grid;
    min-width: 0;
    max-height: 100%;
    justify-items: center;
    gap: .75rem;
    margin: 0;
}

.news-lightbox__figure img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 5rem);
    border-radius: .5rem;
    object-fit: contain;
}

.news-lightbox__figure figcaption {
    min-height: 1.5rem;
    color: #e2e8f0;
    text-align: center;
}

.news-lightbox__nav,
.news-lightbox__close {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 1.25rem;
}

.news-lightbox__nav[hidden] {
    visibility: hidden;
}

.news-lightbox__close {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
}

.news-lightbox__counter {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
}

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

@media (max-width: 575.98px) {
    .news-preview-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .news-gallery {
        height: clamp(230px, 85vw, 390px);
    }

    .news-lightbox__content {
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
        gap: .25rem;
    }

    .news-lightbox__nav,
    .news-lightbox__close {
        width: 2.5rem;
        height: 2.5rem;
    }
}
