.news-grid .news-lightbox-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #102f46;
  font: 800 13px/1.5 "Lexend", Arial, sans-serif;
  cursor: pointer;
}

.news-grid .news-lightbox-trigger span {
  color: #0069ad;
  font-size: 17px;
  transition: transform .2s ease;
}

.news-grid .news-lightbox-trigger:hover span {
  transform: translateX(3px);
}

.news-grid .news-lightbox-trigger:focus-visible,
.news-lightbox__close:focus-visible,
.news-lightbox__scroll:focus-visible,
.news-lightbox__retry:focus-visible {
  outline: 3px solid #55bcec;
  outline-offset: 4px;
}

.news-lightbox {
  width: min(980px, calc(100vw - 40px));
  max-width: none;
  height: min(880px, calc(100dvh - 40px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #f7fbfe;
  color: #102f46;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(3, 24, 38, .35);
}

.news-lightbox::backdrop {
  background: rgba(4, 25, 39, .82);
  backdrop-filter: blur(7px);
}

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

.news-lightbox__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 34px 24px;
  border-bottom: 1px solid #d5e8f3;
  background: rgba(255, 255, 255, .96);
}

.news-lightbox__header p {
  margin: 0 0 7px;
  color: #0069ad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.news-lightbox__header h2 {
  margin: 0;
  font: 650 clamp(28px, 4vw, 42px)/1.08 "Lexend", Arial, sans-serif;
  letter-spacing: -.04em;
}

.news-lightbox__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: #e5f4fc;
  color: #0069ad;
  font: 400 30px/1 "Lexend", Arial, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.news-lightbox__close:hover {
  background: #0069ad;
  color: #fff;
}

.news-lightbox__scroll {
  min-height: 0;
  padding: 0 34px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.news-lightbox__list {
  display: grid;
}

.news-feed-item {
  display: grid;
  grid-template-columns: minmax(130px, .28fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(34px, 5vw, 54px) 0;
  border-bottom: 1px solid #d5e8f3;
}

.news-feed-item__meta time {
  display: inline-block;
  color: #0069ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.news-feed-item__body > h2 {
  margin: -5px 0 22px;
  color: #102f46;
  font: 650 clamp(24px, 3vw, 34px)/1.16 "Lexend", Arial, sans-serif;
  letter-spacing: -.035em;
}

.news-feed-item__content {
  color: #4f6c7e;
  font-size: 15px;
  line-height: 1.75;
}

.news-feed-item__content > :first-child {
  margin-top: 0;
}

.news-feed-item__content > :last-child {
  margin-bottom: 0;
}

.news-feed-item__content h1,
.news-feed-item__content h2,
.news-feed-item__content h3,
.news-feed-item__content h4,
.news-feed-item__content .title {
  display: block;
  margin: 28px 0 10px;
  color: #183f58;
  font: 650 18px/1.35 "Lexend", Arial, sans-serif;
  letter-spacing: -.015em;
}

.news-feed-item__content a {
  color: #0069ad;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-feed-item__content img {
  display: block;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 50vh !important;
  height: auto !important;
  margin: 24px auto !important;
  border-radius: 16px;
  object-fit: contain;
}

.news-lightbox__sentinel {
  height: 1px;
}

.news-lightbox__status {
  min-height: 44px;
  margin: 0;
  padding: 18px 0 4px;
  color: #6a8291;
  font-size: 12px;
  text-align: center;
}

.news-lightbox__status[data-loading="true"]::before {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin: 0 9px -2px 0;
  border: 2px solid #c3deed;
  border-top-color: #0069ad;
  border-radius: 50%;
  content: "";
  animation: news-loading .7s linear infinite;
}

.news-lightbox__retry {
  margin-left: 8px;
  padding: 5px 10px;
  border: 1px solid #9fcce3;
  border-radius: 999px;
  background: #fff;
  color: #0069ad;
  font: 700 11px/1.4 "Lexend", Arial, sans-serif;
  cursor: pointer;
}

@keyframes news-loading {
  to { transform: rotate(360deg); }
}

@media (max-width: 650px) {
  .news-lightbox {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  .news-lightbox__header {
    padding: 20px 20px 18px;
  }

  .news-lightbox__close {
    width: 40px;
    height: 40px;
  }

  .news-lightbox__scroll {
    padding: 0 20px 24px;
    scrollbar-gutter: auto;
  }

  .news-feed-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 34px 0 38px;
  }

  .news-feed-item__body > h2 {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-grid .news-lightbox-trigger span,
  .news-lightbox__close {
    transition: none;
  }

  .news-lightbox__status[data-loading="true"]::before {
    animation-duration: 1.4s;
  }
}
