body.splash-active {
  overflow: hidden;
}

.task-splash {
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  background: #5129b7;
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  transition: opacity 480ms ease, visibility 480ms ease;
}

.task-splash picture {
  position: absolute;
  inset: 0;
}

.task-splash img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
}

.task-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-aspect-ratio: 3 / 4) {
  .task-splash img {
    object-fit: cover;
  }
}

@media (min-width: 901px) {
  .task-splash img {
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-splash {
    transition-duration: 120ms;
  }
}
