.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 24, 20, 0.72);
  overflow: auto;
}

.preview-modal {
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.preview-modal h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.remotion-player-host {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #18201d;
  line-height: 0;
}

.remotion-player-host > div {
  width: 100% !important;
}

.preview-modal .hint {
  margin-top: 12px;
}

.preview-error {
  color: #c64f45;
}

.preview-overlay.hidden {
  display: none !important;
}

@media (max-width: 780px) {
  .preview-overlay {
    padding: 10px;
  }

  .preview-modal {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }
}
