.publication-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: #111827;
  cursor: pointer;
  overflow: hidden;
}

.publication-video-trigger .preview {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.publication-video-trigger::after {
  content: "\25B6";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #ffffffb3;
  border-radius: 50%;
  color: white;
  background: #111827c9;
  pointer-events: none;
}

.publication-video-trigger:hover::after {
  background: #0076df;
}

.publication-video-trigger:focus-visible,
.publication-video-close:focus-visible {
  outline: 3px solid #0076df;
  outline-offset: 3px;
}

.publication-video-dialog {
  box-sizing: border-box;
  width: min(960px, 94vw);
  max-width: 94vw;
  max-height: 92vh;
  padding: 1rem;
  border: 1px solid #ffffff30;
  border-radius: 0.75rem;
  color: #f8fafc;
  background: #111827;
  box-shadow: 0 20px 80px #0008;
}

.publication-video-dialog::backdrop {
  background: #000b;
}

.publication-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.publication-video-header h2 {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.publication-video-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.publication-video-dialog video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: black;
}
