[v-cloak] {
  display: none !important;
}

/* 기존 Quill/스마트에디터 HTML 호환 (상세 본문) */
.gb-read-body img,
.ql-editor img,
.ck-content img {
  max-width: 100%;
  height: auto;
}
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* CKEditor 5 글쓰기/수정 */
.gb-ckeditor-host,
#editor .ck.ck-editor,
#edit-editor .ck.ck-editor {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
#editor .ck.ck-toolbar,
#edit-editor .ck.ck-toolbar,
.form-editor .ck.ck-toolbar,
.gb-ckeditor-ui .ck.ck-toolbar {
  border: none;
  border-bottom: 1px solid #ccc;
}
/* attachTo 시 #editor 는 display:none 되고, 실제 편집면은 형제 .ck-editor 안 .ck-content */
.form-editor .ck.ck-editor .ck-content.ck-editor__editable,
.gb-ckeditor-ui .ck-content.ck-editor__editable,
.ck.ck-editor .ck-editor__editable_inline {
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
}
.ck.ck-editor__editable_inline {
  padding: 0 var(--ck-spacing-standard);
  border: 1px solid #0000;
  overflow: auto;
  border: none;
  border-top: 1px solid;
}
.form-editor .ck-source-editing-area,
.gb-ckeditor-ui .ck-source-editing-area,
.form-editor .ck-source-editing-area textarea,
.gb-ckeditor-ui .ck-source-editing-area textarea {
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
}

.ck-content table:not([style]),
.gb-read-body table:not([style]),
.ql-editor table:not([style]) {
  width: 100%;
  border-collapse: collapse;
}
.ck-content table[style],
.ck-content figure.table:not(.layout-table) > table[style] {
  border: none !important;
  width: auto;
  height: auto;
}
.ck-content table[style] td,
.ck-content table[style] th,
.ck-content figure.table > table[style] td,
.ck-content figure.table > table[style] th,
.ck-content table td[style],
.ck-content table th[style] {
  border: none !important;
  min-width: 0 !important;
}
.ck-content figure.media,
.gb-read-body figure.media {
  margin: 1rem 0;
}
.ck-content figure.media iframe,
.gb-read-body figure.media iframe {
  max-width: 100%;
}

.gnuboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40rem;
  text-align: center;
}

.gnuboard-empty img {
  width: 25rem;
  height: 6.8rem;
  object-fit: cover;
}

.gnuboard-empty strong {
  display: block;
  font-size: 2rem;
  line-height: 3rem;
  font-weight: 700;
  margin: 1.6rem 0 .4rem;
}

.gnuboard-empty p {
  font-size: 1.4rem;
  line-height: 2rem;
}
