/* HP persona teasers */
.view-persona-teasers {
  .view-content {
    overflow: hidden;
  }
  .row {
    display: flex;
    flex-wrap: wrap;
  }
  .col-lg-4 {
    display: flex;
    flex-direction: column;
    padding: 0;
    float: none;
    min-height: 297px;
    flex-basis: 33.33333333%;
    &:last-child {
      .cta--buttons-wrap {
        position: relative;
        &:before {
          z-index: -2;
          content: ' ';
          position: absolute;
          left: 0;
          top: 0;
          right: 0;
          bottom: 0;
          background-image: url(../../images/persona_teasers_cta_block.jpg);
          background-size: cover;
          background-position: center center;
          background-repeat: repeat;
        }
        > div {
          position: relative;
          &:first-child {
            justify-content: center;
          }
          &:last-child {
            margin-right: 17%;
          }
        }
      }
    }
  }
  section.node--type-persona {
    display: flex;
    flex: 1;
  }
  .node--type-persona.node--view-mode-teaser .node__content {
    position: relative;
    display: flex;
    flex: 1;
  }
  .node--type-persona.node--view-mode-teaser a {
    display: flex;
    flex: 1;
    color: var(--primary_color_1);
    &:hover img {
      opacity: 0.4;
    }
  }
  .field.field--name-field-photo-teaser.field--type-image.field--label-hidden.field__item {
    display: flex;
    flex: 1;
    overflow: hidden;
  }
  img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: cover;
    transition: opacity 0.35s;
  }
  .text-bubble {
    background-color: white;
    border-radius: 5px;
    padding: 0.625rem;
    font-size: 1.625rem;
    line-height: 1.875rem;
    position: relative;
    &:after {
      top: 100%;
      left: 30%;
      border: solid transparent;
      content: ' ';
      height: 0;
      width: 0;
      position: absolute;
      pointer-events: none;
      border-color: rgba(255, 255, 255, 0);
      border-top-color: white;
      border-width: 11px;
      margin-left: -11px;
    }
  }
  .field--name-field-product {
    color: white;
    font-family: 'niveau-grotesk', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 0.938rem;
    margin-left: calc(30% - 12px);
    margin-top: 0.625rem;
    &:before {
      content: '';
      background: url(../../images/icon--hyposmart.png);
      background-position: 0px -25px;
      width: 24px;
      height: 25px;
      display: inline-block;
      margin-right: 5px;
    }
  }
  .cta--buttons-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-around;
    align-content: flex-end;
    div {
      flex: 1 1 50%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: flex-end;
      margin-right: 5%;
      &:first-child {
        margin-right: 0;
      }
    }
    .button {
      margin-left: 0;
      margin-right: 0;
      width: 80%;
      margin-bottom: 1.25rem;
      font-size: 1.438rem;
    }
  }
}
@media (max-width: 991px) {
  .view-persona-teasers {
    .flexthis.container {
      width: 100%;
    }
    .col-lg-4 {
      flex-basis: 50%;
    }
  }
}
@media (max-width: 767px) {
  .view-persona-teasers {
    .col-lg-4 {
      flex-basis: 100%;
    }
  }
}
