.summernote-demo {
	max-width: 980px;
}

.summernote-demo h1 {
	margin: 0 0 16px;
	font-size: 28px;
	line-height: 1.35;
	color: #222;
}

.summernote-demo .demo-guide {
	margin: 0 0 18px;
	color: #555;
	line-height: 1.7;
}

.summernote-demo .demo-actions {
	margin: 14px 0;
	font-size: 0;
}

.summernote-demo .demo-actions button {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 8px 14px;
	border: 1px solid #444;
	background: #fff;
	color: #222;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.summernote-demo .demo-actions button:hover,
.summernote-demo .demo-actions button:focus {
	background: #222;
	color: #fff;
}

.summernote-demo .demo-panel {
	margin-top: 22px;
}

.summernote-demo .demo-panel h2 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.4;
	color: #222;
}

.summernote-demo .demo-output {
	width: 100%;
	min-height: 160px;
	padding: 12px;
	border: 1px solid #d4d4d4;
	box-sizing: border-box;
	font-family: Consolas, "Courier New", monospace;
	font-size: 13px;
	line-height: 1.5;
	resize: vertical;
}

.summernote-demo .note-editor .note-editable,
.summernote-board-editor .note-editable,
.summernote-demo .demo-preview {
	font-family: "맑은 고딕", "Malgun Gothic", Dotum, Arial, sans-serif;
}

.summernote-demo .note-editor .note-toolbar .note-fontname .note-dropdown-menu a,
.summernote-board-editor .note-toolbar .note-fontname .note-dropdown-menu a {
	display: block !important;
	white-space: nowrap;
}

.summernote-demo .note-editor .note-toolbar .note-color-all .note-dropdown-menu,
.summernote-board-editor .note-toolbar .note-color-all .note-dropdown-menu {
	min-width: 390px !important;
	white-space: nowrap;
	font-size: 0;
}

.summernote-demo .note-editor .note-toolbar .note-color-all .note-dropdown-menu .note-palette,
.summernote-board-editor .note-toolbar .note-color-all .note-dropdown-menu .note-palette {
	display: inline-block !important;
	width: 160px !important;
	min-width: 160px !important;
	margin: 0 5px !important;
	vertical-align: top;
	font-size: 12px;
}

.summernote-demo .note-editor .note-toolbar .note-color-all .note-dropdown-menu .note-palette:first-child,
.summernote-board-editor .note-toolbar .note-color-all .note-dropdown-menu .note-palette:first-child {
	margin-right: 20px !important;
}

.summernote-demo .note-editor .note-toolbar .note-color-all .note-color-row,
.summernote-board-editor .note-toolbar .note-color-all .note-color-row {
	display: block !important;
	width: 160px !important;
	height: 20px !important;
	white-space: nowrap;
	font-size: 0;
	line-height: 0;
}

.summernote-demo .note-editor .note-toolbar .note-color-all .note-color-btn,
.summernote-board-editor .note-toolbar .note-color-all .note-color-btn {
	display: inline-block !important;
	float: none !important;
	width: 20px !important;
	min-width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: top;
}

.summernote-demo .demo-preview {
	min-height: 120px;
	padding: 16px;
	border: 1px solid #d4d4d4;
	background: #fff;
	line-height: 1.7;
}

.summernote-image-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10050;
}

.summernote-image-modal-backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.45);
}

