.products-related {
  width: 100%;
  text-align: center;
  background-color: var(--color-white);

  .swiper-container {
    max-width: 73.125rem;
    display: flex;
    /* height: 100%; */
    margin: 0 auto;
    position: relative;
    transition-property: transform;
    z-index: 1;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 16px;
  }

  .glide-3-columns {
    width: 100%;

    .glide__track {
      overflow: hidden;
      /* padding: 0 24px; */

      .glide__slides {
        display: flex;
        flex-direction: row;
        padding: 40px 0 42px;

        .cmp-image-list__item {
          -webkit-box-orient: vertical;
          -webkit-box-direction: normal;
          background-color: var(--color-white);
          border-radius: 4px;
          color: var(--color-gray-darker3);
          display: flex;
          -ms-flex-direction: column;
          flex-direction: column;
          flex-shrink: 1;
          overflow: hidden;
          width: 100%;
          box-shadow: 0 5px 35px 0 rgba(27, 19, 19, 0.1);
          height: auto;

          .card {
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -ms-flex-direction: column;
            flex-direction: column;
            height: 100%;
            padding: 0;

            .container-img {
              width: 100%;
              padding: 0;

              .cmp-image__image {
                width: 100%;
                object-fit: cover;
                background-size: cover;
                background-position: center;
                height: fit-content;
              }
            }

            .cmp-image-list__item-content {
              -ms-flex-align: start;
              align-items: flex-start;
              display: -ms-flexbox;
              display: flex;
              -ms-flex-direction: column;
              flex-direction: column;
              padding: 30px 24px;
              text-align: left;
              flex-grow: 1;
              display: flex;
              flex-direction: column;
              gap: 0;

              .h_title {
                margin-bottom: 26px;
                margin-top: 0px;

                .alert-heading {
                  text-align: left;
                  font-size: 1.5rem;
                  font-weight: 300;
                  letter-spacing: 0;
                  line-height: 32px;
                }

                &::after {
                  background-color: var(--color-gray-light);
                  content: " ";
                  display: block;
                  height: 1px;
                  margin-top: 5px;
                  width: 165px;
                  border: 0 solid var(--color-white);
                }
              }

              .text {
                flex: 1;
                margin-bottom: 26px;
              }

              .subtext {
                font-size: 1rem;
                font-weight: 300;
                letter-spacing: 0;
                line-height: 24px;
                padding-left: 0;
                font-family: "Roboto", sans-serif;
                text-align: left;
                margin: 0 0 26px 0;

                @media screen and (max-width: 984px) {
                  box-shadow: unset;
                }
              }

              .products-related-cta {
                margin-top: auto;
                display: flex;
                align-items: center;

                .button {
                  margin: 0;
                }

                .btn-transparent {
                  color: var(--color-red);
                  padding: 0;
                }

                .btn-transparent-link,
                .btn-transparent {
                  color: var(--color-red);
                  padding: 0;

                  a {
                    padding: 0;
                  }
                }

                .icon-arrow-right::after {
                  font-style: normal !important;
                  font-variant: normal;
                  font-weight: 400 !important;
                  line-height: 1;
                  text-transform: none;
                  font-size: 2rem;
                }
              }
            }
          }
        }
      }
    }

    .glide-initialized {
      .glide-track {
        overflow: hidden;
      }

      .glide_slide {
        flex: 0 0 auto;
        margin-right: 60px !important;
      }

      .cmp-image-list__item {
        width: 330px !important;
      }

      @media (max-width: 767px) {
        .glide__slide {
          margin-right: 40px !important;
        }

        .cmp-image-list__item {
          width: 272px !important;
        }
      }
    }

    .glide__arrows {
      text-align: center;
      transform: translateZ(0);
      transition: opacity 0.3s;
      z-index: 10;
      font-size: 0;
      /* overflow: hidden; */
      width: 100%;

      top: 50%;
      left: 0;
      right: 0;
      width: 100%;
      /* height: 100%; */
      position: absolute;
      overflow: visible;
      cursor: pointer;

      .glide__arrow--left {
        background: var(--color-white);
        border-radius: 50%;
        -webkit-box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
        color: var(--color-red);
        height: 40px;
        margin: 0;
        /* opacity: 100%; */
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        width: 40px;
        left: -60px;
        display: none;
        right: auto;
      }

      .glide__arrow--right {
        background: var(--color-white);
        border-radius: 50%;
        -webkit-box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
        color: var(--color-red);
        height: 40px;
        margin: 0;
        /* opacity: 100%; */
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        width: 40px;
        left: auto;
        display: none;
        right: -60px;
      }
    }

    .glide__bullets {
      bottom: 16px;

      .glide__bullet {
        background-color: var(--color-gray-darker2);

        &.glide__bullet--active {
          background-color: var(--color-red);
        }
      }
    }
  }

  &.product-related-blogs {
    .h_title {
      .alert-heading {
        font-size: 3.75rem;
      }
    }

    .swiper-container {
      display: block;

      .glide-3-columns {
        width: auto;

        .glide__track {
          overflow: visible;

          .glide__slides {
            display: grid;
            gap: 24px;
            grid-template-columns: repeat(2, 1fr);
            width: 100% !important;

            .cmp-image-list__item {
              width: 100% !important;

              .card {
                .container-img {
                  img {
                    height: 100%;
                    -o-object-fit: cover;
                    object-fit: cover;
                    width: 100%;
                  }
                }

                .cmp-image-list__item-content {
                  border-top: 0.0625rem solid #ddd;
                  gap: 7px;
                  height: auto;
                  padding: 24px;

                  .h_title {
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    display: -webkit-box;
                    text-overflow: ellipsis;
                    margin-top: 4.375rem;
                    margin-bottom: 0;

                    .alert-heading {
                      font-size: 3.75rem;
                      text-wrap: balance;
                      line-height: 60px;
                      text-align: center;
                    }

                    &::after {
                      background-color: #ccc;
                      height: 1px;
                      margin: 32px 0;
                      width: 65%;
                    }
                  }

                  .text {
                    flex: 1;
                  }

                  .products-related-cta {
                    width: 100%;
                    justify-content: center;
                  }
                }
              }
            }
          }
        }
      }
    }
  }

  &.red-background {
    .glide__bullets {
      .glide__bullet {
        background-color: rgba(255, 255, 255, .5);

        &.glide__bullet--active {
          background-color: var(--color-white);
        }
      }
    }
  }
}

@media (max-width: 1023px) {
  .products-related {
    .swiper-container {
      padding-bottom: 0;
    }

    .glide-3-columns {
      .glide__track {
        padding: 0;
      }

      .glide__slides {
        gap: 12px;
      }

      .container-img {
        .cmp-image__image {
          height: 100%;
        }
      }

      .glide__arrows {
        display: none;
      }
    }
  }
}

@media (min-width: 1023px) {
  .products-related {
    .glide-3-columns {
      .glide__slides {
        gap: 24px;
      }
    }
  }
}

@media (max-width: 768px) {
  .products-related {
    .glide-3-columns {
      .glide__slides {
        gap: 12px;

        .glide__slide {
          margin: 0;
        }
      }
    }

    &.product-related-blogs {
      .swiper-container {
        .glide-3-columns {
          .glide__track {
            .glide__slides {
              grid-template-columns: repeat(1, 1fr);
            }
          }
        }
      }
    }
  }
}

@media screen and (max-width: 985px) {
  .is-glide-slider {
    .glide__slides {
      gap: unset;

      .glide__slide {
        margin: auto 1rem !important;

        .cmp-image__image {
          height: unset;
        }
      }
    }
  }
}