.tox-tinymce-inline .tox-editor-header {
	border: none !important;
	box-shadow: none;
}

#tinymce-content sub {
	vertical-align: baseline;
	font-size: 80%;
	color: rgba(0, 0, 0, 0.7);
}

#tinymce-content sup {
	font-size: 80%;
	color: rgba(0, 0, 0, 0.7);
}

#tinymce-content blockquote {
	font-size: 18px;
	line-height: 180%;
	font-weight: 500;
}

#tinymce-content blockquote.bq_box {
	background-color: #fdf8eb;
	border: 2px solid #fff2d4;
	border-radius: 20px;
	margin: 16px 0px;
	padding: 16px 32px;
}

#tinymce-content blockquote.bq_bar {
	margin: 20px;
	padding: 0px 24px;
	border-left: 4px solid #90d7ff;
}

/* blockquote 첫번째, 마지막 요소 마진 초기화 */
#tinymce-content blockquote div:last-child,
#tinymce-content blockquote p:last-child {
	margin-bottom: 0px;
}

#tinymce-content blockquote p:first-child,
#tinymce-content blockquote div:first-child {
	margin-top: 0px;
}

#tinymce-content hr {
	border: none;
	border-bottom: 2px solid #dedede;
	color: #dedede;
	overflow: visible;
	height: 4px;
	cursor: grab;
}

#tinymce-content li {
	list-style: inherit;
	padding-inline-start: 16px;
	padding-bottom: 8px;
	font-size: 18px;
	font-weight: 300;
	line-height: 160%;
	letter-spacing: -0.02em;
}

#tinymce-content li:last-of-type {
	padding-bottom: 0;
}

#tinymce-content li ul,
#tinymce-content li ol {
	padding-top: 12px;
}

#tinymce-content ul {
	padding-left: 2rem;
	list-style-type: disc;
	list-style-position: outside;
}

#tinymce-content ul ul {
	padding-left: 1rem;
	list-style-type: circle;
}

#tinymce-content ul ul ul {
	padding-left: 1rem;
	list-style-type: square;
}

#tinymce-content ol {
	padding-left: 2rem;
	list-style: auto;
	list-style-position: outside;
	list-style-type: decimal;
}

#tinymce-content ol ol {
	padding-left: 1rem;
	list-style: upper-alpha;
}

#tinymce-content ol ol ol {
	padding-left: 1rem;
	list-style: lower-alpha;
}

#tinymce-content h1,
#tinymce-content h2,
#tinymce-content h3,
#tinymce-content h4 {
	letter-spacing: -0.0125em;
	margin-bottom: 0;
}

/* mb빠짐 */
#tinymce-content p {
	font-weight: 300;
	font-size: 18px;
	line-height: 210%;
	letter-spacing: -0.02em;
	font-feature-settings:
		'case' on,
		'cpsp' on,
		'salt' on,
		'ss01' on,
		'ss02' on,
		'ss03' on,
		'ss05' on,
		'ss06' on,
		'ss07' on,
		'ss08' on,
		'cv01' on,
		'cv02' on,
		'cv03' on,
		'cv04' on,
		'cv05' on,
		'cv07' on,
		'cv08' on,
		'cv09' on,
		'cv10' on,
		'cv12' on,
		'cv11' on;
}

.mce-content-body:not([dir='rtl'])[data-mce-placeholder]:not(.mce-visualblocks)::before {
	left: 1px;
	top: 5px;
}

#tinymce-content h1 {
	line-height: 160%;
	font-size: 32px;
	font-weight: 500;
}

#tinymce-content h2 {
	line-height: 170%;
	font-weight: 400;
	font-size: 24px;
}

#tinymce-content h3 {
	line-height: 180%;
	font-weight: 300;
	font-size: 22px;
}

#tinymce-content h4 {
	line-height: 180%;
	font-weight: bold;
	font-size: 20px;
}

/* caption */
#tinymce-content h6 {
	padding: 0 8px;
	margin: 8px;
	line-height: 150%;
	font-size: 14px;
	letter-spacing: -0.02em;
	color: #969696;
}

