/* HtmlPreviewTab / FilePreviewTab layout */
.wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  outline: none;
}

.iframe {
  flex: 1;
  border: none;
  background: #fff;
  min-width: 0;
}

.mediaContainer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 16px;
  background: var(--bg-primary);
}

.image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media {
  max-width: 100%;
  max-height: 100%;
}

.textContent {
  flex: 1;
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  color: var(--fg-primary);
  background: var(--bg-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
  tab-size: 4;
}
