@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200..900&display=swap');

body.editor-spot-mode::selection {
    background-color: #CCFF00 !important;
}

/* admin bar 숨기기 */
body.editor-spot-mode #wpadminbar {
    display: none;
}

body.editor-spot-mode .lang {
    display: none;
}

body.editor-spot-mode.lang-ko_KR .lang.ko,
body.editor-spot-mode:not(.lang-ko_KR) .lang.en {
    display: block;
} 

body:not(.editor-spot-mode) #editor-spot-bg-shadow,
body:not(.editor-spot-mode) #editor-spot-context-menu,
body:not(.editor-spot-mode) #editor-spot-tooltip,
body:not(.editor-spot-mode) #editor-spot-board,
body:not(.editor-spot-mode) #editor-spot-marker-container {
    display: none;
}

#editor-spot-bg-shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.75);
    z-index: -999;
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.6s;
}

#editor-spot-bg-shadow.active {
    z-index: 9997;
    opacity: 1;

    transition: opacity 1.2s;
}

#editor-spot-context-menu ul,
#editor-spot-marker-container ul,
#editor-spot-board ul,
#e-spot--popup-container ul {
    box-sizing: unset;
}


#editor-spot-context-menu {
    position: absolute;
    display: none;
    background-color: #eee;
    z-index: 9999999999;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #bbb;
}

body.editor-spot-warning #editor-spot-context-menu {
    animation: shake 0.35s ease-in-out 1;
}

/* 흔들기 애니메이션 정의 */
@keyframes shake {
    0%, 100% {
      transform: translateX(0); /* 원래 위치 */
    }
    25% {
      transform: translateX(-15px); /* 왼쪽으로 이동 */
    }
    50% {
      transform: translateX(15px); /* 오른쪽으로 이동 */
    }
    75% {
      transform: translateX(-15px); /* 다시 왼쪽으로 이동 */
    }
}

#editor-spot-context-menu::before {
    content: '';
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.75);
    background-color: #CCFF00;
    z-index: -1;
}

#editor-spot-context-menu[data-position-x="left" ]::before { right: -5px; }
#editor-spot-context-menu[data-position-x="right"]::before { left : -5px; }
#editor-spot-context-menu[data-position-y="top"  ]::before { bottom: -5px; }
#editor-spot-context-menu[data-position-y="bottom"]::before{ top  : -5px;}

#editor-spot-context-menu::after {
    content: '';
    display: block;
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #eee;
    z-index: 2;
}

#editor-spot-context-menu[data-position="left" ]::after { right: -1px; border-right: 1px solid #bbb; }
#editor-spot-context-menu[data-position="right"]::after { left : -1px; border-left: 1px solid #bbb; }

#editor-spot-context-menu[data-position-x="left" ]::after { right: -1px; border-right: 1px solid #bbb; }
#editor-spot-context-menu[data-position-x="right"]::after { left : -1px; border-left: 1px solid #bbb; }
#editor-spot-context-menu[data-position-y="top"  ]::after { bottom: -1px; border-bottom: 1px solid #bbb; }
#editor-spot-context-menu[data-position-y="bottom"]::after{ top  : -1px; border-top: 1px solid #bbb; }

#editor-spot-context-menu,
#editor-spot-context-menu * {
    outline: none !important;
}

#e-spot--editor-header.has-title::before {
    font-family: 'Noto Serif CJK KR', 'Noto Serif KR', serif;
    content: "\201C" attr(data-title);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color:#CCFF00;
    background-color: #000;
    margin: 7px 7px 0;
    padding: 5px 7px;
    border-radius: 5px;
    height: 18px;
    max-width: 261px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    display: inline-block;
}

#dr-hidden-input {
    position: fixed;
    top: 0;
    left: -100%;
    height: 15px;
    opacity: 0;
}

#e-spot--editor {
    width: 280px;
    min-height: 22px;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px 10px 8px;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 4px;
    position: relative;

    /* 드래그(선택) 방지 */
    -webkit-user-select: none; /* 크롬, 사파리 */
    -moz-user-select: none;    /* 파이어폭스 */
    -ms-user-select: none;     /* 인터넷 익스플로러 */
    user-select: none;         /* 표준 */
}

#e-spot--editor[data-empty="true"]::before {
    content: 'Add a comment...';
    font-size: 13px;
    line-height: 22px;
    opacity: 0.5;
    position: absolute;
    top: 8px;
    left: 12px;
}

/* #e-spot--editor::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 100%;
    border-bottom: 1px solid #000;
    animation: blink 1.2s step-end infinite;
    position: relative;
    top: 2px;
    left: -2px;
} */

