.news-gallery {
  float: right;
  width: min(440px, 42vw);
  margin: 0 0 30px 38px;
}

.news-gallery-stage {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: var(--blue-light);
  border-radius: 17px;
}

.news-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-image-zoomable {
  cursor: zoom-in;
}

.news-image-zoomable:focus-visible {
  outline: 4px solid var(--green);
  outline-offset: -4px;
}

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

.news-gallery-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(0, 59, 94, .82);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.news-gallery-control:hover,
.news-gallery-control:focus-visible {
  background: var(--blue);
  outline: 3px solid rgba(100, 190, 46, .42);
  outline-offset: 2px;
  transform: translateY(-50%) scale(1.05);
}

.news-gallery-control span {
  margin-top: -3px;
  font-size: 2rem;
  line-height: 1;
}

.news-gallery-prev { left: 13px; }
.news-gallery-next { right: 13px; }

.news-gallery-count {
  position: absolute;
  right: 13px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 42, 67, .8);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.news-gallery-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 10px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.news-gallery-thumb {
  width: 74px;
  height: 58px;
  padding: 3px;
  flex: 0 0 74px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  opacity: .67;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.news-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.news-gallery-thumb:hover,
.news-gallery-thumb:focus-visible,
.news-gallery-thumb.active {
  border-color: var(--green);
  opacity: 1;
  outline: none;
  transform: translateY(-2px);
}

.news-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(14px, 3vw, 34px);
  overflow: hidden;
  color: #fff;
  background: rgba(0, 24, 39, .94);
  border: 0;
}

.news-lightbox::backdrop {
  background: rgba(0, 24, 39, .82);
  backdrop-filter: blur(5px);
}

.news-lightbox-inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.news-lightbox-figure {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  place-items: center;
}

.news-lightbox-image {
  display: block;
  width: auto;
  max-width: calc(100vw - 68px);
  height: auto;
  max-height: calc(100dvh - 68px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .34);
}

.news-lightbox-close,
.news-lightbox-control {
  position: absolute;
  z-index: 3;
  display: grid;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(0, 59, 94, .88);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  cursor: pointer;
}

.news-lightbox-close:hover,
.news-lightbox-close:focus-visible,
.news-lightbox-control:hover,
.news-lightbox-control:focus-visible {
  background: var(--green-dark, #348c1f);
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: 3px;
}

.news-lightbox-close {
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.news-lightbox-control {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
}

.news-lightbox-control span {
  margin-top: -4px;
  font-size: 2.6rem;
  line-height: 1;
}

.news-lightbox-prev { left: 0; }
.news-lightbox-next { right: 0; }

.news-lightbox-count {
  position: absolute;
  right: 50%;
  bottom: 0;
  min-height: 34px;
  padding: 7px 13px;
  color: #fff;
  background: rgba(0, 42, 67, .88);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  transform: translateX(50%);
}

@media (max-width: 860px) {
  .news-gallery {
    float: none;
    width: 100%;
    margin: 0 0 26px;
  }
}

@media (max-width: 520px) {
  .news-gallery-control {
    width: 40px;
    height: 40px;
  }

  .news-gallery-prev { left: 9px; }
  .news-gallery-next { right: 9px; }
  .news-gallery-thumb { width: 66px; height: 52px; flex-basis: 66px; }

  .news-lightbox {
    padding: 12px;
  }

  .news-lightbox-image {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 84px);
    border-radius: 7px;
  }

  .news-lightbox-close {
    width: 44px;
    height: 44px;
  }

  .news-lightbox-control {
    top: auto;
    bottom: 0;
    width: 46px;
    height: 46px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-gallery-control,
  .news-gallery-thumb {
    transition: none;
  }
}
