:root {
  --zoom-cursor: url('./zoom-cursor.svg') 26 26, pointer;
  --image-hover-transition: scale .58s var(--ease), translate .58s var(--ease);
}

.image-mask-pending { opacity: 0; }

.zoom-link { cursor: var(--zoom-cursor); }
.pswp .pswp__img,
.pswp.pswp--open :is(.pswp__img, .pswp__img:active) { cursor: var(--zoom-cursor); }

[data-cursor][data-cursor-active],
.pswp.pswp--open .pswp__img[data-cursor-active] { cursor: none; }

.cursor { translate: -50% -50%; }
.cursor.is-visible { transition-property: width, height, background; }
.cursor[data-zoom-cursor] { transition: none; }
.photo-open .cursor { z-index: calc(var(--pswp-root-z-index, 100000) + 1); }
.page-covered .cursor, .page-leaving .cursor { visibility: hidden; }

@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .motion-surface:is(:hover, :focus-visible, [data-image-hover-active]),
  a:focus-visible > .motion-surface { --image-scale: 1.085; }

  .about-slide[data-current] img { pointer-events: auto; }

  main img:not(:where(.motion-pixels img, [data-portrait-slide] img, [data-floating-preview] img)) {
    translate: var(--image-x, 0px) var(--image-y, 0px);
    transition: var(--image-hover-transition);
  }

  main img:is(:hover, [data-image-hover-active]):not(:where(
    .motion-pixels img, [data-portrait-slide] img, [data-floating-preview] img, [data-dragging] img, [data-zooming] img
  )) { scale: 1.055; }

  [data-dragging] .motion-surface, [data-zooming] .motion-surface { --image-scale: 1; }
}

@media (prefers-reduced-motion: reduce), print {
  .image-mask-pending { opacity: 1; }
}
