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

.sbl-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .82);
}

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

.sbl-video-modal__dialog {
  position: relative;
  width: min(1000px, 96vw);
  background: #000;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
}

.sbl-video-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.sbl-video-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sbl-video-modal__close {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #764b3d;
  color: #fff;
  cursor: pointer;
  font: 700 31px/36px Arial, sans-serif;
}

.sbl-video-popup-link::before {
  content: '\25B6';
  display: inline-block;
  margin-right: .42em;
  color: #cd201f;
  font-size: .86em;
  text-decoration: none;
}

@media (max-width: 600px) {
  .sbl-video-modal { padding: 10px; }
  .sbl-video-modal__dialog { width: 100%; }
  .sbl-video-modal__close { top: -14px; right: -5px; }
}
