.line-of-images {
  &.logos {
    .line-wrap {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -ms-flex-wrap: wrap;
      flex-wrap: wrap;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      -webkit-box-pack: justify;
      -ms-flex-pack: justify;
      justify-content: space-between;
      position: relative;
      width: 100%;
      padding: 34px 0;
    }

    &.logos2 {
      .line-wrap {
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
      }
    }
    a {
      max-width: 19%;
      padding: 25px 0;
      display: inline-block;
    }
    img {
      max-width: -webkit-calc(100% - 25px);
      max-width: -moz-calc(100% - 25px);
      max-width: calc(100% - 25px);
    }
  }
  &.logos2 .line-wrap {
    padding: 0;
  }
  &.logos2 a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: -webkit-calc(25% - 1px);
    width: -moz-calc(25% - 1px);
    width: calc(25% - 1px);
    img {
      position: static;
      max-width: 100%;
      -webkit-transform: translateY(0);
      -moz-transform: translateY(0);
      -ms-transform: translateY(0);
      -o-transform: translateY(0);
      transform: translateY(0);
      opacity: .4;
      transition: all 350ms ease;
    }
    max-width: 100%;
    position: relative;
    padding: 80px 75px;
    min-height: 170px;
    -webkit-box-shadow:
        1px 0 0 0 rgba(255, 255, 255, .1),
        0 1px 0 0 rgba(255, 255, 255, .1),
        1px 1px 0 0 rgba(255, 255, 255, .1),
        1px 0 0 0 rgba(255, 255, 255, .1) inset,
        0 1px 0 0 rgba(255, 255, 255, .1) inset;
    box-shadow:
      1px 0 0 0 rgba(255, 255, 255, .1),
      0 1px 0 0 rgba(255, 255, 255, .1),
      1px 1px 0 0 rgba(255, 255, 255, .1),
      1px 0 0 0 rgba(255, 255, 255, .1) inset,
      0 1px 0 0 rgba(255, 255, 255, .1) inset;
    &::before {
      content: '';
      position: absolute;
      height: 100%;
      width: calc(100% - 30px);
      left: 15px;
      top: 0;
      z-index: -1;
    }
    &:hover img{
      opacity: 1;
    }
  }
  &.images {
    .line-wrap {
      display: table;
      width: 100%;
    }
    .image-line-wrap {
      display: table-cell;
      height: 268px;
      background-position: center;
      background-size: cover;
      -webkit-transition: opacity 350ms ease;
      transition: opacity 350ms ease;
      &:hover {
        opacity: 0.8;
      }
    }
  }
}
@media only screen and (max-width: 991px) {
  .line-of-images.images .image-line-wrap {
    height: 200px;
  }
  .line-of-images.logos2 a {
    margin-top: 0;
    padding: 35px 30px;
  }
}

@media only screen and (max-width: 768px) {
  .line-of-images.logos a {
    width: 49%;
    max-width: 49%;
  }
  .line-of-images.logos .line-wrap {
    text-align: center;
    text-align-last: center;
    padding: 35px 0;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  .line-of-images.images .image-line-wrap {
    height: 150px;
  }
}

@media only screen and (max-width: 767px) {
  .line-of-images.logos2 .line-wrap {
    padding: 0;
  }

  .line-of-images.logos2 .line-wrap a {
    min-height: 150px;
  }
}

@media only screen and (max-width: 600px) {
  .line-of-images.images .image-line-wrap {
    height: 100px;
  }
}

@media only screen and (max-width: 400px) {
  .line-of-images.logos a {
    width: 100%;
    max-width: 100%;

    &:not(:last-of-type){
      margin-bottom: 15px;
    }
  }
}
