.news-gallery {
    margin: 0 0 1.5rem;
}

.news-gallery__heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.news-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .news-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .news-gallery__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.news-gallery__grid a {
    display: block;
    background: #f3f4f6;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.news-gallery__grid a:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.news-gallery__grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ng-dialog {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 1rem;
}

.ng-dialog[hidden] {
    display: none;
}

.ng-dialog__figure {
    margin: 0;
    max-width: min(96vw, 1100px);
    text-align: center;
}

.ng-dialog__figure img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #111;
}

.ng-dialog__status {
    color: #fff;
    margin: 0.75rem 0 0;
    min-height: 1.25rem;
}

.ng-dialog__counter {
    color: #fff;
    margin-top: 0.75rem;
    font-size: 1rem;
}

.ng-dialog__close,
.ng-dialog__prev,
.ng-dialog__next {
    position: absolute;
    border: 0;
    background: #fff;
    color: #111;
    font: inherit;
    font-weight: 700;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

.ng-dialog__close {
    top: 0.75rem;
    right: 0.75rem;
}

.ng-dialog__prev {
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.ng-dialog__next {
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.ng-dialog__close:focus-visible,
.ng-dialog__prev:focus-visible,
.ng-dialog__next:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 2px;
}

body.ng-scroll-lock {
    overflow: hidden;
}
