html.dvb-modal-open,
html.dvb-modal-open body {
  overflow: hidden;
}

:where(.wp-block-dormeur-video-modal) {
  display: block;
  max-width: 100%;
}

:where(.wp-block-dormeur-video-modal.aligncenter) {
  margin-left: auto;
  margin-right: auto;
}

:where(.wp-block-dormeur-video-modal.alignleft),
:where(.wp-block-dormeur-video-modal.alignright) {
  float: none;
}

:where(.wp-block-dormeur-video-modal.alignleft) {
  margin-left: 0;
  margin-right: auto;
}

:where(.wp-block-dormeur-video-modal.alignright) {
  margin-left: auto;
  margin-right: 0;
}

:where(.wp-block-dormeur-video-modal.dvb--vignette:not(.dvb--multi)) {
  width: fit-content;
}

:where(.dvb--vignette:not(.dvb--multi)) {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: var(--dvb-vignette-size, 92px);
}

:where(.dvb--vignette.dvb--multi) {
  width: 100%;
  max-width: 100%;
}

:where(.dvb__list) {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

:where(.dvb__item) {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: var(--dvb-vignette-size, 92px);
  scroll-snap-align: start;
}

:where(.dvb__trigger) {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

:where(.dvb--vignette .dvb__trigger) {
  width: var(--dvb-vignette-size, 92px);
  height: var(--dvb-vignette-size, 92px);
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

:where(.dvb__trigger):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

:where(.dvb__img),
:where(.dvb__previewVideo) {
  display: block;
  width: 100%;
  height: auto;
}

:where(.dvb__previewVideo) {
  pointer-events: none;
  background: #000;
}

:where(.dvb--vignette .dvb__img),
:where(.dvb--vignette .dvb__previewVideo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.dvb__play) {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

:where(.dvb--vignette .dvb__play) {
  width: clamp(42px, calc(var(--dvb-vignette-size, 92px) * 0.56), 62px);
  height: clamp(42px, calc(var(--dvb-vignette-size, 92px) * 0.56), 62px);
}

:where(.dvb__play)::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid rgba(255, 255, 255, 0.92);
  transform: translateX(3px);
}

:where(.dvb--vignette .dvb__play)::before {
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-left-width: 18px;
}

:where(.dvb__label) {
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  width: 100%;
}

:where(.dvb__modal:not([open])) {
  display: none;
}

:where(dialog.dvb__modal) {
  width: auto;
  max-width: 96vw;
  max-height: 92vh;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
  position: relative;
  text-align: center;
}

:where(dialog.dvb__modal)::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

:where(.dvb__videoWrap) {
  padding: 0;
  display: inline-block;
  line-height: 0;
  margin: 0;
  position: relative;
}

:where(.dvb__close) {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

:where(.dvb__close:hover) {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
}

:where(.dvb__closeWrap) {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
}

:where(video.dvb__video) {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 0;
  background: #000;
}
