/* ---------- Static fallback layer ---------- */
.thumb .thumb-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
}

/* Hide the static layer while sprite is animating */
.thumb.has-sprite.is-animating .thumb-static {
  opacity: 0;
}

/* ---------- Sprite sheet element ---------- */
.video-splash.is-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;

  background-repeat: no-repeat;

  /* defaults to avoid 0px flash before JS runs */
  background-size: cover;
  background-position: 0 0;

  /* JS will set these */
  --bgW: 0px;
  --bgH: 0px;
  --posX: 0px;
  --posY: 0px;

  background-size: var(--bgW) var(--bgH);
  background-position: var(--posX) var(--posY);

  user-select: none;
  pointer-events: none;
  will-change: background-position;
}