#editor-spot-context-menu::selection,
#editor-spot-marker-container::selection {
    background-color: #dedede !important;
}

@keyframes blink {
    50% {
      opacity: 0;
    }
}

span.e-spot--editor-nbsp {
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    vertical-align: top;
}

span.dr--mention {
    display: inline-block;
    border-radius: 3px;
    padding: 0 4px;
}

#e-spot--editor span.dr--mention,
.e-spot--editor span.dr--mention,
.e-spot--post-content span.dr--mention,
.e-spot--comment span.dr--mention {
    margin: 0 4px 0 0;
    font-size: 12px;
}


ul.e-spot--location {
    /* width: 195px; */
    margin: 0;
    padding: 8px 8px 0;
    font-size: 10px;
    position: relative;
    display: none;
}

ul.e-spot--location::before {
    content: '';
    position: absolute;
    left: calc(50% - 16px);
    bottom: 10px;
    width: 32px;
    height: 0;
    border-bottom: 1px dashed #aaa;
    display: block;
}

ul.e-spot--location li {
    display: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

ul.e-spot--location li.show {
    display: block;
    padding-left: 45px;
    margin-bottom: 4px;
}

ul.e-spot--location li::before {
    position: absolute;
    top: 0;
    left: 0;
    /* font-style: italic; */
    color: #999;
    font-size: 9px;
}

ul.e-spot--location li.dr-parent::before   { content: 'Parent';  }
ul.e-spot--location li.dr-element::before { content: 'Element'; }
ul.e-spot--location li.dr-selection::before { content: 'Selection'; }

ul.e-spot--menu {
    list-style: none;
    margin: 7px 7px 8px 10px;
    padding: 0;
    flex-direction: row;
    gap: 0;
    display: flex;
}

ul.e-spot--menu li.e-spot--edit {
    padding: 5px 0;
    margin-top: 5px;
    margin-right: 2px;
    line-height: 14px;
    height: 14px;
    width: 24px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    color: #797979;
}

ul.e-spot--menu li.e-spot--edit:hover {
    color: #000;
}

li[data-action="add-dr-mention"].selected {
    color: #797979 !important;
    background-color: #e2e2e2;
    box-shadow: -1px -1px 2px rgb(0 0 0 / 50%);
}

ul.e-spot--menu li[data-action="add-dr-attach"].disabled,
ul.e-spot--menu li[data-action="add-dr-attach"] * {
    pointer-events: none;
}

input.dr--file-input {
    display: none;
}

.e-spot--attachment-container,
.dr--post-attachments,
.dr--comment-attachments {
    max-width: 284px;
    width: calc(100% - 16px);
    padding: 10px 6px 12px 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;

    transition: padding 0.3s, height 0.3s;
}

.dr--comment-attachments {
    padding: 10px 0;
}

.e-spot--attachment-container > span.dr--file,
.dr--post-attachments > span.dr--file,
.dr--comment-attachments > span.dr--file {
    box-sizing: content-box !important;
    position: relative;
    display: inline-block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    cursor: pointer;
}


/* .dr--post-attachments > span.dr--file::before {
    content: 'UPLOADING...';
    color: #fff;
    background-color: #ccc;
    font-size: 11px;
    width: 62px;
    height: 62px;
    border-radius: 7px;
    display: block;
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;

    animation: uploading 1.2s ease-in-out infinite;
} */

@keyframes uploading {
    50% {
        color: #d8d8d8;
    }
}

.e-spot--attachment-container > span.dr--file i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 13px;
    text-align: center;
    line-height: 20px;
    color: #fff;
    background-color: #404040;
    border: 2px solid #eee;
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 2;
}

.dr--post-attachments > span.dr--file i,
.dr--comment-attachments > span.dr--file i {
    display: none;
}

.e-spot--attachment-container > span.dr--file:hover {
    display: block;
}

.e-spot--attachment-container > span.dr--file img,
.dr--post-attachments > span.dr--file img,
.dr--comment-attachments > span.dr--file img {
    display: block;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid rgb(0 0 0 / 8%);
}

ul.e-spot--user-list {
    top: 100%;
    left: -5px;
    position: absolute;
    width: 195px;
    padding: 5px;
    border: 1px solid rgba(130, 130, 130, 0.75);
    background-color: #404040;
    border-radius: 4px;
    list-style: none;
    display: none;
}

li[data-action="add-dr-mention"].selected ul.e-spot--user-list {
    display: block;
}


