.screenshots {
  max-width: none;
  width: 100%;
  padding-inline: max(28px, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, #06131f, #0a1d2b 52%, #06131f);
  border-block: 1px solid #17394a;
}

.screenshots-heading {
  max-width: 790px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.screenshot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #071521;
  box-shadow: 0 18px 45px rgb(0 0 0 / 24%);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.screenshot--featured {
  grid-column: 1 / -1;
}

.screenshot:hover,
.screenshot:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 22px 60px rgb(0 0 0 / 38%);
  outline: 0;
  transform: translateY(-3px);
}

.screenshot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: saturate(.92) contrast(1.04);
  transition: transform .45s ease, filter .3s ease;
}

.screenshot:hover img {
  filter: saturate(1.05) contrast(1.06);
  transform: scale(1.015);
}

.screenshot span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 28px 20px 17px;
  background: linear-gradient(transparent, rgb(3 13 21 / 94%));
}

.screenshot b {
  color: #f3e7cf;
  font: 700 21px 'Barlow Condensed', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.screenshot small {
  color: #9bb4be;
  font: 10px 'Roboto Mono', monospace;
}

.screenshots-note {
  margin: 20px 0 0;
  color: #718e99;
  font: 10px 'Roboto Mono', monospace;
  text-align: right;
}

@media (max-width: 800px) {
  .screenshots {
    padding-inline: 20px;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .screenshot--featured {
    grid-column: auto;
  }

  .screenshots-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot,
  .screenshot img {
    transition: none;
  }
}
