.modal:not(.is-open) {
	display: none;
}

.modal.is-open {
	display: block;
}

.modal .modal__overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .modal__container {
    display: block;
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px 28px;
}

.modal .modal__title { 
	margin: 0;
}

.modal #designation {
	font-size: 0.95em;
}

.modal #post-content {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

.modal .modal__close {
    display: block;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

/* Elementor 编辑器里直接显示 modal，方便编辑 */
.elementor-editor-active .modal { display: block; }
.elementor-editor-active .modal .modal__overlay { position: static; background: none; }