ul.e-spot--user-list::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 17px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-width: 8px 6px;
    border-style: solid;
    border-color: transparent transparent #444 transparent;
}

ul.e-spot--user-list li {
    padding: 7px 5px;
    border-radius: 4px;
    color: #fff;
    position: relative;
}

ul.e-spot--user-list li:hover {
    background-color: #000;
}
/* 
ul.e-spot--user-list li::before {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    z
} */

ul.e-spot--user-list li i {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: block;
    float: left;
    margin-top: 1px;
    margin-right: 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 27px;
    text-align: center;
    font-style: normal;
    pointer-events: none;
}

ul.e-spot--user-list li i::before {
    content: attr(data-title);
    text-transform: uppercase;
}

ul.e-spot--user-list li span {
    line-height: 1em;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    pointer-events: none;
}

ul.e-spot--user-list span::before {
    font-size: 12px;
    font-weight: 500;
    content: attr(data-name);
    display: block;
}

ul.e-spot--user-list span::after {
    content: attr(data-email);
    font-size: 10px;
    opacity: 0.7;
    display: block;
}

ul.e-spot--menu li.e-spot--posting {
    background-color: #fafafa;
    color: #999;
    border: 1px solid #ccc;
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    text-decoration: none;
    text-align: left;
    padding: 8px 8px 8px 10px;
    cursor: pointer;
    outline: none !important;
    width: 75px;
    border-radius: 4px;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 15%);
    margin-left: 5px;
}

#editor-spot-context-menu:not(.active) ul.e-spot--menu li.e-spot--posting,
#editor-spot-marker-container:not(.active) ul.e-spot--menu li.e-spot--posting {
    pointer-events: none;
}

ul.e-spot--menu li.e-spot--posting i {
    height: 15px;
    display: inline-block;
    font-size: 14px;
    line-height: 15px;
    opacity: 0.65;
    float: right;
}

i.fa-info {
    margin-top: -2px;
}

ul.e-spot--menu li.e-spot--posting:hover { 
    color:#000; 
    background-color: #fff; 
    border-color: #808080; 
}

#editor-spot-tooltip {
    width: 168px;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 12px;
    text-align: center;
    border-radius: 0 11px 11px 11px;
    display: block; 
    pointer-events: none; /* 툴팁이 클릭되지 않도록 설정 */
    z-index: 999999999999;
}


/* 선택한 요소 하이라이트 */

body:not(.editor-spot-mask-off) .editor-spot-current,
body:not(.editor-spot-mask-off) .editor-spot-selector {
    outline: 2px solid #CCFF00 !important;
}

body:not(.editor-spot-mask-off) .editor-spot-marked {
    outline: 2px solid rgba(204, 255, 0, 0.35) !important;
}

body.editor-spot-mask-off .editor-spot-mask {
    background-color: transparent;
}

/* 마커 설정 */

#editor-spot-marker-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
}

#editor-spot-marker-container::selection {
    background-color: rgba(0, 0, 0, 0.12) !important;
}

#editor-spot-marker-wrapper {
    position: relative;
}

.editor-spot-mask {
    position: absolute;
    background-color: rgba(204, 255, 0, 0.2);
    pointer-events: none;
}

.editor-spot-mask > i.e-spot--marker {
    display: block;
    position: absolute;
    top: calc(attr(data-marker-y %) - 4px);
    left: calc(attr(data-marker-x %) - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.75);
    background-color: red;
    cursor: pointer;
    pointer-events: auto;

    transition: background-color 0.3s;
}

.editor-spot-mask > i.e-spot--marker:not(.current) {
    background-color: #8e0000;
    animation: marker_scale_red 2.25s ease-in-out infinite;
}

@keyframes marker_scale_red {
    50% {
        transform: scale(1.25);
        background-color: red;
    }
}

.editor-spot-mask > i.e-spot--marker[data-status="draft"]:not(.current) {
    background-color: #888;
    opacity: 0.5;
}

.editor-spot-mask > i.e-spot--marker[data-status="publish"]:not(.current) {
    background-color: #888;
    animation: none;
}

.editor-spot-mask > i.e-spot--marker[data-status="private"]:not(.current) {
    animation: marker_scale_purple 2.25s ease-in-out infinite;
}

@keyframes marker_scale_purple {
    50% {
        transform: scale(1.25);
        background-color: #9d00ff;
    }
}

.editor-spot-mask > i.e-spot--marker[data-status="aside"]:not(.current) {
    background-color: #075d21;
    animation: marker_scale_green 2.25s ease-in-out infinite;
}

