.redactor--820 {
  max-width: 820px;
}

.redactor p:not(.widget-insert-table p, .widget-insert-match p, .grid p) {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 20px;
}

.redactor p:last-child:not(.widget-insert-table p, .widget-insert-match p, .grid p) {
  margin: 0;
}

.redactor blockquote {
  margin: 0 0 20px;
}

.redactor pre {
  margin: 0 0 20px;
  white-space: pre-wrap;
}

.redactor h1,
.redactor h2,
.redactor h3,
.redactor h4,
.redactor h5,
.redactor h6 {
  margin: 0 0 20px;
  font-weight: 700;
}

.redactor h1:not(.widget-insert-table h1, .widget-insert-match h1) {
  font-size: 32px;
  line-height: 36px;
}

.redactor h2:not(.widget-insert-table h2, .widget-insert-match h2) {
  font-size: 26px;
  line-height: 28px;
}

.redactor h3:not(.widget-insert-table h3, .widget-insert-match h3) {
  font-size: 18px;
  line-height: 20px;
}

.redactor h4:not(.widget-insert-table h4, .widget-insert-match h4) {
  font-size: 16px;
  line-height: 18px;
}

.redactor h5:not(.widget-insert-table h5, .widget-insert-match h5) {
  font-size: 14px;
  line-height: 16px;
}

.redactor h6:not(.widget-insert-table h6, .widget-insert-match h6) {
  font-size: 12px;
  line-height: 14px;
}

.redactor mark {
  background-color: var(--yellow);
  color: var(--light-black);
}

.redactor code {
  background-color: var(--light-gray-3);
  color: var(--main);
}

.redactor samp {
  background-color: var(--light-blue);
  color: var(--white);
}

.redactor var {
  color: var(--gray);
}

.redactor kbd {
  background-color: var(--light-black);
  color: var(--white);
}

.redactor cite {
  color: var(--gray);
}

.redactor sub {
  top: 0;
}

.redactor b,
.redactor strong {
  font-weight: 600;
}

.redactor ul:not(.widget-insert-table ul, .widget-insert-match ul, .grid ul) {
  margin: 0 0 20px;
}

.redactor li:not(.widget-insert-table li, .widget-insert-match li, .grid li) {
  margin: 0 0 10px;
  align-items: center;
  display: inline-block;
  font-size: 16px;
  line-height: 20px;
  width: 100%;
}

.redactor li:not(.widget-insert-table li, .widget-insert-match li, .grid li):before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--main);
  border-radius: 50%;
  position: relative;
  bottom: 3px;
  margin: 0 10px 0 0;
  flex-shrink: 0;
}

.redactor li:last-child:not(.widget-insert-table li:last-child, .widget-insert-match li:last-child, .grid li:last-child) {
  margin: 0;
}

.redactor figure {
  margin: 0 0 20px;
}

.redactor img:not(.widget-insert-table img, .widget-insert-match img, .grid img) {
  width: 100%;
  height: auto !important;
  margin: 0 0 20px;
  max-width: 100% !important;
}

.redactor iframe {
  margin: 0 0 20px;
  width: 925px;
  height: calc(925px*9/16);
}

.redactor a:not(.widget-insert-table a, .widget-insert-match a) {
  color: var(--main);
  font-weight: 600;
}

.redactor a:hover:not(.widget-insert-table a:hover, .widget-insert-match a:hover) {
  color: var(--hover);
  transition: 0.3s;
}

.redactor table:not(.widget-insert-table table, .widget-insert-match table) {
  border-collapse: collapse;
  max-width: 100%;
  table-layout: fixed;
  width: 100%;
  border: 1px solid var(--gray);
  margin: 0 0 20px;
}

.redactor table.redactor__table--no-border:not(.widget-insert-table table, .widget-insert-match table) {
  border: none;
}

.redactor table th:not(.widget-insert-table table th, .widget-insert-match table th),
.redactor table td:not(.widget-insert-table table td, .widget-insert-match table td) {
  border: 1px solid var(--gray);
  padding: 5px;
  text-align: center;
}

.redactor table.redactor__table--no-border th:not(.widget-insert-table table th, .widget-insert-match table th),
.redactor table.redactor__table--no-border td:not(.widget-insert-table table td, .widget-insert-match table td) {
  border: none;
}

.redactor .text-center {
  text-align: center;
}

.redactor .text-right {
  text-align: right;
}

.redactor .text-justify {
  text-align: justify;
}

.redactor .wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 20px;
}

@media (max-width: 1280px) {
  .redactor iframe {
    width: calc(100vw - 40px);
    height: calc((100vw - 40px)*(9/16));
  }
}

@media (max-width: 880px) {
  .redactor__scrolling {
    overflow-x: scroll;
    margin: 0 -20px;
  }

  .redactor .redactor__table:not(.widget-insert-table table, .widget-insert-match table) {
    margin: 0 20px 20px;
    width: 840px;
    min-width: 840px;
  }

  .redactor h1:not(.widget-insert-table h1, .widget-insert-match h1) {
    font-size: 28px;
    line-height: 32px;
  }

  .redactor h2:not(.widget-insert-table h2, .widget-insert-match h2) {
    font-size: 24px;
    line-height: 26px;
  }

  .redactor .wrap {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .redactor__scrolling {
    margin: 0 -15px;
  }

  .redactor .redactor__table:not(.widget-insert-table table, .widget-insert-match table) {
    margin: 0 15px 20px;
  }

  .redactor h1:not(.widget-insert-table h1, .widget-insert-match h1) {
    font-size: 22px;
    line-height: 28px;
  }

  .redactor h2:not(.widget-insert-table h2, .widget-insert-match h2) {
    font-size: 20px;
    line-height: 24px;
  }

  .redactor iframe {
    width: calc(100vw - 30px);
    height: calc((100vw - 30px)*(9/16));
  }
}


