.article .header {
  width: 100%;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.article .header .text-wrapper {
  z-index: 1;
  background-color: var(--background);
  padding: 24px;
}

.article .header .text-wrapper .date {
  color: var(--disabled);
  margin: 0;
}

.article .header .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article .wysiwyg {
  position: relative;
}

.article .wysiwyg .img-wrapper {
  position: relative;
  width: calc(100% - 48px);
  background-image: url(../images/Conversion.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.article .wysiwyg .img-wrapper img {
  width: 100%;
  z-index: 1;
}

.article .wysiwyg .img-wrapper canvas {
  position: absolute;
  right: 0;
  top: 0;
  width: 70%;
  height: 100%;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .article .header .no-animation-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-repeat: repeat;
    background-size: 50px 50px;
  }

  .article .header .canvas {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .article .header .no-animation-background {
    display: none;
  }

  .article .header .canvas {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
  }

  .article .header .canvas canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
  }
}

/* S */
@media (max-width: 479px) {
  /* 4 columns */
  .article .header .text-wrapper {
    grid-column: 1 / 5;
    grid-row: 2 / 2;
  }

  .article .header .image-wrapper {
    transform: translateX(20px);
  }

  .article .wysiwyg .img-wrapper {
    margin: 20px 0 0 10px;
  }
  .article .wysiwyg .img-wrapper img {
    transform: translate(-20px, 20px);
  }
  .article .wysiwyg .img-wrapper canvas {
    display: none;
  }
  .toc {
    grid-column: 1 / 5;
  }
}

/* Both S and M */
@media (max-width: 960px) {
  /* 8 columns */
  .article .header .text-wrapper {
    grid-column: 1 / 9;
    margin-bottom: 30px;
    margin-top: 8px;
  }
  .article .header .image-wrapper {
    height: 100%;
    max-height: 50vh;
    grid-column: 1 / 9;
  }

  .toc {
    position: relative;
    margin-top: 12px;
    position: relative;
    top: 0 !important;
  }

  .toc-marker {
    display: none;
  }

  .toc ul {
    margin: 0;
    padding-left: 10px;
    list-style: none;
    border-left: 3px solid var(--gray-25);
  }

  .toc ul li {
    margin: 12px;
    font-family: "WorkSans", Helvetica, Arial, sans-serif !important;
    font-size: 17px;
    line-height: 28px;
    font-weight: 400;
  }

  .toc ul li a {
    text-decoration: none;
  }

  .toc ul li a strong {
    font-family: "WorkSans", Helvetica, Arial, sans-serif !important;
    font-size: 17px;
    line-height: 28px;
  }

  .toc::before {
    content: "Table of contents";
    font-family: "WISE", Helvetica, Arial, sans-serif !important;
    /* h6 */
    font-weight: 700;
    font-size: 15px;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* M */
@media (min-width: 480px) and (max-width: 960px) {
  /* 8 columns */
  .article .header .image-wrapper {
    transform: translateX(40px);
  }

  .article .wysiwyg .img-wrapper {
    margin: 80px 0 32px 30px;
  }
  .article .wysiwyg .img-wrapper img {
    transform: translate(-40px, -40px);
  }
}

/* L - XL */
@media (min-width: 960px) {
  /* 12 columns */

  .article .header {
    height: 70vh;
    max-height: 700px;
  }

  .article .header .text-wrapper {
    grid-column: 1 / 7;
    grid-row: 2 / 2;
    transform: translateY(-120%);
  }
  .article .header .image-wrapper {
    height: 58vh;
    max-height: calc(700px - 100px);
    width: 100%;
    grid-column: 6 / 13;
    grid-row: 1 / 1;
  }

  .article .wysiwyg .img-wrapper {
    margin: 80px 0 32px 48px;
  }
  .article .wysiwyg .img-wrapper img {
    transform: translate(-48px, -48px);
  }

  .article .wysiwyg .breadcrumbs {
    margin-bottom: 45px;
  }

  .toc {
    position: absolute;
    right: 50px;
    width: 250px;
    padding: 10px;
    transition: all;
    top: 80px;
  }

  .toc-marker {
    position: absolute;
    top: 0;
    left: -5px;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .toc-marker path {
    transition: all 0.3s ease;
  }

  .toc ul {
    margin: 0;
    padding-left: 10px;
    list-style: none;
  }

  .toc ul li {
    margin: 12px 8px;
    font-family: "WorkSans", Helvetica, Arial, sans-serif !important;
    font-size: 17px;
    line-height: 28px;
    font-weight: 400;
  }

  .toc ul li a {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .toc ul li a:hover {
    text-decoration: underline;
  }

  .toc ul li.visible > a {
    color: #111;
    transform: translate(5px);
    font-weight: 600;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toc ul li a strong {
    font-family: "WorkSans", Helvetica, Arial, sans-serif !important;
    font-size: 17px;
    line-height: 28px;
    font-weight: 600;
  }
}

/* XL */
@media (min-width: 1500px) {
  .article .header .text-wrapper {
    grid-column: 2 / 7;
  }
}