@keyframes marker_scale_green {
    50% {
        transform: scale(1.25);
        background-color: #0cb53f;
    }
}

.editor-spot-mask > i.e-spot--marker.current,
.editor-spot-mask > i.e-spot--marker:hover {
    background-color:#ccff00;
    animation: marker_blink 1.2s ease-in-out infinite;
}

@keyframes marker_blink {
    50% {
        background-color:#ccff00;
    }
}

i.e-spot--marker[data-id="new-marker"] { 
    /* 생성중인 마커 클릭 방지 */
    pointer-events: none;
}

/* 포스트 설정 */

.e-spot--post-container {
    position: absolute;
    background-color: #eee;
    z-index: 9999999997;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #bbb;
}

.e-spot--marker[data-status="pending"] .e-spot--post-container { border-color: #e9d4d4; }
.e-spot--marker[data-status="private"] .e-spot--post-container { border-color: #c3b3e0; }
.e-spot--marker[data-status="aside"]   .e-spot--post-container { border-color: #b9dfbe; }

.e-spot--post-container[data-position-x="left" ] { right: 4px; }
.e-spot--post-container[data-position-x="right"] { left : 4px; }

.e-spot--post-container[data-position-y="top"   ] { bottom: 4px; }
.e-spot--post-container[data-position-y="bottom"] { top   : 4px; }

i.current .e-spot--post-container {
    z-index: 9999999998;
    cursor: default;
}

.e-spot--post-container,
.e-spot--post-container * {
    outline: none !important;
}

.e-spot--post-edit-buttons {
    width: 84px;
    height: 15px;
    border-radius: 10.5px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 12px 0 0 12px;
    padding: 3px;
    list-style: none;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 20%) inset;
    border-bottom: 1px solid #fefefe;
    border-right: 1px solid #fefefe;
}

.e-spot--post-edit-buttons li {
    width: 15px;
    height: 15px;
    text-align: center;
    font-size: 10px;
    line-height: 15px;
    border-radius: 50%;
    background-color: #999;
    color: #fff;
    display: block;
    cursor: pointer;

}

.e-spot--marker[data-status="publish"] li.e-spot--to-complete,
.e-spot--marker[data-status="pending"] li.e-spot--to-processing,  
.e-spot--marker[data-status="draft"] li:not(.e-spot--to-trash):not(.e-spot--editor li), /* 미확인 상태는 삭제 외에 다른 변경 불가 */
.e-spot--marker[data-status="private"] li.e-spot--to-pending,
.e-spot--marker[data-status="aside"] li:not(.e-spot--to-trash):not(.e-spot--editor li), /* 안내문은 삭제 외에 다른 변경 불가 */
.e-spot--marker li.e-spot--to-trash.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.e-spot--post-edit-buttons li.e-spot--to-processing.selected,
.e-spot--post-edit-buttons li.e-spot--to-processing:hover {
    background-color: #0a79e0;
}

.e-spot--post-edit-buttons li.e-spot--to-complete.selected,
.e-spot--post-edit-buttons li.e-spot--to-complete:hover {
    background-color: #000;
}

.e-spot--post-edit-buttons li.e-spot--to-pending.selected,
.e-spot--post-edit-buttons li.e-spot--to-pending:hover {
    background-color: #8d33e2;
}

.e-spot--post-edit-buttons li.e-spot--to-trash.selected,
.e-spot--post-edit-buttons li.e-spot--to-trash:hover {
    background-color: #fff;
    color: #999;
}

.e-spot--close-x {
    width: 17px;
    height: 17px;
    position: absolute;
    display: block !important;
    cursor: pointer;
    right: 10px;
    top: 10px;
    z-index: 99;
}

.e-spot--close-x::before, 
.e-spot--close-x::after {
    content: '';
    width: 1px;
    height: 16px;
    display: block;
    position: absolute;
    left: 50%;
    top: calc(50% - 8px);
    background-color: #797979;
    transition: transform 0.2s, left 0.2s;
}

.e-spot--close-x::before { transform: rotate(45deg); }
.e-spot--close-x::after  { transform: rotate(-45deg); }

.e-spot--post-content {
    width: 300px;
    min-height: 55px;
    padding: 12px 0 10px;
    font-size: 16px;
    font-style: normal;
    line-height: 1.55em;
    word-break: keep-all;
    margin-bottom: 4px;
    position: relative;
}

.e-spot--post-content a {
    word-break: break-all;
    color: #3F51B5;
    font-size: 87.5%;
}

.e-spot--post-content .e-spot--post-selection::before {
    font-family: 'Noto Serif CJK KR', 'Noto Serif KR', serif;
    content: "\201C" attr(data-text);
    font-size: 14px;
    line-height: 19px;
    font-weight: 600;
    color:#CCFF00;
    background-color: #000;
    margin: 5px 0 0;
    padding: 6px 8px;
    /* border-radius: 5px; */
    height: 20px;
    max-width: 261px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    display: inline-block;
}

.e-spot--post-content .e-spot--post-entry {
    padding: 0 15px;
    max-height: 150px;
    overflow-y: auto;
}

.e-spot--comments {
    overflow-y: auto;
    max-height: 275px;
    padding-top: 1px;
}

.e-spot--comment {
    min-height: 22px;
    padding: 10px 0;
    margin: 0 15px;
    font-size: 14px;
    font-style: normal;
    line-height: 22px;
    border-top: 1px solid #fff;
    position: relative;
}

.e-spot--comment::before {
    content: '';
    width: 100%;
    height: 1px;
    display: block;
    top: -2px;
    left: 0;
    background-color: #d4d4d4;
    position: absolute;
}

.e-spot--post-content .e-spot--post-meta,
.e-spot--comment .e-spot--comment-meta {
    color: #999;
    font-weight: 400;
    font-size: 11px;
    font-style: normal;
    line-height: 14px;
    text-transform: uppercase;
    display: block;
}

.e-spot--post-content .e-spot--post-meta {
    padding: 0 15px;
    margin-bottom: 0.5em;
}

.e-spot--comment .e-spot--comment-meta {
    text-align: right;
    margin-top: 1.25em;
}

.e-spot--comment .e-spot--comment-meta i.fa-xmark {
    width: 15px;
    height: 15px;
    text-align: center;
    font-size: 10px;
    line-height: 15px;
    border-radius: 50%;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 20%) inset;
    border-bottom: 1px solid #fefefe;
    border-right: 1px solid #fefefe;
    float: left;
    cursor: pointer;
}

.e-spot--comment.readonly .e-spot--comment-meta i.fa-trash-can {
    display: none;
    pointer-events: none;
}

.e-spot--post-content .e-spot--post-meta::before,
.e-spot--comment .e-spot--comment-meta::before {
    content: attr(data-author);
    color: #808080;
    font-weight: 500;
    font-size: 11px;
    line-height: 14px;
    display: inline;
    margin-right: 4px;
}

.e-spot--post-content .dr--post-attachments {
    width: 100%;
    padding: 5px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4개의 동일한 너비 열 */
    gap: 4px;
}

.e-spot--post-container .e-spot--editor {
    width: calc(100% - 42px);
    margin: 5px 15px 15px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 5px;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 4%);

    transition: opacity 0.3s, filter 0.3s;
}