/* cation */
#tinymce-content p.caption {
	margin: 0;
	line-height: 21.5px;
	font-size: 14px;
	letter-spacing: -0.02em;
	color: #969696;
	word-break: break-word;
}

#tinymce-content em {
	font-variation-settings: 'slnt' 32;
}

#tinymce-content .iframe-wrapper {
	display: block;
	height: 400px;
	margin: auto;
}

#tinymce-content .mce-preview-object {
	border: none;
}

#tinymce-content .mce-object-iframe {
	display: block;
	height: 100%;
	margin: auto;
}

/* 변경 후: 유튜브만 제외 */
#tinymce-content iframe:not([src*='youtube.com']):not([src*='youtu.be']):not([src*='youtube-nocookie.com']) {
	width: 100%;
	height: 100%;
}

.tox-tinymce {
	margin-bottom: 0;
}

.tox .tox-toolbar__group {
	gap: 4px;
}

.tox button.tox-tbtn {
	width: 40px;
	padding: 6px 0;
	box-sizing: content-box;
	margin: 0;
	border-radius: 100%;
	cursor: pointer;
}

.tox .tox-tbtn__select-label {
	cursor: pointer;
}

.tox .tox-tbtn:hover,
.tox .tox-tbtn:focus {
	background-color: #ebf7ff;
}

.tox .tox-tbtn--enabled,
.tox .tox-tbtn--enabled:hover {
	background-color: #90d7ff;
}

.tox .tox-split-button:hover {
	box-shadow: 0 0 0 1px #ebf7ff inset;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
	background-image: none;
}

#tinymce-content button,
#tinymce-content div[role='button'],
#tinymce-content div[role='menuitemcheckbox'] {
	cursor: pointer !important;
}

#tinymce-content strong {
	font-weight: 700 !important;
}

#tinymce-content img {
	display: block;
	height: auto;
	max-width: 744px;
	/* 상하 마진이 빠짐 */
	margin: 0px auto;
	border-radius: 12px;
}

#tinymce-content figure.image {
	display: table;
	/* margin: 28px auto 40px; */
	margin: 0px auto;
	border-radius: 12px;
}

#tinymce-content figure img {
	display: table;
	margin: 28px auto 0px;
	border-radius: 12px;
	max-width: 744px;
}

#tinymce-content spi-video {
	display: block;
	width: auto;
	position: relative;
	width: 100%;
	margin: 28px auto 40px;
	cursor: grab;
	padding: 20px;
}

#tinymce-content spi-video iframe {
	width: 100% !important;
	height: 100% !important;
}

#tinymce-content spi-imageslider {
	position: relative;
	display: block;
	max-width: 100%;
	height: 300px;
	padding-bottom: 8px;
	margin: 28px auto 40px;
	overflow-x: auto;
	overflow-y: hidden;
}

#tinymce-content spi-imageslider .image-slider {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 16px;
	height: 100%;
	margin-bottom: 0;
}

#tinymce-content spi-imageslider .image {
	flex: 1 0 auto;
	display: block;
	position: relative;
	height: 100%;
	margin: 2px;
}

#tinymce-content spi-imageslider img {
	width: auto;
	height: calc(100% - 32px);
	max-height: 800px;
}

#tinymce-content figure.align-left {
	float: left;
}

#tinymce-content figure.align-right {
	float: right;
}

#tinymce-content figure.image img {
	margin: 0 auto;
	max-height: 800px;
}

#tinymce-content figure figcaption {
	padding: 0 8px;
	margin: 8px auto 0;
	border-radius: 12px;
	text-align: center;
	line-height: 21.5px;
	font-size: 14px;
	letter-spacing: -0.02em;
	color: #969696;
	word-break: break-word;
}

#tinymce-content figure figcaption br {
	display: none;
}

#tinymce-content spi-annotation {
	position: relative;
	display: inline;
	padding: 0 4px;
	background-color: #fae1a9;
	font-weight: 500;
	border-radius: 4px;
	cursor: pointer;
}

#tinymce-content spi-annotation .hidden {
	display: none;
}

