.news-cover-link {
    display: block;
    width: fit-content;
    max-width: 100%;
}

.news-article-cover {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.news-header-photo {
    cursor: zoom-in;
}

.news-header-image {
    position: absolute;
    inset-inline-end: max(16px, calc((100vw - 1300px) / 2));
    bottom: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #fff6;
    border-radius: 50%;
    background: #111b;
    color: #fff;
}

.news-header-photo:hover .news-header-image,
.news-header-photo:focus-visible .news-header-image {
    color: #fff;
    background: #111;
}

.news-article-body {
    line-height: 2;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
    overflow-x: auto;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
}

.news-article-body iframe {
    max-width: 100%;
}

.news-article-body img,
.news-cover-link,
.news-gallery__grid a {
    cursor: zoom-in;
}

.news-gallery {
    margin-top: 36px;
}

.news-gallery h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.news-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 1fr));
    align-items: start;
    gap: 16px;
}

.news-gallery figure {
    margin: 0;
}

.news-gallery a {
    position: relative;
    display: block;
    border-radius: 12px;
    background: #f5f3f0;
    overflow: hidden;
}

.news-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.news-gallery figcaption {
    padding-block: 7px;
    line-height: 1.7;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.news-gallery__zoom {
    position: absolute;
    inset-inline-end: 8px;
    bottom: 8px;
    background: #111d;
    color: white;
    border-radius: 8px;
    padding: 4px 9px;
}

.news-viewer-open {
    overflow: hidden;
}

.news-viewer {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(100%, 1440px);
    max-width: none;
    height: 100%;
    max-height: 100%;
    padding: 0;
    border: 0;
    background: #101116;
    color: #fff;
}

.news-viewer::backdrop {
    background: #0c0d11e8;
}

.news-viewer__layout {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
}

.news-viewer__toolbar,
.news-viewer__footer,
.news-viewer__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-viewer__toolbar,
.news-viewer__footer {
    justify-content: space-between;
    padding: 8px clamp(8px, 3vw, 24px);
    background: #191c25;
}

.news-viewer__toolbar {
    flex-wrap: wrap;
}

.news-viewer__controls {
    flex-wrap: wrap;
}

.news-viewer button,
.news-viewer a {
    border: 1px solid #697080;
    border-radius: 8px;
    background: #292e3b;
    color: #fff;
    padding: 6px 10px;
    min-height: 40px;
    text-decoration: none;
    font-size: .85rem;
    white-space: nowrap;
}

.news-viewer :is(button, a):focus-visible {
    outline: 2px solid #ffbb9a;
    outline-offset: 2px;
}

.news-viewer button[aria-pressed="true"] {
    background: #fff;
    color: #171b24;
}

.news-viewer button:disabled {
    opacity: .45;
}

.news-viewer__stage {
    display: grid;
    place-items: center;
    overflow: auto;
    min-width: 0;
    touch-action: pan-y pinch-zoom;
}

.news-viewer__stage img {
    display: block;
    grid-area: 1 / 1;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
}

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

.news-viewer__stage.is-zoomed {
    display: block;
    touch-action: auto;
}

.news-viewer__stage.is-zoomed img {
    max-width: none;
    max-height: none;
    margin: auto;
}

.news-viewer__footer p,
.news-viewer__stage p {
    color: #f4f5fa;
    margin: 0;
    max-height: 20vh;
    overflow: auto;
    text-align: center;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