.e-spot--post-container .e-spot--editor.disabled {
    opacity: 0.5;
    filter: brightness(0.75);
    pointer-events: none;
}

.e-spot--post-container .e-spot--input-content {
    min-height: 22px;
    padding: 5px;
    font-size: 14px;
    line-height: 22px;
    font-style: normal;
    display: block;
    position: relative;
}

.e-spot--post-container .e-spot--editor.disabled .e-spot--input-content {
    cursor: not-allowed;
    user-select: none;
    outline: none;
    caret-color: transparent;
}

.e-spot--post-container .e-spot--editor[data-empty="true"] .e-spot--input-content::before {
    content: 'Add a comment...';
    font-size: 13px;
    line-height: 22px;
    font-style: normal;
    opacity: 0.5;
    position: absolute;
    top: 5px;
    left: 10px;
}

.e-spot--post-container .focus .e-spot--input-content::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 100%;
    border-bottom: 1px solid #000;
    animation: blink 1.2s step-end infinite;
    position: relative;
    top: 3px;
    left: 0;
}

.e-spot--post-container ul.e-spot--menu {
    list-style: none;
    padding: 0;
    flex-direction: row;
    gap: 0;
    display: flex;
    font-style: normal;

    transition: height 0.3s, margin 0.3s, opacity 0.3s;
}

.e-spot--post-container .e-spot--editor[data-empty="true"] ul.e-spot--menu {
    height: 0;
    margin: 0;
    opacity: 0;
}

.e-spot--post-container .e-spot--editor[data-empty="false"] ul.e-spot--menu {
    height: 33px;
    margin: 3px 3px 3px 5px;
    opacity: 1;
}

.e-spot--post-container ul.e-spot--menu li.e-spot--posting {
    margin-left: 105px;
}

