.summernote-content * {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.4;
}

.summernote-content table {
  border-collapse: collapse
}

.summernote-content table:not([cellpadding]) td,
.summernote-content table:not([cellpadding]) th {
  padding: .4rem
}

.summernote-content table[border]:not([border="0"]):not([style*=border-width]) td,
.summernote-content table[border]:not([border="0"]):not([style*=border-width]) th {
  border-width: 1px
}

.summernote-content table[border]:not([border="0"]):not([style*=border-style]) td,
.summernote-content table[border]:not([border="0"]):not([style*=border-style]) th {
  border-style: solid
}

.summernote-content table[border]:not([border="0"]):not([style*=border-color]) td,
.summernote-content table[border]:not([border="0"]):not([style*=border-color]) th {
  border-color: #ccc
}

.summernote-content figure {
  display: table;
  margin: 1rem auto
}

.summernote-content figure figcaption {
  color: #999;
  display: block;
  margin-top: .25rem;
  text-align: center
}

.summernote-content hr {
  border-color: #ccc;
  border-style: solid;
  border-width: 1px 0 0 0
}

.summernote-content code {
  background-color: #e8e8e8;
  border-radius: 3px;
  padding: .1rem .2rem
}

.mce-content-body:not([dir=rtl]) blockquote {
  border-left: 2px solid #ccc;
  margin-left: 1.5rem;
  padding-left: 1rem
}

.mce-content-body[dir=rtl] blockquote {
  border-right: 2px solid #ccc;
  margin-right: 1.5rem;
  padding-right: 1rem
}


.summernote-content .youtube-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.summernote-content .youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* YouTube embeds only: responsive 3-column row */
.summernote-content .youtube-embed-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100% !important;
  max-width: 100% !important;
}

.summernote-content .youtube-embed-grid .youtube-embed {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

@media (min-width: 768px) {
  .summernote-content .youtube-embed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summernote-content .youtube-embed-grid:has(> .youtube-embed:only-child) {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .summernote-content .youtube-embed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .summernote-content .youtube-embed-grid:has(> .youtube-embed:only-child) {
    grid-template-columns: 1fr !important;
  }

  .summernote-content .youtube-embed-grid:has(> .youtube-embed:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.summernote-content strong {
  margin: 0px;
}

.summernote-content ol li {
  list-style-type: decimal;
}

.summernote-content ul li {
  list-style-type: disc;
}

.summernote-content ol {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 40px;
  list-style-type: decimal;
}

.summernote-content ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 40px;
}

.summernote-content ul ul {
  list-style-type: circle;
  margin-block-start: 0px;
  margin-block-end: 0px;
}

.summernote-content ul ul {
  list-style-type: square;
}

.summernote-content ul ul li {
  list-style-type: circle;
}

.summernote-content ul ul ul li {
  list-style-type: square;
}

.summernote-content ol li {
  display: list-item;
  text-align: -webkit-match-parent;
}


.summernote-content h1,
.summernote-content h2,
.summernote-content h3,
.summernote-content h4,
.summernote-content h5,
.summernote-content h6 {
  line-height: 1.8 !important;
}
