/* utility wysiwyg-editor */

.u-wysiwyg-editor {
  max-width: 600px;
}

.u-wysiwyg-editor h1,
.u-wysiwyg-editor h2,
.u-wysiwyg-editor h3,
.u-wysiwyg-editor h4 {
  line-height: 120%;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 30px;
}

.u-wysiwyg-editor h1 {
  font-size: 50px;
}

.u-wysiwyg-editor h2 {
  font-size: 30px;
  margin-top: 50px;
}

.u-wysiwyg-editor h2:first-child {
  margin-top: 0;
}

.u-wysiwyg-editor h3 {
  font-size: 25px;
}

.u-wysiwyg-editor h4 {
  font-size: 20px;
}

/* .u-wysiwyg-editor p {
  opacity: 0.8;
} */

.u-wysiwyg-editor p,
.u-wysiwyg-editor ul,
.u-wysiwyg-editor ol {
  text-align: justify;
  font-size: 18px;
  line-height: 150%;
  margin-bottom: 18px;
}

.u-wysiwyg-editor p:last-child {
  margin-bottom: 0;
}

.u-wysiwyg-editor ul,
.u-wysiwyg-editor ol {
  list-style: auto;
  list-style-position: inside;
}

.u-wysiwyg-editor hr {
  margin-bottom: 30px;
}

.u-wysiwyg-editor iframe {
  margin-bottom: 50px !important;
}

.u-wysiwyg-editor a {
  display: inline;
  text-decoration: underline;
}

.u-wysiwyg-editor blockquote {
  display: block;
  position: relative;
  font-style: italic;
  /* font-weight: 300; */
  margin-bottom: 30px;
  padding-left: 30px;
}

.u-wysiwyg-editor blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: var(--pink-dark);
  border-radius: 6px;
}

.u-wysiwyg-editor blockquote p {
  margin-bottom: 8px;
}

.u-wysiwyg-editor img {
  display: block;
  width: auto;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  margin: 0 auto;
}

.u-wysiwyg-editor figcaption {
  font-size: 14px;
  text-align: center;
  padding: 4px 0;
}

.u-wysiwyg-editor iframe {
  max-width: calc(100vw - (var(--container-padding) * 2));
  max-height: calc((100vw - (var(--container-padding) * 2)) / 1.7778); /* 16:9 */
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.u-wysiwyg-editor .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 30px;
}

.u-wysiwyg-editor .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.u-wysiwyg-editor .wp-block-image {
  margin-bottom: 50px;
}

@media(max-width: 1025px) {
  .u-wysiwyg-editor {
    overflow: hidden;

    * {
      word-wrap: break-word;
    }
  }
  
  .u-wysiwyg-editor h1,
  .u-wysiwyg-editor h2,
  .u-wysiwyg-editor h3,
  .u-wysiwyg-editor h4 {
    margin: 20px 0;
  }

  .u-wysiwyg-editor h1 {
    font-size: 32px;
  }

  .u-wysiwyg-editor h2 {
    font-size: 24px;
  }

  .u-wysiwyg-editor h3 {
    font-size: 25px;
    text-transform: uppercase;
  }

  .u-wysiwyg-editor h4 {
    font-size: 20px;
  }
}
