
/* V10 — Cinematic Video Scroll Reveals */

/*
Only project cards are animated.
Player sizes, thumbnail cropping and video
backgrounds remain unchanged.
*/

@media (prefers-reduced-motion:no-preference) {

  .gallery .card.joy-video-reveal {
    opacity: 0;
    filter: blur(8px);
    transform:
      translate3d(0, var(--joy-entry-y, 32px), 0)
      scale(.975);

    transition:
      opacity 720ms cubic-bezier(.22,1,.36,1),
      filter 720ms cubic-bezier(.22,1,.36,1),
      transform 720ms cubic-bezier(.22,1,.36,1);

    transition-delay: var(--joy-delay, 0ms);
  }

  .gallery .card.joy-video-reveal.joy-video-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0,0,0) scale(1);
  }

  /* Cards that leave the screen reset instantly,
     so the next entrance looks clean. */
  .gallery .card.joy-video-reset {
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

}

/* Ensure videos being watched are not hidden */
.gallery .card.joy-video-playing {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* Keep touch and accessibility behavior simple */
@media (prefers-reduced-motion:reduce) {
  .gallery .card.joy-video-reveal {
    opacity:1 !important;
    filter:none !important;
    transform:none !important;
    transition:none !important;
  }
}
