.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  background: #171717;
}

.background > img {
  display: block;
  flex: none;
  width: max(100%, 840px);
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .14);
}

@media (max-width: 600px) {
  .background > img {
    width: 100%;
    height: auto;
    align-self: flex-start;
    object-fit: contain;
  }

  .background::after {
    bottom: auto;
    aspect-ratio: 4 / 3;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .14) 85%, #171717);
  }
}