.e-spot--post-container .e-spot--editor[data-empty="true"] .e-spot--attachment-container {
    padding: 0;
}

/* 보드 설정 */

html {
    transition: margin-left 0.3s;  
}

#editor-spot-board {
    position: fixed;
    top: 0;
    left: -280px;
    z-index: 999999999;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 0px 0 0px rgb(0 0 0 / 12%);
    opacity: 0.85;

    transition: left 0.3s, box-shadow 0.3s, opacity 0.3s;
}

#editor-spot-board::selection {
    background-color: transparent !important;
}

#editor-spot-board:hover {
    opacity: 1;
}

html.editor-spot-board-on { margin-left: 280px; }

html.editor-spot-board-on #editor-spot-board {
    left: 0px;
    box-shadow: 2px 0 3px rgb(0 0 0 / 12%);
    opacity: 1;
}

#editor-spot-board,
#editor-spot-board * {
    outline: none !important;
}

#e-spot--mask-switch {
    position: absolute;
    right: -32px;
    top: calc(50% + 25px);
    width: 32px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    background-color: #404040;
    color: #ccff00;
    border-radius: 0 5px 5px 0;
    box-shadow: 3px 2px 3px rgb(0 0 0 / 12%);
    cursor: pointer;
}

html:not(.editor-spot-mask-off) #e-spot--mask-switch i.fa-regular,
html.editor-spot-mask-off #e-spot--mask-switch i.fa-solid {
    display: none;
}

.editor-spot-mask-off #e-spot--mask-switch {
    background-color: #aaa;
    color: #fff;
}

#e-spot--icon {
    position: absolute;
    right: -32px;
    top: calc(50% - 16px);
    width: 30px;
    height: 34px;
    padding-right: 2px;
    padding-top: 2px;
    line-height: 34px;
    text-align: center;
    background-color: #fff;
    border-radius: 0 5px 5px 0;
    box-shadow: 3px 2px 3px rgb(0 0 0 / 12%);
    cursor: pointer;
}

#e-spot--icon::before {
    content: "\f27a";
    font-family: "Font Awesome 6 Free";
    display: inline-block;
    font-weight: 900;
    font-style: normal;
    font-size: 21px;
    color: #000;
}

#e-spot--icon::after {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    display: inline-block;
    font-weight: 900;
    font-style: normal;
    position: absolute;
    left: 0;
    top: 1px;
    width: 30px;
    height: 36px;
    padding-right: 2px;
    line-height: 34px;
    text-align: center;
    color: #CCFF00;
    font-size: 12px;
    cursor: pointer;
}

#e-spot--posts {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    overflow-y: scroll;
    overflow-x: hidden;
    height: calc(100% - 52px);
}

#e-spot--posts .e-spot--postlist-container {
    padding: 4px 0;
    flex-wrap: wrap;
    display: flex;
}

#e-spot--posts.asc .e-spot--postlist-container {
    flex-direction: column-reverse;
}

#e-spot--posts.desc .e-spot--postlist-container::before,
#e-spot--posts.asc  .e-spot--postlist-container::after {
    height: 0;
    margin: 0 3px 0 2px;
}

#e-spot--posts.desc .e-spot--postlist-container.adding::before,
#e-spot--posts.asc  .e-spot--postlist-container.adding::after {
    content: 'Uploading...';
    width: calc(100% - 5px);
    height: 25px;
    margin: 3px 3px 3px 2px;
    font-size: 11px;
    line-height: 25px;
    text-align: center;
    color: #fff;
    display: block;

    animation: uploading 0.8s infinite;
    transition: height 0.3s, margin 0.3s;
}

#e-spot--options {
    height: 52px;
    width: 100%;
    box-shadow: 0 4px 1px rgb(0 0 0 / 25%);
    z-index: 2;
    position: relative;
}

#e-spot--list-orderby {
    width: 20px;
    height: 20px;
    float: left;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    background-color: #000;
    color: #fff;
    cursor: pointer;
}

.asc i.fa-arrow-down-wide-short,
.desc i.fa-arrow-up-short-wide {
    display: none;
}

#e-spot--filter-status {
    display: flex;
    width: calc(100% - 20px);
    height: 20px;
    padding: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0px;
    /* gap: 1px; */
}

#e-spot--filter-status li {
    text-align: center;
    width: 100%;
    height: 100%;
    display: block;
    /* border-radius: 4px; */
    cursor: pointer;
    font-size: 11px;
    line-height: 20px;
}

