
/* --------------- BASIC SECONDARY RELATED PAGES --------------- */

body:not(.page-article) .block-views-blockrelated-content-related .field-content article {
  position: relative;
  border: 1px solid var(--border_gray);
  padding: 20px 1rem  ;
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content article:not(:first-child) {
  margin-left: 15px;
  margin-right: 15px;
  border: 0;
  border-bottom: 1px solid var(--border_gray);
}

body:not(.page-article):not(.highlight-first-related) .block-views-blockrelated-content-related .field-content article{
  margin-left: 15px;
  margin-right: 15px;
  border: 0;
  border-bottom: 1px solid var(--border_gray);
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content article:last-child {
  border: 0;
  border-bottom:0px;
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content article img {
  width: 100%;
  display: none;
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content .footer-related-content {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-top: .5em;
  display: none;
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content .footer-related-content a {
  font-size: 0;
  width: 20px;
  height: 20px;
  background-image: url(../../assets/icons/icon_arrow_right.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content article .title {
  margin-bottom: 0;
  margin-top: 0;

  background-image: url(../../assets/icons/icon_arrow_right.svg);
  background-position: center right;
  background-repeat: no-repeat;
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content article .title * {
  color: var(--text_color);
  font-weight: 500;
  font-size: 16px;
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content article .body {
  display: none;
}

body:not(.page-article) .block-views-blockrelated-content-related .field-content article .summary,
body:not(.page-article) .block-views-blockrelated-content-related .field-content article .summary p,
body:not(.page-article) .block-views-blockrelated-content-related .field-content article .body p {
  margin-top: .5em;
  line-height: 1.5em;
  font-size: 16px;
  font-weight: 300;
}


body:not(.page-article) .block-views-blockrelated-content-related .field-content article .summary {
  display: none;
}

@media (min-width: 992px) {
  body:not(.page-article) .block-views-blockrelated-content-related .field-content article {
    padding: 2rem;

  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .title * {
    font-size: 1.2rem;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .summary {
    display: block;
    font-size: 14px;
  }
}


@media (min-width: 1024px) {

  body:not(.page-article):not(.highlight-first-related) .block-views-blockrelated-content-related .field-content article,
  body:not(.page-article) .block-views-blockrelated-content-related .field-content article:not(:first-child) {
    max-width: 48%;
    border: 1px solid var(--border_gray);
    margin: 2.5rem 0 0 0;
    display: inline-flex;
    width: 48%;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article {
    position: relative;
    min-height: 200px;
    padding: 10px 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .tile-content {
    justify-content: center;
  }


  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .image {
    height: 180px;
    width: 180px;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .image * {
    width: 100%;
    height: 100%;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .image img {
    display: block;
    object-fit: cover;
    object-position: top left;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .tile-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 20px;
    height: 100%;
  }

  body.highlight-first-related:not(.page-article) .block-views-blockrelated-content-related .field-content article:first-child .summary div {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7rem;
  }

  /* content if there is an image */
  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .image + .tile-content {
    width: calc(100% - 211px);
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article:not(:first-child) .image + .tile-content:after {
    content: url(../../assets/icons/icon_arrow_right.svg);
    height: 18px;
    /* right: 60px; */
    right: 1.5rem;
    position: absolute;
    bottom: 1rem;
    transform: scale(1.4);
  }

  /* content if there's no image */
  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .tile-content:first-child {
    width: 100%;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .title {
    margin-top: 1rem;
    display: block;
    background-image:none;
  }

}

@media (min-width: 1200px) {

  body:not(.page-article):not(.highlight-first-related) .block-views-blockrelated-content-related .field-content article,
  body:not(.page-article) .block-views-blockrelated-content-related .field-content article:not(:first-child) {
    width: 600px;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .summary {
    font-size: 17px;
    font-weight: 100;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .title {
    margin-top: 0;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .title * {
    font-size: 1.5rem;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content article {
    padding: 10px 40px 10px 10px;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content .tile-content:first-child {
    padding-left: 50px;
  }

  body:not(.page-article) .block-views-blockrelated-content-related .field-content .image + .tile-content:first-child {
    padding-left: 0px;
  }
}


@media (min-width: 1400px) {
  body:not(.page-article) .block-views-blockrelated-content-related .field-content article .summary {
    font-size: 18px;
  }
}
