/* Case Studies hero video overlay. Only used inside /case-studies/index.html */
.case-video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #07111d;
  box-shadow: 0 22px 55px rgba(6, 18, 32, .22);
  isolation: isolate;
}

.case-video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #07111d;
}

.case-video-poster {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), var(--case-video-thumb);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}

.case-video-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.case-video-play {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(190, 0, 18, .92);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 35px rgba(176, 0, 18, .35), 0 0 0 10px rgba(255,255,255,.18);
  cursor: pointer;
}

.case-video-play span {
  transform: translateX(2px);
  display: block;
}

.case-video-ended-panel {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 45px rgba(8, 20, 36, .20);
  backdrop-filter: blur(8px);
}

.case-video-shell.is-ended .case-video-play {
  display: none;
}

.case-video-shell.is-ended .case-video-ended-panel {
  display: flex;
}

.case-video-action {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  font-size: 15px;
}

.case-video-action.primary {
  background: #c60014;
  color: #fff;
  box-shadow: 0 10px 24px rgba(198, 0, 20, .25);
}

.case-video-action.secondary {
  background: #111827;
  color: #fff;
}

.case-video-shell:focus-within {
  outline: 3px solid rgba(198, 0, 20, .22);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .case-video-play {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .case-video-ended-panel {
    border-radius: 18px;
    gap: 10px;
    max-width: calc(100% - 28px);
  }

  .case-video-action {
    padding: 10px 15px;
    font-size: 13px;
  }
}
