.news-index,
.news-detail {
  max-width: 1180px;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-row {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(14, 28, 49, .9);
  box-shadow: var(--shadow);
}

.news-row--with-image {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.news-row__content {
  min-width: 0;
  padding: 28px 30px;
}

.news-row__content .muted {
  margin-top: 0;
}

.news-row__content h2 {
  margin: 8px 0 12px;
}

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

.news-row__image {
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-left: 1px solid var(--card-border);
  background: #07111f;
}

.news-row__image img,
.news-detail__main-image img,
.news-media-tile img,
.news-media-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-row__image img {
  transition: transform .3s ease, filter .3s ease;
}

.news-row__image:hover img,
.news-row__image:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.news-detail {
  padding-top: 72px;
  padding-bottom: 72px;
}

.news-detail__header {
  margin-bottom: 38px;
}

.news-detail__header--with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 54px;
  align-items: center;
}

.news-detail__header h1 {
  max-width: 18ch;
  margin: 12px 0 22px;
}

.news-detail__header .lead {
  max-width: 62ch;
}

.news-detail__main-image {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #07111f;
  box-shadow: var(--shadow);
}

.news-detail__body {
  max-width: 850px;
  font-size: 1.04rem;
  line-height: 1.75;
}

.news-detail__body p:first-child {
  margin-top: 0;
}

.news-gallery {
  margin: 58px 0 42px;
}

.news-gallery h2 {
  margin-bottom: 22px;
}

.news-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-media-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: #07111f;
  color: #fff;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.news-media-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--accent);
  transition: box-shadow .2s ease, background .2s ease;
}

.news-media-tile:hover::after,
.news-media-tile:focus-visible::after {
  box-shadow: inset 0 0 0 3px var(--accent);
  background: rgba(99, 169, 248, .08);
}

.news-media-tile:focus-visible {
  outline: 3px solid rgba(99, 169, 248, .7);
  outline-offset: 3px;
}

.news-media-tile__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(3, 10, 20, .78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.news-media-tile__caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(2, 6, 13, .94));
  color: #fff;
  font-size: .85rem;
  line-height: 1.35;
  pointer-events: none;
}

body.news-lightbox-open {
  overflow: hidden;
}

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

.news-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  padding: 32px;
  background: rgba(1, 5, 12, .94);
  backdrop-filter: blur(8px);
}

.news-lightbox__content {
  display: grid;
  min-width: 0;
  max-height: calc(100vh - 64px);
  justify-items: center;
}

.news-lightbox__stage {
  display: grid;
  width: 100%;
  max-width: 1180px;
  height: min(72vh, 760px);
  place-items: center;
}

.news-lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

.news-lightbox__stage video {
  display: block;
  width: min(100%, 1100px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

.news-lightbox__caption,
.news-lightbox__status {
  margin: 12px 0 0;
  color: #eef5ff;
  text-align: center;
}

.news-lightbox__caption:empty {
  display: none;
}

.news-lightbox__status {
  margin-top: 5px;
  color: #9fb4cf;
  font-size: .82rem;
}

.news-lightbox button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(7, 17, 31, .84);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.news-lightbox button:hover,
.news-lightbox button:focus-visible {
  border-color: var(--accent);
  background: rgba(99, 169, 248, .25);
}

.news-lightbox button:focus-visible {
  outline: 3px solid rgba(99, 169, 248, .7);
  outline-offset: 3px;
}

.news-lightbox__previous,
.news-lightbox__next {
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
}

.news-lightbox__close {
  position: absolute;
  z-index: 1;
  right: 24px;
  top: 20px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

@media (max-width: 900px) {
  .news-row--with-image {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .news-detail__header--with-image {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 34vw);
    gap: 30px;
  }

  .news-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .news-row--with-image,
  .news-detail__header--with-image {
    grid-template-columns: 1fr;
  }

  .news-row__content {
    padding: 23px 22px;
  }

  .news-row__image {
    min-height: 210px;
    border-top: 1px solid var(--card-border);
    border-left: 0;
  }

  .news-detail {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .news-detail__header--with-image {
    gap: 24px;
  }

  .news-gallery__grid {
    grid-template-columns: 1fr;
  }

  .news-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 72px 8px 20px;
  }

  .news-lightbox__stage {
    height: 68vh;
  }

  .news-lightbox__previous,
  .news-lightbox__next {
    width: 42px;
    height: 42px;
  }

  .news-lightbox__close {
    right: 14px;
    top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-row__image img,
  .news-media-tile::after {
    transition: none;
  }

  .news-row__image:hover img,
  .news-row__image:focus-visible img {
    transform: none;
  }
}
