/**
 * Summernote(BS5) 이미지·동영상·링크 삽입 모달 위치 고정
 * - dialogsInBody 없이 에디터/카드 내부에 있으면 부모 transform에 묶여 흔들림
 * - 카드 hover translateY 도 같은 원인이 될 수 있음
 */
.note-modal {
    position: fixed !important;
    z-index: 1055;
}

.note-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.note-modal .modal-dialog {
    margin: 0 auto;
    transform: none !important;
}

/* Summernote가 있는 카드는 hover 이동 효과 제거(모달·툴바 클릭 방해 방지) */
.card:has(.note-editor) {
    transform: none !important;
}

.card:has(.note-editor):hover {
    transform: none !important;
}

/* django-summernote 기본 .summernote-div { inline-block } 때문에 빈 에디터가 좁게 보임 */
.summernote-div {
    display: block !important;
    width: 100%;
}

.comment-write-box .note-editor,
.reply-comment-form .note-editor,
.comment-edit-form .note-editor,
#id_comment_content + .note-editor {
    width: 100%;
}
