/****/
.dynamic-section-blog,
.dynamic-sections-page,
.dynamic-section {
  .mt-30 {
    margin-top: 3.0rem;
  }

  .mb-30 {
    margin-bottom: 3.0rem;
  }

  .mt-50 {
    margin-top: 5.0rem;
  }

  .mb-50 {
    margin-bottom: 5.0rem;
  }

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

  .palette-block {
    margin-top: 50px;

    &:first-child {
      margin-top: 0;
    }

    .color-swiper {
      margin-top: 50px;

      &:first-child {
        margin-top: 0;
      }
    }

    /* display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: 50px;
    gap: 50px;
    &:first-child {
      margin-top: 0;
    } */
  }

  .dynamic-blog-banner {
    .image-with-text {
      background-color: #F9F9FB;
    }

    .circle-divider {
      font-weight: 700;
      font-size: 12px;
      color: #656fa4;
      text-transform: uppercase;
    }

    .image-with-text__heading.inline-richtext.h1 {
      font-size: 2.8rem;
      font-weight: 500;
      color: #24242c;
      margin-top: 10px;
    }

    .blog-tags {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .blog-tag {
      color: #7e8bcd;
      text-decoration: none;
      background: #fff;
      border-radius: 20px;
      padding: 9px 9px;
      font-size: 14px;
      cursor: default;
      font-weight: 400;
      line-height: 100%;
      letter-spacing: 0;
      text-align: center;
      display: block;
    }
  }

  .dynamic-full-page-banner img {
    height: auto;
    max-width: 100%;
    margin: auto;
    display: block;
  }

  .dynamic-video-section {
    padding: 3.0rem 0 3.0rem 0;
    text-align: center;
  }

  .rich-text .rich-text__text {
    color: #191b1f;
    font-size: 1.4rem;
  }

  .rich-text-section,
  .rich-text {
    color: #191b1f;
    font-size: 1.4rem;

    h1,
    h2,
    h3,
    h4,
    h5 {
      color: #191b1f;
      line-height: 140%;
      letter-spacing: 0.06rem;
    }
  }

  .image-gallery {
    display: grid;
    grid: auto / 33.333333% 33.333333% 33.333333%;

    .gallery-item {
      max-height: 427px;
      overflow: hidden;
      padding: 2.5px;

      @media (max-width: 1024px) {
        max-height: 330px;
      }

      @media (max-width: 768px) {
        max-height: 250px;
      }

      @media (max-width: 425px) {
        max-height: 120px;
      }
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .dynamic-img-text-custom {
    padding: 1.5rem 0 1.5rem 0;

    p {
      font-weight: 400;
      font-size: 1.4rem;
      line-height: 140%;
      margin-bottom: 2.6rem;
      color: #191b1f;

      a {
        color: inherit;
        text-decoration: underline;
      }

      &:last-child {
        margin-bottom: 0;
      }
    }

    .image-with-text__grid {
      display: block;
      align-items: center;
      justify-content: space-between;

      .dynamic-section-image,
      .dynamic-section-content {
        width: 100%;
      }

      .dynamic-section-image {
        img {
          max-width: 100%;
          height: auto;
          display: block;
          max-height: 500px;
          object-fit: contain;
        }
      }

      .blog-img-caption p {
        font-size: 12px;
        font-style: italic;
        color: #888888;
        margin-top: 10px;
      }
    }

    .dynamic-section-content {
      padding: 3.0rem 0 0 0;
    }
  }

  .dynamic-section-content-title {
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 100%;
    color: #191b1f;
    margin: 0 0 2.0rem 0;
  }
}

.video-container {
  margin-bottom: 20px;

  iframe {
    max-width: 100%;
  }
}

.dynamic-section-heading {
  .metafield-rich_text_field {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
      font-size: 3.4rem;
      font-weight: 500;
      line-height: 100%;
      color: #191b1f !important;
      text-align: center;
    }
  }

  .metafield-single_line_text_field {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 100%;
    color: #191b1f !important;
    text-align: center;
  }
  
}

.dynamic-img-text-custom .custom-section__buttons {
  text-transform: none;
}

.rm-page-width .page-width {
  padding: unset;
  margin: unset;
  max-width: unset;
}

.dynamic-palate .swiper-slide img {
  width: 100%;
}

.dynamic-palate {
  /* display: flex;
  gap: 60px;
  padding: 3rem 0;

  @media (max-width: 750px) {
    flex-direction: column;
    gap: 20px;

  } */
}

.dynamic-palate-reverse {
  flex-direction: row-reverse;
}

.dynamic-palate .palette-content {
  width: 50%;

  @media (max-width: 750px) {
    width: 100%;
  }

}

.dynamic-palate .text-content {
  width: 50%;

  @media (max-width: 750px) {
    width: 100%;
  }
}

@media (min-width: 750px) {

  .dynamic-section-blog,
  .dynamic-sections-page,
  .dynamic-section {
    .dynamic-blog-banner {
      .image-with-text__heading.inline-richtext.h1 {
        font-size: 4.8rem;
      }
    }

    .dynamic-video-section {
      padding: 5.5rem 0 5.8rem 0;
    }

    .rich-text .rich-text__text {
      font-size: 1.6rem;
    }

    .rich-text__blocks {
      max-width: 100%;
    }

    .dynamic-img-text-custom {

      .rich-text-section,
      p {
        font-size: 1.6rem;
      }
      ul li,
      ol li {
        font-size: 1.6rem;
        color: #1E1E1E;
    }
      .image-with-text__grid {
        .dynamic-section-content {}
      }
    }
  }
}

@media (min-width: 1024px) {

  .dynamic-section-blog,
  .dynamic-sections-page,
  .dynamic-section {
    .dynamic-img-text-custom {
      padding: 2.5rem 0 2.5rem 0;

      .dynamic-section-content-title {
        font-size: 2.4rem;
      }

      .image-with-text__grid {
        display: flex;

        .dynamic-section-image,
        .dynamic-section-content {
          width: 50%;
        }

        .dynamic-section-content {
          padding: 2.0rem 8.7rem;

          .image-with-text__grid--reverse & {
            padding-left: 0;
          }
        }
      }
    }
  }
}