/**
 * Custom pointer.
 *
 * @package Esi
 * @author  Mattia Gosetto <mattia.gosetto@gmail.com>
 */

.esi-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  width: 2rem;
  aspect-ratio: 47.8 / 49.8;
  translate: -50% -50%;
  background: url(../img/cursor.svg?ver=0.11.18) center / contain no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.esi-cursor.is-visible {
  opacity: 0.5;
}

.esi-cursor.is-hidden {
  opacity: 0;
}

@media not all and (any-pointer: fine) {
  .esi-cursor {
    display: none;
  }
}
