/* 에디터 기본 */
.mce-content-body {
    font-family: "Cafe24air";
    font-size: 16px;
    line-height: 1.4;
    margin: 1rem;
    word-break: break-word;
}
.mce-content-body table {
    border-collapse: collapse;
}
.mce-content-body table:not([cellpadding]) td,
.mce-content-body table:not([cellpadding]) th {
    padding: 0.4rem;
}
.mce-content-body table[border]:not([border="0"]):not([style*="border-width"]) td,
.mce-content-body table[border]:not([border="0"]):not([style*="border-width"]) th {
    border-width: 1px;
}
.mce-content-body table[border]:not([border="0"]):not([style*="border-style"]) td,
.mce-content-body table[border]:not([border="0"]):not([style*="border-style"]) th {
    border-style: solid;
}
.mce-content-body table[border]:not([border="0"]):not([style*="border-color"]) td,
.mce-content-body table[border]:not([border="0"]):not([style*="border-color"]) th {
    border-color: #ccc;
}
.mce-content-body figure { 
    display:table;margin:1rem auto;
}
.mce-content-body figure figcaption {
    color: #999;
    display: block;
    margin-top: 0.25rem;
    text-align: center;
}
.mce-content-body hr {
    border-color: #ccc;
    border-style: solid;
    border-width: 1px 0 0 0;
}
.mce-content-body code {
    background-color: #e8e8e8;
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
}
.mce-content-body:not([dir="rtl"]) blockquote {
    border-left: 2px solid #ccc;
    margin-left: 1.5rem;
    padding-left: 1rem;
}
.mce-content-body[dir="rtl"] blockquote {
    border-right: 2px solid #ccc;
    margin-right: 1.5rem;
    padding-right: 1rem;
}

/* 에디터와 뷰 디자인 통일 */
.mce-content-body p {
    margin-block-start: 0em;
    margin-block-end: 0em;
    line-height: 2.2;
    overflow: hidden;
}
.mce-content-body[data-mce-placeholder]::before {
    line-height: 2.2;
}
.mce-content-body li {
    display: list-item;
    text-align: -webkit-match-parent;
    line-height: 2.2;
}
.mce-content-body li ol {
    margin-block-start: 0;
    margin-block-end: 0;
}
.mce-content-body ul {
    padding-inline-start: 40px;
    display: block;
    list-style-type: disc;
}
.mce-content-body ul ul {
    list-style-type: circle;
}
.mce-content-body ul ul ul {
    list-style-type: square;
}
.mce-content-body ol {
    padding-inline-start: 40px;
    margin-block-start: 0;
    margin-block-end: 0;
}
.mce-content-body ol > li {
    list-style: auto;
}
.mce-content-body ol ul {
    list-style-type: circle;
    margin-block-start: 0px;
    margin-block-end: 0px;
}
.mce-content-body ol ol ul {
    list-style-type: square;
}

.mce-content-body img,
.mce-content-body iframe,
.mce-content-body video {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
}
.mce-content-body img {
    cursor: pointer;
    margin: 2px;
    vertical-align: initial;
}
.mce-content-body a {
    text-decoration: underline;
    display: inline-block;
}

/* 파일 업로드 박스 */
.mce-content-body figure.editor-file {
    display: table;
    width: 460px;
    height: 74px;
    margin: 1rem auto;
    outline: 1px solid #DDDDDD;
    padding: 20px 28px;
    max-width: 460px;
    border-right: 1px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.05);
}
.mce-content-body figure.editor-file > a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
    color: #222222;
    text-decoration: none;
}
.mce-content-body figure.editor-file .editor-file-icon {
    width: 15%;
    height: 22px;
    background: url("/plugin/editor/tinymce/css/image/folder.svg") no-repeat 50% 50% / 22px;
}
.mce-content-body figure.editor-file .editor-file-box {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.mce-content-body figure.editor-file .editor-file-box .editor-file-name {
    overflow: hidden;
    color: #222;
    text-overflow: ellipsis;
    font-size: 16px;
    margin-block-end: 0;
}
.mce-content-body figure.editor-file .editor-file-size {
    display: block;
    font-size: 13px;
    color: #777777;
    margin-top: 5px;
    margin-block-start: 0;
}

/* youtube */
.mce-content-body figure.editor-youtube {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    outline: 0;
    box-shadow: none;
    padding: 0;
}

/* pdf 파일 첨부 */
.mce-content-body figure.editor-pdf-box {
    width: 100%;
    max-width: 100%;
    outline: 0;
    box-shadow: none;
    padding: 0;
}
.mce-content-body figure.editor-pdf-box .editor-pdf-file-box {
    width: 460px;
    margin: 0 auto 20px;
    padding: 22px 30px;
    outline: 1px solid #dddddd;
    border-radius: 5px;
}
.mce-content-body figure.editor-pdf-box .editor-pdf-file-box .editor-pdf-tit {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.mce-content-body figure.editor-pdf-box .editor-pdf-file-box .editor-pdf-tit .editor-pdf-file-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    background: url("/plugin/editor/tinymce/css/image/pdf-icon.svg") no-repeat;
    margin-right: 14px;
}
.mce-content-body figure.editor-pdf-box .editor-pdf-file-box .editor-pdf-lnk {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.mce-content-body figure.editor-pdf-box .editor-pdf-file-box .editor-pdf-lnk a {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    text-decoration-line: underline;
    margin-right: 14px;
}
.mce-content-body figure.editor-pdf-box .editor-pdf-file-box .editor-pdf-lnk button {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    text-decoration-line: underline;
    background: #fff;
    border: 0;
}

/* 미정의 테이블 */
.mce-content-body table:not([border]),
.mce-content-body table:not([border]) caption,
.mce-content-body table:not([border]) td,
.mce-content-body table:not([border]) th,
.mce-content-body table[border="0"],
.mce-content-body table[border="0"] caption,
.mce-content-body table[border="0"] td,
.mce-content-body table[border="0"] th,
.mce-content-body table[style*="border-width: 0px"],
.mce-content-body table[style*="border-width: 0px"] caption,
.mce-content-body table[style*="border-width: 0px"] td,
.mce-content-body table[style*="border-width: 0px"] th {
    border: 1px solid #bbb;
}

/* mobile */
@media all and (max-width:590px) {
    .mce-content-body figure {width: 400px;}
    .box-brd-list-hd > .page-title {width: 100%;}
    .mce-content-body table {width: 100%}

}
@media all and (max-width:428px) {
    .mce-content-body figure.editor-pdf-box .editor-pdf-file-box {width: 280px;padding: 15px 20px;}
}
@media all and (max-width:390px) {
    .mce-content-body figure {width: 240px;}
    .btn-brd-write {padding: 8px 11px;}
    .box-search > .search-item-list > .item-list > .select-group {flex-flow: wrap;}
    .box-input-period > .cal-input > input[type="text"] {width: 80%;}
    .brd-contents-item > .contents-info > .writer-info-area {margin-bottom: 10px;}
    .brd-contents-item > .contents-info > .list-contents {margin-bottom: 10px;}
    .housing-opt-data > .housing-place-info, .housing-opt-data > .opt-data-lnk {flex-flow: wrap;gap: 10px;}
}
@media all and (max-width:360px) {
    .mce-content-body figure.editor-pdf-box .editor-pdf-file-box {width: 209px;}
}