#editor-spot-board[data-selected="draft"]   li[data-status="draft"],
#editor-spot-board[data-selected="pending"] li[data-status="pending"],
#editor-spot-board[data-selected="private"] li[data-status="private"],
#editor-spot-board[data-selected="publish"] li[data-status="publish"],
#editor-spot-board[data-selected="aside"]   li[data-status="aside"] {
    box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.25) inset;
}

#editor-spot-board[data-selected="draft"]   li[data-status="draft"]::before,
#editor-spot-board[data-selected="pending"] li[data-status="pending"]::before,
#editor-spot-board[data-selected="publish"] li[data-status="publish"]::before,
#editor-spot-board[data-selected="aside"]   li[data-status="aside"]::before {
    background-color: rgba(0, 0, 0, 0.7);
}

#editor-spot-board[data-selected="private"] li[data-status="private"]::before {
    background-color: rgb(255 255 255 / 70%);
}

#e-spot--filter-status li::before {
    content: attr(data-count);
    display: block;
    font-size: 10px;
    line-height: 12px;
    width: 23px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.25);
    margin: 4px auto;
    border-radius: 3px;
}

#e-spot--filter-status li p {
    display: none;
}

#e-spot--filter-status li[data-status="private"] { color: #c58afc; }
#e-spot--filter-status li[data-status="pending"] { color: #ff7373; }
#e-spot--filter-status li[data-status="publish"] { color: #808080; }
#e-spot--filter-status li[data-status="aside"]   { color: #2bb824; }
#e-spot--filter-status li[data-status="draft"]   { color: #e0e0e0 !important; }

#e-spot--option-desc {
    background-color: #000;
    padding: 0 6px;
    text-align: center;
}

#editor-spot-board[data-selected="private"] #e-spot--option-desc { background-color: #c58afc; }
#editor-spot-board[data-selected="pending"] #e-spot--option-desc { background-color: #ff7373; }
#editor-spot-board[data-selected="publish"] #e-spot--option-desc { background-color: #808080; }
#editor-spot-board[data-selected="aside"]   #e-spot--option-desc { background-color: #2bb824; }
#editor-spot-board[data-selected="draft"]   #e-spot--option-desc { background-color: #e0e0e0; }

#e-spot--option-desc p {
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
}

#editor-spot-board:not([data-selected]) #e-spot--option-desc::before,
#e-spot--option-desc p::before {
    content: attr(data-en);
    height: 32px;
    line-height: 32px;
    font-size: 11px;
    display: inline-block;
    padding-right: 18px;
    color: #000;
    opacity: 0.7;
}

#editor-spot-board:not([data-selected]) #e-spot--option-desc::before {
    color: #fff;
}

#editor-spot-board[data-selected] #e-spot--option-desc p.default { display: none; }

body.lang-ko_KR #editor-spot-board:not([data-selected]) #e-spot--option-desc::before,
body.lang-ko_KR #e-spot--option-desc p::before { content: attr(data-ko); }

#e-spot--option-desc p::after {
    font-family: "Font Awesome 6 Free";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-size: 11px;
    background-color: rgba(0, 0, 0, 0.7);
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
    float: left;
    margin: 7px 0;
}

#editor-spot-board[data-selected="private"] #e-spot--option-desc p::after { color: #c58afc; content: "\21";   font-weight: 900;}
#editor-spot-board[data-selected="pending"] #e-spot--option-desc p::after { color: #ff7373; content: "\f0e2"; font-weight: 900;}
#editor-spot-board[data-selected="publish"] #e-spot--option-desc p::after { color: #808080; content: "\f00c"; font-weight: 900;}
#editor-spot-board[data-selected="aside"]   #e-spot--option-desc p::after { color: #2bb824; content: "\f129"; font-weight: 900; }
#editor-spot-board[data-selected="draft"]   #e-spot--option-desc p::after { color: #e0e0e0; content: "\f254"; font-weight: 400; }


.e-spot--post {
    font-size: 12px;
    line-height: 25px;
    color: #696969;
    width: calc(100% - 35px);
    height: 25px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    /* border-top: 1px solid #fff; */
    background-color: #fff;
    position: relative;
    margin: 3px 3px 3px 2px;
    border-radius: 15px;
    padding-right: 30px;

    transition: height 0.3s, margin 0.3s, opacity 0.3s;
}

.e-spot--post.e-spot--temp {
    height: 0;
    margin: 0 3px 0 2px;
}

.e-spot--post.deleted {
    pointer-events: none;
    filter: grayscale(1);
    background-color: #e0e0e0;
    opacity: 0.25;
}

.e-spot--post:hover {
    background-color: #fff;
    cursor: pointer;
}

