/* This plugin intentionally does not restyle the user's existing Elementor thumbnails. */
.cvivp-video-thumb a,
.cvivp-video-thumb img,
.cvivp-shortcode-trigger { cursor: pointer; }

.cvivp-shortcode-trigger {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  max-width: 100%;
}
.cvivp-shortcode-trigger img {
  display: block;
  max-width: 100%;
  height: auto;
}

.cvivp-modal[hidden] { display: none !important; }
.cvivp-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
.cvivp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.84);
}
.cvivp-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100dvh - 40px);
  outline: none;
  z-index: 1;
  background: #000;
  box-shadow: 0 12px 50px rgba(0,0,0,.35);
}
.cvivp-player-mount {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.cvivp-video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 40px);
  background: #000;
  object-fit: contain;
}
.cvivp-close {
  position: absolute;
  right: 0;
  top: -46px;
  z-index: 3;
  padding: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font: normal 32px/40px Arial, sans-serif;
  cursor: pointer;
  text-align: center;
}
.cvivp-close:hover,
.cvivp-close:focus-visible { background: #e9e9e9; color: #000; }
.cvivp-close:focus-visible { outline: 3px solid #66aaff; outline-offset: 2px; }
@media (max-width: 600px) {
  .cvivp-modal { padding: 12px; }
  .cvivp-dialog { max-height: calc(100dvh - 80px); }
  .cvivp-video { max-height: calc(100dvh - 80px); }
}