.summernote-image-modal-dialog {
	position: relative;
	z-index: 2;
	width: 96%;
	max-width: 1120px;
	max-height: calc(100vh - 32px);
	margin: 16px auto;
	background: #fff;
	border: 1px solid #d4d4d4;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

.summernote-image-modal-body {
	max-height: calc(100vh - 170px);
	padding: 18px 22px;
	overflow-y: auto;
}

.summernote-image-file-info,
.summernote-image-gif-notice,
.summernote-image-status {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.6;
	color: #555;
}

.summernote-image-gif-notice {
	color: #c12f29;
}

.summernote-image-status.is-error {
	color: #c12f29;
}

.summernote-image-preview-wrap {
	display: table;
	width: 100%;
	margin: 0 0 16px;
	table-layout: fixed;
}

.summernote-image-preview-box {
	display: table-cell;
	width: 50%;
	padding: 0 8px 0 0;
	vertical-align: top;
}

.summernote-image-preview-box + .summernote-image-preview-box {
	padding: 0 0 0 8px;
}

.summernote-image-preview-title {
	margin: 0 0 8px;
	overflow: hidden;
}

.summernote-image-preview-title:after {
	content: '';
	display: block;
	clear: both;
}

.summernote-image-preview-title strong {
	display: block;
	float: left;
	font-size: 14px;
	line-height: 30px;
	color: #222;
}

.summernote-image-modal .summernote-image-btn {
	display: inline-block;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid #d9d9d9;
	border-radius: 2px;
	background: #fff;
	color: #53585d;
	font-family: "맑은 고딕", "Malgun Gothic", Dotum, Arial, sans-serif;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	box-sizing: border-box;
}

.summernote-image-modal .summernote-image-btn:hover,
.summernote-image-modal .summernote-image-btn:focus {
	border-color: #959595;
	background: #f5f5f2;
	color: #313131;
	outline: none;
}

.summernote-image-modal .summernote-image-btn-zoom {
	float: right;
	min-width: 84px;
	padding: 5px 12px;
	font-size: 12px;
}

.summernote-image-modal-footer .summernote-image-btn {
	margin-left: 8px;
}

.summernote-image-modal-footer .summernote-image-btn:disabled,
.summernote-image-modal .summernote-image-btn:disabled {
	border-color: #e5e5e5;
	background: #fafafa;
	color: #aaa;
	cursor: not-allowed;
}

.summernote-image-preview-frame {
	min-height: 300px;
	padding: 12px;
	border: 1px solid #d4d4d4;
	background: #fafafa;
	text-align: center;
}

.summernote-image-preview-frame img {
	display: block;
	max-width: 100%;
	max-height: 380px;
	margin: 0 auto;
}

.summernote-image-options {
	width: 100%;
	border-collapse: collapse;
}

.summernote-image-options th,
.summernote-image-options td {
	padding: 8px 6px;
	border-top: 1px solid #eee;
	font-size: 14px;
	vertical-align: middle;
}

.summernote-image-options th {
	width: 34%;
	color: #333;
	text-align: left;
}

.summernote-image-options .input {
	width: 100%;
	max-width: 220px;
	box-sizing: border-box;
}

.summernote-image-options .input:disabled {
	background: #f5f5f5;
	color: #999;
}

.summernote-image-target-size {
	display: inline-block;
	width: 90px !important;
	max-width: 90px;
}

.summernote-image-target-size-note {
	display: none;
	margin-left: 8px;
	font-size: 12px;
	line-height: 1.5;
	color: #888;
}

.summernote-image-format-list .summernote-image-checkbox-label {
	display: inline-block;
	margin: 0 16px 6px 0;
}

.summernote-image-checkbox-label {
	display: inline-block;
	margin-right: 4px;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	vertical-align: middle;
	cursor: pointer;
}

.summernote-image-modal input.summernote-image-checkbox {
	display: inline-block !important;
	position: relative !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	margin: 0 8px 0 0 !important;
	padding: 0 !important;
	border: 1px solid #c7c7c7 !important;
	border-radius: 2px;
	background: #fff !important;
	vertical-align: middle;
	cursor: pointer;
	box-sizing: border-box;
	opacity: 1 !important;
	visibility: visible !important;
	overflow: visible !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.summernote-image-modal input.summernote-image-checkbox:checked {
	border-color: #53585d !important;
	background: #53585d !important;
}

.summernote-image-modal input.summernote-image-checkbox:checked::after {
	content: '';
	position: absolute;
	top: 1px;
	left: 5px;
	width: 4px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}

.summernote-image-modal input.summernote-image-checkbox:disabled {
	cursor: not-allowed;
	opacity: 0.6 !important;
}

.summernote-image-processed-info {
	margin: 8px 0 0;
	padding-top: 2px;
	font-size: 13px;
	line-height: 1.6;
	color: #555;
}

.summernote-image-modal-footer {
	padding: 14px 18px 16px;
	border-top: 1px solid #e5e5e5;
	background: #fff;
	text-align: right;
	font-size: 0;
}

.summernote-image-modal-footer .summernote-image-btn {
	font-size: 13px;
}

.summernote-image-lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10100;
	display: none;
}

.summernote-image-lightbox.is-open {
	display: block;
}

.summernote-image-lightbox-backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.78);
}

.summernote-image-lightbox-panel {
	position: relative;
	width: 96%;
	max-width: 1400px;
	max-height: calc(100vh - 40px);
	margin: 20px auto;
	padding: 44px 20px 20px;
	box-sizing: border-box;
}

.summernote-image-lightbox-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.summernote-image-lightbox-title {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #fff;
	text-align: center;
}

.summernote-image-lightbox-frame {
	min-height: 200px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(0, 0, 0, 0.35);
	text-align: center;
}

.summernote-image-lightbox-img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 140px);
	margin: 0 auto;
}

.summernote-image-modal-header {
	position: relative;
	padding: 14px 44px 14px 18px;
	border-bottom: 1px solid #e5e5e5;
}

.summernote-image-modal-header h4 {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	color: #222;
}

.summernote-image-modal-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 640px) {
	.summernote-image-modal-dialog {
		width: 98%;
		margin: 8px auto;
	}

	.summernote-image-modal-body {
		max-height: calc(100vh - 150px);
		padding: 14px;
	}

	.summernote-image-preview-wrap,
	.summernote-image-preview-box {
		display: block;
		width: 100%;
	}

	.summernote-image-preview-box,
	.summernote-image-preview-box + .summernote-image-preview-box {
		padding: 0;
	}

	.summernote-image-preview-box + .summernote-image-preview-box {
		margin-top: 12px;
	}

	.summernote-image-preview-frame {
		min-height: 220px;
	}

	.summernote-image-preview-frame img {
		max-height: 260px;
	}

	.summernote-image-lightbox-panel {
		width: 100%;
		margin: 10px auto;
		padding: 40px 10px 10px;
	}

	.summernote-image-lightbox-img {
		max-height: calc(100vh - 120px);
	}
}
