/* Shared click-to-play video card styles; loads after site.css. */

/* 7. Click-to-play video cards ----------------------------------------------- */
/* Backend wiring, not in the design export: hero intro, graduate stories, full intro.
   Poster + play button until clicked, then the player fills the card (portrait videos
   sit letterboxed on the poster). The page-specific parts live in home.css and about.css. */
[data-video] { position: relative; }
.vc-poster,
.vc-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vc-poster { object-fit: cover; }
.vc-player { z-index: 2; object-fit: contain; background: transparent; }
iframe.vc-player { background: var(--c-indigo-deep); }
/* Shown from the click until the first frames can play. */
.vc-spinner {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--c-white);
  animation: vc-spin 0.8s linear infinite;
  pointer-events: none;
}
@keyframes vc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vc-spinner { animation-duration: 2s; } }

