.site-photo-zoom,
main a:has(> img):is([href$=".webp"], [href$=".jpg"], [href$=".jpeg"], [href$=".png"], [href$=".gif"], [href$=".avif"]) {
  cursor: zoom-in;
}
.site-photo-zoom:focus-visible,
.site-photo-viewer button:focus-visible { outline: 2px solid #ff9ab5; outline-offset: 3px; }
.site-photo-viewer {
  box-sizing: border-box;
  width: fit-content;
  max-width: calc(100vw - 1.25rem);
  max-height: calc(100dvh - 1.25rem);
  padding: .55rem;
  overflow: hidden;
  border: 1px solid #93475e;
  border-radius: .9rem;
  background: #20121a;
  color: #fff;
}
.site-photo-viewer::backdrop { background: #0b050aeb; }
.site-photo-viewer img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: .4rem;
}
.site-photo-viewer button {
  position: absolute;
  inset: 1.1rem 1.1rem auto auto;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #f39db5;
  border-radius: 50%;
  background: linear-gradient(145deg, #5c1b34f5, #201219f5);
  box-shadow: 0 .25rem .9rem #0009, inset 0 1px #ffffff2a;
  color: #fff;
  cursor: pointer;
}

.site-photo-viewer button::before,
.site-photo-viewer button::after {
  content: '';
  grid-area: 1 / 1;
  width: 1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.site-photo-viewer button::after { transform: rotate(-45deg); }
.site-photo-viewer button:hover { background: #812346; }
