/* Independent hands entering the existing photographic frame. The original
   photograph remains the accessible, no-script and reduced-motion fallback. */
.ps-corporate-prints > .print-motion {
  position: relative;
  z-index: 1;
  display: block;
  width: min(80%, calc(80svh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
}
.print-motion > img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  opacity: 1;
}
.print-motion-art {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.print-motion.is-print-motion-ready > img { opacity: 0; }
.print-motion.is-print-motion-ready > .print-motion-art { display: block; }
.print-motion-hand {
  transform-box: view-box;
  transform-origin: 50% 85%;
}
.print-motion-hand--left { transform: translateX(-76%) rotate(-5deg); }
.print-motion-hand--right { transform: translateX(76%) rotate(5deg); }
.print-motion-hand--center { transform: translateY(108%) rotate(-2deg); }
.is-print-motion-playing .print-motion-hand {
  animation-duration: 1080ms;
  animation-timing-function: cubic-bezier(.19,.78,.25,1);
  animation-fill-mode: both;
}
.is-print-motion-playing .print-motion-hand--left { animation-name: print-hand-left; }
.is-print-motion-playing .print-motion-hand--right { animation-name: print-hand-right; animation-delay: 100ms; }
.is-print-motion-playing .print-motion-hand--center { animation-name: print-hand-center; animation-duration: 1160ms; animation-delay: 200ms; }
.print-motion.is-print-motion-settled > img { opacity: 1; transition: opacity 180ms ease; }
.print-motion.is-print-motion-settled > .print-motion-art { visibility: hidden; transition: visibility 0s 180ms; }
.ps-corporate-prints.is-print-motion-ready::before,
.ps-corporate-prints.is-print-motion-ready::after { opacity: 0; }
.ps-corporate-prints.is-print-motion-settled::before,
.ps-corporate-prints.is-print-motion-settled::after { opacity: 1; transition: opacity 180ms ease; }

@keyframes print-hand-left {
  from { transform: translateX(-76%) rotate(-5deg); }
  to { transform: translateX(0) rotate(0); }
}
@keyframes print-hand-right {
  from { transform: translateX(76%) rotate(5deg); }
  to { transform: translateX(0) rotate(0); }
}
@keyframes print-hand-center {
  from { transform: translateY(108%) rotate(-2deg); }
  to { transform: translateY(0) rotate(0); }
}

body[data-event-slug="christmas-photo-booths"] .ps-corporate-prints > .print-motion {
  width: min(100%, var(--wide));
}
@media screen and (max-width: 760px) {
  body:is(.editorial-celebration, .planner-corporate) .ps-corporate-prints > .print-motion {
    width: 125%;
    max-width: none;
    margin: 0 0 0 -12.5%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .print-motion.is-print-motion-ready > img { opacity: 1; transition: none; }
  .print-motion.is-print-motion-ready > .print-motion-art { display: none; }
  .ps-corporate-prints.is-print-motion-ready::before,
  .ps-corporate-prints.is-print-motion-ready::after { opacity: 1; transition: none; }
  .print-motion-hand { animation: none !important; }
}
