/* The project preview deliberately stays a small, quiet cursor companion. */
.sidebar-preview {
  position: fixed;
  z-index: 100;
  max-width: min(50vw, 56vh);
  max-height: 56vh;
  overflow: visible;
  pointer-events: none;
  background: transparent;
  visibility: hidden;
  opacity: 0;
  transition: opacity 120ms linear, visibility 0s linear 120ms;
}

.sidebar-preview.is-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 120ms linear;
}

.sidebar-preview img {
  display: block;
  width: auto;
  max-width: min(50vw, 56vh);
  height: auto;
  max-height: 56vh;
  margin: 0;
}

@media (hover: none), (pointer: coarse), (max-width: 47.99rem) {
  .sidebar-preview {
    display: none;
  }
}
