.img-link {
  a {
    position: relative;
    display: block;
    overflow: hidden;

    .icon-checkmark {
      display: none;
    }

    &:before {
      background: rgba(0,0,0,.5);
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      position: absolute;
      content: " ";
      display: block;
      opacity: 0;
      transition: all 0.3s;
    }

    &:hover {
      &:before {
        opacity: 1;
      }
    }

    &.border {
      border: 1px solid $gray-darker;
    }

    &.checked,
    &.disabled {
      background: $gray-darker;
      cursor: not-allowed;

      img {
        opacity: .2;
      }
      .img-link-text {
        opacity: .5;
      }

      .triangle {
        opacity: .5;
      }

      &.border {
        border: 1px solid black;
      }

      &:hover {
        &:before {
          opacity: 0;
        }
      }
    }

    &.checked {
      background-color: darken($brand-success, 10%);

      .icon-checkmark {
        display: block;
      }
    }

    .img-link-text {
      //left: 25px;
      bottom: 10px;
      position: absolute;
      color: #fff;
      width: 100%;
      padding: 0 2%;
      line-height: 1;
      z-index: 2;
    }
  }
}

.gradiant-text-background {
  z-index: 1;

  &:after {
    content: "";
    position: absolute;
    top: 60%;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.75) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#70000000',GradientType=0 ); /* IE6-9 */

    @media only screen and (max-width:  $screen-sm-min){
      top: 30%;
    }
  }
}

.triangle{
  border-bottom: 35px solid rgba($gray-darker, .8);
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  //float:left;
  margin-right: -23px;
  top: -6px;
  transform: rotate(45deg);
  right: 0;
  position: absolute;
  line-height: 40px;
  z-index: 3;

  span {
    color:#fff;
    font-size: 65%;
    position:absolute;
    line-height: 1.2;
    position: absolute;
    margin-left: -18px;
    top: 13px;
    transform: rotate(-45deg);
    text-align: right;
    text-transform: uppercase;
    width: 30px;
  }
}
