.feature-demo[data-video-modal-trigger] .demo-shell{
  position: relative;
  cursor: zoom-in;
}

.demo-expand-hit{
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: inherit;
  z-index: 2;
}

.demo-expand-hit:focus{
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.22);
  border-radius: inherit;
}

.video-modal[hidden]{
  display: none !important;
}

.video-modal{
  position: fixed;
  inset: 0;
  z-index: 200;
}

.video-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(5,7,12,.82);
  backdrop-filter: blur(4px);
}

.video-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  border-radius: 24px;
  background: #0b1020;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
  overflow: hidden;
}

.video-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.video-modal__close:hover{
  background: rgba(255,255,255,.18);
}

.video-modal__media-wrap{
  background: #000;
}

.video-modal__media{
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: #000;
}

.video-modal__meta{
  padding: 14px 18px 16px;
  background: #0b1020;
}

.video-modal__title{
  margin: 0;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
}

body.video-modal-open{
  overflow: hidden;
}

@media (max-width: 680px){
  .video-modal__dialog{
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 18px;
  }

  .video-modal__close{
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
  }

  .video-modal__media{
    max-height: calc(100vh - 96px);
  }

  .video-modal__meta{
    padding: 12px 14px 14px;
  }
}
