.project-video {
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

.project-video::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acid);
  box-shadow: 0 0 18px 4px rgba(200, 255, 104, 0.34);
  animation: scan 4s ease-in-out infinite;
  pointer-events: none;
}

.project-video video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #000;
}

.project-video .video-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-video .video-play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(233, 238, 228, 0.55);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(200, 255, 104, 0.92);
  box-shadow: 0 0 34px rgba(200, 255, 104, 0.28);
  cursor: pointer;
  font-size: 1.25rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.project-video .video-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.project-video.is-playing .video-play,
.project-video.video-unavailable .video-play {
  opacity: 0;
  pointer-events: none;
}

.project-card:not(.is-active) .video-play {
  pointer-events: none;
}

.project-video.video-unavailable video {
  display: none;
}

.project-card:not(.is-active) .project-video video {
  pointer-events: none;
}

@media (max-width: 800px) {
  .project-video {
    height: auto;
  }

  .project-video .video-play {
    width: 58px;
    height: 58px;
  }
}
