.news-gallery { width: 100%; max-width: 800px; margin: 32px auto; }
.news-gallery [hidden], .news-gallery[hidden] { display: none !important; }
.news-gallery__viewport { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #f5f9f3; }
.news-gallery__slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-gallery .news-gallery__image { display: block; width: 100% !important; height: 100% !important; max-width: none; margin: 0 !important; object-fit: contain; object-position: center; border-radius: 0; }
.news-gallery__controls { display: flex; justify-content: center; margin-top: 14px; }
.news-gallery__arrow, .news-gallery__counter { display: none !important; }
.news-gallery__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.news-gallery .news-gallery__dot { display: grid; place-items: center; width: 28px; height: 32px; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; cursor: pointer; appearance: none; }
.news-gallery__dot::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: #cbdde9; transition: background-color .2s; }
.news-gallery__dot[aria-pressed="true"]::before { background: #1689db; }
.news-gallery:focus-visible, .news-gallery button:focus-visible { outline: 2px solid #1689db; outline-offset: 3px; }
@media (max-width: 767px) { .news-gallery { margin: 24px auto; } .news-gallery__dots { gap: 0; } .news-gallery .news-gallery__dot { width: 24px; } }

.news-gallery__loading { width: 24px; height: 24px; margin: 20px auto 8px; border: 3px solid #dce9f0; border-top-color: #1689db; border-radius: 50%; animation: news-loading-spin .8s linear infinite; }
.news-gallery__loading[hidden] { display: none !important; }
@keyframes news-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .news-gallery__loading { animation: none; } }

.news-gallery__image { cursor: zoom-in; }
.news-image-modal { position: fixed; inset: 0; width: fit-content; max-width: 94vw; max-height: 92dvh; margin: auto; padding: 0; border: 0; border-radius: 10px; overflow: visible; background: #fff; }
.news-image-modal::backdrop { background: rgb(0 0 0 / .8); }
.news-image-modal__image { display: block; width: auto; height: auto; max-width: 94vw; max-height: 92dvh; margin: 0; object-fit: contain; border-radius: 10px; }
.news-image-modal__close { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgb(0 0 0 / .7); font: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.news-image-modal__close:focus-visible, .news-gallery__image:focus-visible { outline: 3px solid #1689db; outline-offset: 3px; }
