/* A single original-photo crest, with responsive rotation and photo relief. */
.viewer-image-stage.helio-parallax-active {
  position: relative;
  isolation: isolate;
  background: #10110e;
  cursor: default;
}

.helio-parallax {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 10px 12px 12px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 48%, #242016 0%, #151510 43%, #10110e 76%);
  color: #c9c6b9;
}

.helio-parallax[hidden],
.helio-parallax [hidden] {
  display: none !important;
}

.helio-parallax-surface {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: crosshair;
  border-radius: 2px;
  outline: 0;
}

.helio-parallax-surface:focus-visible {
  outline: 1px solid #cba75b;
  outline-offset: -3px;
}

.helio-parallax-front,
.helio-parallax-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  pointer-events: none;
  filter: drop-shadow(0 9px 13px #0005);
}

.helio-parallax-front {
  transform: scale(.93);
  transform-origin: center;
}

.helio-parallax.is-ready .helio-parallax-front {
  visibility: hidden;
}

.helio-parallax.is-css-renderer .helio-parallax-front {
  visibility: visible;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.helio-parallax.is-css-renderer:not(.is-static) .helio-parallax-front {
  will-change: transform;
}

.helio-parallax.is-static .helio-parallax-surface {
  touch-action: pan-y;
  cursor: default;
}

.helio-parallax-surface.is-dragging {
  cursor: grabbing;
}

.helio-parallax .helio-parallax-hint {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 8px;
  color: #aaa798;
  font-family: var(--body, sans-serif);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .025em;
  text-align: center;
  pointer-events: none;
}

.helio-parallax-accessible-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .helio-parallax {
    padding: 6px 7px 10px;
    gap: 3px;
  }

  .helio-parallax .helio-parallax-hint {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .helio-parallax-surface {
    touch-action: pan-y;
    cursor: default;
  }
}

body.motion-off .helio-parallax-surface {
  touch-action: pan-y;
  cursor: default;
}
