/* Isolated main-site integration of the finished standalone modal. */
.holy-moley-modal {

  --paper: #fff;
  --ink: #000;
  --pink: #ff2b91;
  --red: #f00;
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
}

.holy-moley-modal,
.holy-moley-modal *,
.holy-moley-modal *::before,
.holy-moley-modal *::after {
  box-sizing: border-box;
}

.holy-moley-modal button {
  font: inherit;
}

.holy-moley-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  visibility: hidden;
  overflow: hidden;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.holy-moley-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 240ms ease;
}

.holy-moley-modal .holy-moley-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  scrollbar-color: #999 transparent;
}

.holy-moley-modal .holy-moley-scroll:focus {
  outline: 0;
}

.holy-moley-modal .holy-moley-document {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 6895.8896484375;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.holy-moley-modal .stage-layer {
  position: absolute;
  top: var(--top);
  left: var(--left);
  display: block;
  width: var(--width);
  height: var(--height);
  max-width: none;
  margin: 0;
}

.holy-moley-modal .banner-art,
.holy-moley-modal .vector-copy,
.holy-moley-modal .frame-line {
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.holy-moley-modal .banner-art {
  z-index: 1;
}

.holy-moley-modal .vector-copy {
  z-index: 4;
}

.holy-moley-modal .frame-line {
  z-index: 5;
}

.holy-moley-modal .frame-anchor {
  position: absolute;
  z-index: 6;
  top: var(--top);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.holy-moley-modal .wafer {
  --inertia-y: 0px;
  z-index: 2;
  overflow: hidden;
  background: var(--paper);
  transform: translate3d(0, var(--inertia-y), 0);
  will-change: transform;
  contain: layout paint;
}

.holy-moley-modal .wafer > img,
.holy-moley-modal .wafer > video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.holy-moley-modal .wafer > img {
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.holy-moley-modal .video-wafer video {
  position: absolute;
  z-index: 2;
  top: var(--video-top);
  left: var(--video-left);
  width: var(--video-width);
  height: var(--video-height);
  max-width: none;
  object-fit: fill;
  background: var(--paper);
  opacity: 0;
  transition: opacity 1.3s ease;
}

.holy-moley-modal .video-wafer.is-loaded video {
  opacity: 1;
}

.holy-moley-modal .video-loading {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  background: var(--paper);
  pointer-events: none;
}

.holy-moley-modal .modal-control {
  position: fixed;
  z-index: 1010;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.holy-moley-modal .control-down {
  top: 1.788996458054vw;
  left: 83.209997812907vw;
  width: 5.140101114909vw;
  aspect-ratio: 98.68994140625 / 114.599998474121;
}

.holy-moley-modal .control-top {
  top: 1.797230045001vw;
  left: 89.050521850586vw;
  width: 2.549997965495vw;
  aspect-ratio: 48.9599609375 / 55.979999542236;
}

.holy-moley-modal .control-close {
  top: 1.797230045001vw;
  left: 92.570311228434vw;
  width: 3.140627543132vw;
  aspect-ratio: 60.300048828125 / 55.979999542236;
}

.holy-moley-modal .control-art,
.holy-moley-modal .control-state {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.holy-moley-modal .control-state {
  object-fit: fill;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.holy-moley-modal .control-base {
  opacity: 1;
}

.holy-moley-modal .modal-control:hover .control-base,
.holy-moley-modal .modal-control:focus-visible .control-base,
.holy-moley-modal .modal-control:active .control-base,
.holy-moley-modal .modal-control:hover .control-active,
.holy-moley-modal .modal-control:focus-visible .control-active {
  opacity: 0;
}

.holy-moley-modal .modal-control:hover .control-hover,
.holy-moley-modal .modal-control:focus-visible .control-hover {
  opacity: 1;
}

.holy-moley-modal .modal-control:active .control-hover {
  opacity: 0;
}

.holy-moley-modal .modal-control:active .control-active {
  opacity: 1;
}

.holy-moley-modal .modal-control:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.holy-moley-modal .control-down[aria-disabled="true"] {
  cursor: default;
}

.holy-moley-modal .accessible-copy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .holy-moley-modal,
  .holy-moley-modal .video-wafer video {
    transition-duration: .01ms !important;
  }

  .holy-moley-modal .wafer {
    transform: none !important;
  }
}
