.tiptap :first-child {
  margin-top: 0;
}

.tiptap img {
  display: block;
  height: auto;
  margin: 1.5rem 0;
  max-width: 100%;
}

.tiptap img.ProseMirror-selectednode {
  border-radius: var(--rounded-btn, .5rem);
  outline: 2px solid oklch(var(--p));
}

.ProseMirror-focused {
  outline: 0;
  border: 0;
}

.image-uploading {
  width: 100%;
  position:relative;
  display:inline-block
}
.image-uploading img {
  filter:blur(5px);
  opacity:.3
}
.image-uploading::before {
  content:"";
  box-sizing:border-box;
  position:absolute;
  top:50%;
  left:50%;
  width:30px;
  height:30px;
  margin-top:-15px;
  margin-left:-15px;
  border-radius:50%;
  border:3px solid #ccc;
  border-top-color:#1e986c;
  z-index:1;
  animation:spinner .6s linear infinite
}

@keyframes spinner{
  to {
    transform:rotate(360deg)
  }
}
