/*  ----------------------------------------------------------------------------
    Module mx1
*/
.td_module_mx1 {
  position: relative;

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    border-bottom: 3px solid #fff;
  }

  .clearfix();

  .meta-info .td-post-category {
    background-color: #fff;
    color: #222;
    vertical-align: top;
  }

  .meta-info {
    position: absolute;
    bottom: 0;
    color: #fff;
    padding: 0 20px;
    z-index: 1;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      padding: 0 17px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      padding: 0 10px;
    }

    .td-post-author-name a {
      color: #fff;
    }

    a {
      color: #fff;
    }
  }

  .entry-title {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 21px;
    margin-bottom: 0;
    bottom: 9px;
    margin-top: 0;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      font-size: 15px !important;
      line-height: 19px !important;
      bottom: 7px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      font-size: 17px !important;
      line-height: 21px !important;
      bottom: 7px;
    }

    a {
      color: #fff !important;
    }
  }

  .entry-review-stars {
    height: 15px;
    position: relative;
    top: -1px;
    margin-bottom: 2px;

    i {
      line-height: 10px;
    }
  }

  &.td_module_wrap {
    z-index: auto;
  }

  &:hover .meta-info .entry-title a {
    color: #fff;
  }

  .td-module-thumb {
    width: 341px;
    height: 220px;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 0;


    a:last-child:before {
      bottom: 0;
      content: "";
      display: block;
      height: 80%;
      width: 100%;
      position: absolute;
      z-index: 1;
      background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%); /* FF3.6+ */
      background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.7))); /* Chrome,Safari4+ */
      background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.7) 100%); /* Chrome10+,Safari5.1+ */
      background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.7) 100%); /* Opera 11.10+ */
      background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.7) 100%); /* IE10+ */
      background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.7) 100%); /* W3C */
      filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#b3000000',GradientType=0 ); /* IE6-9 */
    }

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      width: 253px;
      height: 163px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      width: 100%;
      height: auto;
    }

    .entry-thumb {
      width: 100%;
    }
  }

  .td-block14-border {
    background-color: #fff;
    display: block;
    height: 220px;
    right: -2px;
    position: absolute;
    width: 3px;
    z-index: 2;

    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      height: 163px;
    }

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      display: none;
    }
  }

  // fix the image space on load
  .entry-thumb {
    /* responsive desktop */
    @media (min-width: 1024px) {
      min-height: 220px;
    }
    /* responsive portrait tablet */
    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      min-height: 163px;
    }
  }
}

// 1 columns
.td_block_14 {
  .td-block-span12 {
    .td_module_mx1 {
      margin-bottom: 3px;

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        margin-bottom: 0;
      }

      .td-module-thumb {
        margin-bottom: 0;
      }
    }

    .td-block14-border {
      display: none;
    }
  }
}

.wpb_row .td-pb-span4:last-child,
.td-column-3 .td-block-span4:last-child {
  .td_module_mx1 {
    .td-module-thumb {
      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 252px;
      }
    }
  }
}

// 2 columns
.td_block_14 {
  .td-block-span6 {
    .td-module-thumb {
      margin-bottom: 0;
    }
  }

  .td-block-row {
    border-bottom: 3px solid #fff;

    /* responsive portrait phone */
    @media (max-width: @responsive_p_phone_max) {
      border-bottom: 0;
    }

    &:last-child {
      border-bottom: 0;
    }
  }

  //fix the gradient on last post
  .td-block-span6:last-child {
    .td-image-gradient:before {
      width: 341px;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 253px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
      }
    }

    //fix border
    .td-block14-border {
      display: none;
    }
  }
}


// 3 columns
.td_block_14 {
  .td-block-span4 {
    .td-module-thumb {
      margin-bottom: 0;
    }
  }

  //fix the gradient on last post
  .td-block-span4:last-child {
    .td-image-gradient:before {
      width: 341px;

      /* responsive portrait tablet */
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 253px;
      }

      /* responsive portrait phone */
      @media (max-width: @responsive_p_phone_max) {
        width: 100%;
      }
    }

    //fix border
    .td-block14-border {
      display: none;
    }
  }
}