/* Grid kutularını içeren konteyner */
.ck.ck-insert-table-dropdown-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, 20px);
  gap: 4px;
  width: max-content;
}

/* Grid içindeki her kutu (hücre) */
.ck.ck-insert-table-dropdown-grid-box {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0;
  border: 1px solid var(--ck-color-base-border);
  border-radius: 2px;
  background: transparent;
}

/* Seçili kutu */
.ck.ck-insert-table-dropdown-grid-box.ck-on {
  background: var(--ck-color-focus-outer-shadow);
  border-color: var(--ck-color-focus-border);
}

.ck.ck-balloon-panel {
  z-index: 9999 !important;
}

.ckeditor-wrapper {
  position: relative !important;
  overflow: visible !important;
}
.ck-editor__editable {
  min-height: 400px;
}


/* == CKEditor 5 - Image Styles == */
figure.image {
  display: inline-block;
  margin: 1em 0;
  max-width: 100%;
  text-align: center;
}

figure.image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

figure.image-style-align-left {
  float: left;
  margin-right: 1em;
  clear: both;
}

figure.image-style-align-right {
  float: right;
  margin-left: 1em;
  clear: both;
}

figure.image-style-align-center {
  margin-left: auto;
  margin-right: auto;
}

figure.image_resized {
  display: inline-block;
}

figure.image_resized img {
  width: 100%;
  height: auto;
  display: block;
}

/* == CKEditor 5 - Table Styles == */
.ck-table-resized {
  width: 100%;
  border-collapse: collapse;
}

.ck-table-resized th,
.ck-table-resized td {
  border: 1px solid #ccc;
  padding: 8px;
}

/* == CKEditor 5 - Media Embed == */
.ck-media {
  display: block;
  max-width: 100%;
  margin: 1em 0;
}

.ck-media > div {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.ck-media iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
}

/* == CKEditor 5 - General HTML Support == */
.ck-content [data-html-support] {
  all: initial;
  display: contents;
}

/* == Typography == */
.ck-content p {
  margin: 0 0 1em;
  line-height: 1.6;
}

.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4 {
  margin: 1.2em 0 0.6em;
  font-weight: bold;
}

.ck-content blockquote {
  margin: 1em 2em;
  padding-left: 1em;
  border-left: 4px solid #ccc;
  color: #555;
  font-style: italic;
}
