/* Subtle pointer-following zoom for artwork covers across the gallery. */
.artwork-magnifier {
  overflow: hidden !important;
  cursor: zoom-in;
}
.artwork-magnifier img {
  transform: var(--artwork-base-transform, scale(1)) !important;
  transform-origin: var(--artwork-zoom-x, 50%) var(--artwork-zoom-y, 50%) !important;
  transition: transform 360ms cubic-bezier(.2,.65,.3,1) !important;
  will-change: transform;
}

.artwork-magnifier:is(:hover, :focus-visible) img {
  transform: scale(1.35) var(--artwork-base-transform, scale(1)) !important;
}
@media (prefers-reduced-motion: reduce) {
  .artwork-magnifier img { transition: none !important; }
}
@media (hover: none) {
  .artwork-magnifier { cursor: auto; }
  .artwork-magnifier img { will-change: auto; }
}
