.panels .art {
  --x: 50%;
  --y: 50%;
  --radius: clamp(2.8rem, 20cqi, 5rem);
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 0;
  cursor: zoom-in;
  touch-action: manipulation;
}
.art > img, .loupe-view > img { display: block; }
.art > span { pointer-events: none; }
.loupe-view {
  position: absolute;
  inset: 0;
  background: inherit;
  clip-path: circle(var(--radius) at var(--x) var(--y));
  opacity: 0;
  transition: opacity .16s ease-out;
}
.loupe-view > img { transform: scale(2.15); transform-origin: var(--x) var(--y); }
.art::after {
  content: "";
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(2 * var(--radius));
  height: calc(2 * var(--radius));
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 1px solid #b8995b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fffcf2b5, 0 2px 10px #231c1830;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease-out;
}
.loupe-badge {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #b3985b;
  border-radius: 50%;
  background: #fffdf5ef;
  color: #235c50;
  transition: opacity .16s ease-out;
}
.loupe-badge::before, .loupe-badge::after { content: ""; position: absolute; }
.loupe-badge::before { left: .49rem; top: .45rem; width: .62rem; height: .62rem; border: 1.5px solid; border-radius: 50%; }
.loupe-badge::after { left: 1.07rem; top: 1.08rem; width: .41rem; height: 1.5px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.art.is-inspecting .loupe-view, .art.is-inspecting::after { opacity: 1; }
.art.is-inspecting .loupe-badge { opacity: 0; }
.art[aria-pressed="true"] { cursor: zoom-out; }
@media (prefers-reduced-motion: reduce) {
  .loupe-view, .art::after, .loupe-badge { transition: none; }
}
