/* The whole demo is tappable without adding another row or changing its size. */
.ws-project-media { position: relative; }
.video-expand {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
}
.video-expand[hidden] { display: none; }
.video-expand-cue {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgb(255 248 218 / 35%);
  border-radius: 999px;
  background: rgb(32 35 28 / 88%);
  color: var(--cream);
  font: 700 13px/1.2 'DM Sans', sans-serif;
}
.video-expand-cue svg { width: 17px; height: 17px; }
.video-expand:hover .video-expand-cue { background: var(--ink); }
.video-expand:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.video-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0;
  background: rgb(18 22 19 / 96%);
  color: var(--cream);
  overflow: hidden;
  overscroll-behavior: contain;
}
.video-lightbox::backdrop { background: rgb(0 0 0 / 70%); }
.video-lightbox[open] { display: flex; flex-direction: column; gap: 12px; }
.video-lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; }
.video-lightbox-title { margin: 0; font: 700 16px/1.3 'DM Sans', sans-serif; }
.video-lightbox-close, .video-lightbox-retry {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(255 248 218 / 45%);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: 700 16px/1.3 'DM Sans', sans-serif;
  cursor: pointer;
}
.video-lightbox-close:focus-visible, .video-lightbox-retry:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.video-lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1 1 0; }
.video-lightbox-video { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 8px; }
.video-lightbox-feedback { position: absolute; left: 12px; right: 12px; text-align: center; pointer-events: none; }
.video-lightbox-status { display: inline-block; padding: 8px 12px; background: var(--ink); border-radius: 8px; font-size: 16px; }
.video-lightbox-status:empty { display: none; }
.video-lightbox-retry { pointer-events: auto; }
.video-lightbox-retry[hidden] { display: none; }
.video-lightbox-hint { display: none; margin: 0; text-align: center; font-size: 14px; line-height: 1.4; }
@media (max-width: 800px) and (orientation: portrait) { .video-lightbox-hint { display: block; } }
