/* 모달 기본 스타일 */
.modal-overlay {
    position: absolute;
    background-color: transparent;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 300px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 입력 요소 스타일 */
.modal-content input:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.5);
}

/* 버튼 호버 효과 */
.modal-content button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 모달 내 텍스트 전체 크기 조정 */
.modal-content {
  font-size: smaller;
}

/* 에디터 영역 안의 이미지 컨테이너에 resize 허용 */
.lite-editor-content div[contenteditable="false"] {
    resize: both;
    overflow: auto;
    display: inline-block;
    max-width: 100%;
}

/* 컨테이너 내부 이미지 스타일 */
.lite-editor-content div[contenteditable="false"] img {
    width: 100%;
    height: auto;
    display: block;
}

/* 이미지 선택 효과 스타일 추가 */
.image-wrapper.selected {
    filter: brightness(0.7) !important;
    border: 2px solid #4285f4 !important;
}

/* 리사이징 중 테두리 제거 */
.image-wrapper.resizing {
    border: none !important;
    filter: none !important;
}

/* 리사이즈 핸들 스타일 */
.image-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    background-image: linear-gradient(135deg, transparent 50%, #4285f4 50%, #4285f4 100%);
    cursor: nwse-resize;
    z-index: 10;
}