.gallery-magnifier {
  position: fixed;
  z-index: 2;
  width: min(180px, 33vw, 33vh);
  aspect-ratio: 1;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fafaf8 no-repeat;
  box-shadow: 0 0 0 2px #fff, 0 4px 20px #211a2b66;
  pointer-events: none;
}

#lightbox-magnifier {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-inline: auto 8px;
  padding: 0;
}
#lightbox-magnifier[aria-pressed="true"] {
  background: #514265;
  color: white;
}
.touch-magnifier-active #lightbox-image {
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.touch-magnifier-active .gallery-magnifier {
  width: min(180px, 40vw, 30dvh);
}
@media (any-pointer: coarse) {
  #lightbox-magnifier { display: inline-flex; }
}
.magnifier-cue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-inline: 8px 5px;
  color: #a32530;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.magnifier-cue[hidden] {
  display: none;
}
