.nastroenie-photo-zoom {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: var(--radius, .75rem);
  cursor: zoom-in;
}
.nastroenie-photo-zoom-cover {
  width: 100%;
}
.nastroenie-photo-zoom-icon {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: grid;
  place-items: center;
  width: 2.35rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(20 17 15 / 76%);
  color: #fff;
  pointer-events: none;
}
.nastroenie-photo-zoom-icon::before {
  position: absolute;
  top: .61rem;
  left: .61rem;
  width: .8rem;
  height: .8rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}
.nastroenie-photo-zoom-icon::after {
  position: absolute;
  top: 1.43rem;
  left: 1.38rem;
  width: .42rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
  content: "";
}
@media (hover: hover) {
  .nastroenie-photo-zoom-icon { opacity: 0; }
  .nastroenie-photo-zoom:hover .nastroenie-photo-zoom-icon,
  .nastroenie-photo-zoom:focus-visible .nastroenie-photo-zoom-icon { opacity: 1; }
}
.nastroenie-photo-viewer {
  position: fixed;
  inset: 0;
  width: min(1280px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  margin: auto;
  border: 0;
  background: transparent;
  color: #fff;
}
.nastroenie-photo-viewer::backdrop {
  background: rgb(16 13 11 / 87%);
}
.nastroenie-photo-viewer-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 44px;
  margin-bottom: .45rem;
}
.nastroenie-photo-viewer-position {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  padding: .3rem .7rem;
  border-radius: 1rem;
  background: rgb(20 17 15 / 85%);
  font: 600 .875rem/1.4 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.nastroenie-photo-viewer-stage {
  position: relative;
  height: min(760px, calc(100vh - 76px));
  height: min(760px, calc(100dvh - 76px));
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.nastroenie-photo-viewer-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nastroenie-photo-viewer button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 50%;
  background: rgb(20 17 15 / 85%);
  color: #fff;
  font: 1.75rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.nastroenie-photo-viewer [hidden] {
  display: none;
}
.nastroenie-photo-viewer button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.nastroenie-photo-viewer-close {
  grid-column: 3;
  grid-row: 1;
}
.nastroenie-photo-viewer-prev,
.nastroenie-photo-viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.nastroenie-photo-viewer-prev { left: .5rem; }
.nastroenie-photo-viewer-next { right: .5rem; }
.nastroenie-photo-viewer-prev::before,
.nastroenie-photo-viewer-next::before {
  width: .6rem;
  height: .6rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
}
.nastroenie-photo-viewer-prev::before { transform: translateX(2px) rotate(135deg); }
.nastroenie-photo-viewer-next::before { transform: translateX(-2px) rotate(-45deg); }
@media (hover: none) and (pointer: coarse) {
  .nastroenie-photo-viewer .nastroenie-photo-viewer-prev,
  .nastroenie-photo-viewer .nastroenie-photo-viewer-next {
    display: none;
  }
}
html.nastroenie-photo-viewer-open {
  overflow: hidden;
}