#tinymce-content spi-annotation > .annotation-content {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	width: fit-content;
	height: 200px;
	padding-top: 32px;
	margin: auto;
	background-color: #ffffff;
	border-radius: 20px;
	box-shadow:
		0px 0px 1px rgba(0, 0, 0, 0.15),
		1px 6px 8px rgba(0, 0, 0, 0.15),
		2px 8px 12px rgba(0, 0, 0, 0.05);
	font-weight: 500;
	font-size: 16px;
	line-height: 20px;
	letter-spacing: -0.035em;
	cursor: default;
	z-index: 1;
	overflow: hidden;
}

#tinymce-content spi-annotation > .annotation-content::after {
	content: '각주';
	position: absolute;
	top: 12px;
	left: 16px;
	font-weight: 800;
	font-size: 12px;
	line-height: 12px;
	letter-spacing: 0.105em;
	cursor: default;
}

#tinymce-content spi-annotation textarea {
	resize: none;
	width: 300px;
	height: 168px;
	padding: 16px;
	margin: 0;
	border: none;
	border-top: 1px solid #e5e5e5;
	font-weight: 500;
	font-size: 16px;
	line-height: 20px;
	letter-spacing: -0.035em;
	box-shadow: none;
}

#tinymce-content a:not(:has(img)) {
	cursor: pointer;
	padding: 6px 12px;
	margin: 4px;
	border-radius: 4px;
	background-color: #ebf7ff;
	color: #0c87fa !important;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.02em;
	word-break: break-word;
}

#tinymce-content a:not(:has(img))::before {
	content: '🔗';
	padding-right: 8px;
	font-size: 12px;
}

#tinymce-content div div a {
	line-height: 100%;
}

#tinymce-content div a {
	line-height: 220%;
}

#tinymce-content a:visited {
	color: #969696;
}

#tinymce-content a:hover {
	text-decoration: none;
	color: #162eb1;
	background-color: #fff2d4;
}

#tinymce-content table {
	margin: 8px 0px;
}

#tinymce-content tbody {
	word-break: break-all !important;
	line-height: 160% !important;
	font-size: 1em !important;
	margin-bottom: 4px !important;
	font-weight: 300;
}

#tinymce-content td p {
	font-size: 1em !important;
	line-height: 160% !important;
	margin-bottom: 4px !important;
	font-weight: 300;
}

#tinymce-content tr td div {
	font-size: 1em !important;
	line-height: 160% !important;
	margin-bottom: 4px !important;
	font-weight: 300;
}

#tinymce-content .mce-content-body *[data-mce-selected] {
	box-shadow: 0 0 0 2px #30a8ff;
	outline: none;
}

.mce-content-body [contentEditable='false'] [contentEditable='true']:hover,
.mce-content-body [contentEditable='false'] [contentEditable='true']:focus {
	box-shadow: 0 0 0 2px #30a8ff;
	outline: none;
}

.mce-content-body [contentEditable='false'][data-mce-selected] {
	cursor: default;
	box-shadow: 0 0 0 2px #30a8ff;
	outline: none;
}

@media print {
	#tinymce-content {
		display: none;
	}
}

@media (max-width: 768px) {
	#tinymce-content spi-imageslider {
		height: auto;
	}
	#tinymce-content spi-imageslider .image-slider {
		align-items: center;
	}

	#tinymce-content spi-imageslider .image-slider figure.image {
		margin: 0 auto;
		height: 200px;
	}

	#tinymce-content img {
		display: block;
		width: auto;
		height: auto;
		max-width: 744px;
		margin: 28px auto;
		border-radius: 12px;
	}
}

.mce-content-body p,
.mce-content-body div {
	font-weight: 300;
	font-size: 18px;
	line-height: 210%;
	letter-spacing: -0.02em;
	font-feature-settings:
		'case' on,
		'cpsp' on,
		'salt' on,
		'ss01' on,
		'ss02' on,
		'ss03' on,
		'ss05' on,
		'ss06' on,
		'ss07' on,
		'ss08' on,
		'cv01' on,
		'cv02' on,
		'cv03' on,
		'cv04' on,
		'cv05' on,
		'cv07' on,
		'cv08' on,
		'cv09' on,
		'cv10' on,
		'cv12' on,
		'cv11' on;
}
