body.rcs-photo-viewer-open {
  overflow-y: scroll;
}

.rcs-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  background: rgba(3, 7, 18, 0.94);
}

.rcs-photo-viewer[hidden] {
  display: none !important;
}

.rcs-photo-viewer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-out;
}

.rcs-photo-viewer__chrome {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-height: 56px;
  pointer-events: none;
}

.rcs-photo-viewer__close {
  pointer-events: auto;
  position: absolute;
  top: 10px;
  right: 12px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}

.rcs-photo-viewer__download {
  pointer-events: auto;
  position: absolute;
  top: 14px;
  right: 68px;
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 4;
}

.rcs-photo-viewer__download:hover {
  background: rgba(255, 255, 255, 0.28);
}

.rcs-photo-viewer__close:hover,
.rcs-photo-viewer__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.rcs-photo-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 3;
}

.rcs-photo-viewer__nav--prev { left: 12px; }
.rcs-photo-viewer__nav--next { right: 12px; }

.rcs-photo-viewer__nav[hidden],
.rcs-photo-viewer__cap[hidden],
.rcs-photo-viewer__meta[hidden] {
  display: none !important;
}

.rcs-photo-viewer__stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  overflow: hidden;
  cursor: zoom-in;
}

.rcs-photo-viewer__stage.is-zoomed {
  cursor: grab;
}

.rcs-photo-viewer__stage.is-panning {
  cursor: grabbing;
}

.rcs-photo-viewer__img {
  max-width: 96vw;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.rcs-photo-viewer__img.is-peep {
  image-rendering: pixelated;
}

.rcs-photo-viewer__hint {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.7;
}

.rcs-photo-viewer__foot {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 10px 16px 16px;
  text-align: center;
  color: #f8fafc;
}

.rcs-photo-viewer__meta {
  font-size: 13px;
  font-weight: 700;
}

.rcs-photo-viewer__cap {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.85;
}
