/* Reserve the video's actual shape before its metadata loads. */
.case-gallery figure.video-figure {
  grid-column: auto;
  width: 100%;
  max-width: 380px;
  justify-self: center;
}
.case-gallery figure.video-figure:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-ratio, 9 / 16);
  background: #e6e5dc;
  overflow: hidden;
}
.case-gallery .video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 92px;
  height: 92px;
  padding: 12px;
  border: 1px solid #ffffffb3;
  border-radius: 50%;
  background: #242521d9;
  color: #fff;
  box-shadow: 0 2px 18px #0002;
  cursor: pointer;
}
.video-play svg { margin-left: 4px; }
.video-play span { font-size: 11px; }
.video-play:hover { background: #242521; }
.video-play:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
.video-play[hidden], .video-error[hidden] { display: none; }
.video-error { font-size: 13px; line-height: 1.5; }
.video-error a { text-decoration: underline; }
@media (max-width: 750px) {
  .case-gallery figure.video-figure { max-width: 350px; }
  .video-play { width: 80px; height: 80px; }
}