.e-spot--post:hover:not(.current) {
    color: #fff !important;
    background-color: #202020 !important;
}

.e-spot--post.current {
    color: #CCFF00 !important;
    background-color: #202020 !important;
}

.e-spot--post::before {
    content: attr(data-no);
    width: 19px;
    height: 19px;
    line-height: 19px;
    display: block;
    float: left;
    text-align: center;
    font-size: 10px;
    background-color: #404040;
    color: #fff;
    font-weight: 500;
    /* margin-right: 8px; */
    margin: 3px 8px 3px 3px;
    border-radius: 50%;
}

.e-spot--post:hover::before {
    background-color: #fff !important;
    color: #000 !important;
}

.e-spot--post.current::before {
    background-color: #CCFF00 !important;
    color: #000 !important;
}

/*.e-spot--post:hover::after,
.e-spot--post.current::after {
    content: '';
    border-radius: 15px;
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    z-index: 9;
}

.e-spot--post.current::after {
    background-color: transparent;
} */

.e-spot--post.status-private { background-color: #e3ceff80; }
.e-spot--post.status-pending { background-color: #f3cfcf80; }
.e-spot--post.status-publish { background-color: #b8b8b880; }
.e-spot--post.format-aside   { background-color: #c1efb880; }

#e-spot--filter-status li[data-status="private"],
.e-spot--post.status-private::before { background-color: #c58afc; }
#e-spot--filter-status li[data-status="pending"],
.e-spot--post.status-pending::before { background-color: #ff7373; }
#e-spot--filter-status li[data-status="publish"],
.e-spot--post.status-publish::before { background-color: #808080; }
#e-spot--filter-status li[data-status="aside"],
.e-spot--post.format-aside::before   { background-color: #2bb824; }
#e-spot--filter-status li[data-status="draft"],
.e-spot--post.status-draft::before   { background-color: #e0e0e0; color: #999; }

#editor-spot-board[data-selected="draft"]   .e-spot--post:not(.status-draft),
#editor-spot-board[data-selected="pending"] .e-spot--post:not(.status-pending),
#editor-spot-board[data-selected="private"] .e-spot--post:not(.status-private),
#editor-spot-board[data-selected="publish"] .e-spot--post:not(.status-publish),
#editor-spot-board[data-selected="aside"] .e-spot--post:not(.format-aside) {
    display: none;
}

.e-spot--post-include {
    position: absolute;
    right: 0;
    padding: 0 7px;
}

.e-spot--post-include i {
    width: 16px;
    text-align: center;
    display: inline-block;
    color: #c0c0c0 !important;
}

.e-spot--post-include i.fa-paperclip {
    font-size: 0.95em;
}


/* 팝업 설정 */

#e-spot--popup-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: rgba(20, 20, 20, 0.85);
    opacity: 0;

    transition: opacity 0.6s;
}

.e-spot--popup-active #e-spot--popup-container {
    z-index: 999999999;
    opacity: 1;
}

#e-spot--popup-close-x {
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    position: absolute;
    cursor: pointer;
}

#e-spot--popup-close-x::before, 
#e-spot--popup-close-x::after {
    content: '';
    width: 1px;
    height: 28px;
    display: block;
    position: absolute;
    left: calc(50% - 1px);
    top: calc(50% - 14px);
    background-color: #fff;
}

#e-spot--popup-close-x::before { transform: rotate(45deg); }
#e-spot--popup-close-x::after  { transform: rotate(-45deg); }

#e-spot--popup-content {
    position: absolute;
    width: calc(100% - 70px);
    height: calc(100% - 205px);
    top: 35px;
    left: 35px;
    display: flex;
    justify-content: center;    /* 가로 중앙 정렬 */
    align-items: center;        /* 세로 중앙 정렬 */
}

#e-spot--popup-content .swiper-container {
    width: 100%;
    height: 100%;
}

#e-spot--popup-content .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
}

#e-spot--popup-content .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;        /* 비율 유지하며 영역에 맞춤 */
    display: block;
    margin: auto;
}

#e-spot--popup-content .swiper-pagination {
    bottom: -28px;
}

#e-spot--popup-content .swiper-pagination-bullet-active {
    background-color: #fff;
}

#e-spot--popup-text {
    position: absolute;
    width: calc(100% - 70px);
    height: 100px;
    overflow-y: auto;
    bottom: 35px;
    left: 35px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    word-break: keep-all;
    display: flex;
    align-items: center;   /* 세로 중앙 정렬 */
    justify-content: center; /* 가로 중앙 정렬 (필요할 경우) */
}