
/*  ----------------------------------------------------------------------------
    Smart list 1
*/
.td_smart_list_1 {
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 38px;

  .td-item {
    width: 100%;
  }
}

.td-number-and-title {
  text-align: center;
  width: 100%;
  padding: 8px 100px 4px 100px;
  margin-bottom: 23px;
  display: inline-block;

  @media (max-width: 500px) {
    padding: 60px 0 0 0;
    margin-bottom: 20px;
  }
}

.td-sml-current-item-title {
  display: inline-block;
  font-weight: 700;
  font-size: 22px;
  line-height: 26px;
  margin-top: 0;
  margin-bottom: 0;
}

.td-controls {
  position: absolute;
  top: 1px;
  z-index: 2;
  width: 100%;
}

.td-left-smart-list,
.td-right-smart-list {
  position: absolute;
  width: 88px;
  height: 40px;
  line-height: 40px;
  background-color: @td_black;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  text-align: center;
  .transition(background-color @td_transition_time);

  &:hover {
    text-decoration: none !important;
    background-color: @td_theme_color;
  }
}
// firefox fix
@-moz-document url-prefix() {
  .td-left-smart-list,
  .td-right-smart-list {
    line-height: 38px;
  }
}

.td-right-smart-list {
  right: 0;

  .td-icon-right {
    font-size: 16px;
    position: relative;
    top: 2px;
    padding-left: 11px;
  }
}

.td-left-smart-list {
  left: 0;

  .td-icon-left {
    font-size: 16px;
    position: relative;
    top: 2px;
    padding-right: 11px;
  }
}

.td-slide-smart-list-figure {

  img {
    display: inline-block;
    vertical-align: top;
  }
}

.td-sml-caption {
  font-family: @font2;
  font-style: italic;
  font-size: 11px;
  line-height: 17px;
  margin-top: 5px;
  margin-bottom: 21px;
}

.td-sml-description {
  margin-top: 22px;
  display: block;
}


/*  ----------------------------------------------------------------------------
    Smart list 2
*/
.td_smart_list_2 {
  margin-top: 38px;

  .td-number-and-title {
    text-align: left;
    padding: 0;
    margin-bottom: 21px;
    position: relative;
  }

  .td-sml-description {
    margin-top: 0;
  }

  h2 {
    margin: 2px 0 0;
    line-height: 32px;
  }

  .td-item {
    margin-bottom: 53px;
  }

  .td-sml-current-item-title {
    margin-top: 5px;
    width: 100%;
    padding-left: 56px;
  }
}

.td-sml-current-item-nr {
  position: absolute;
  top: 0;
  left: 0;
  font-weight: bold;
  font-size: 22px;
  line-height: 39px;
  color: #fff;
  background-color: @td_black;
  width: 37px;
  height: 37px;
  text-align: center;
  display: inline-block;
}



/*  ----------------------------------------------------------------------------
    Smart list 3
*/
.td_smart_list_3 {
  position: relative;
  overflow: hidden;
  z-index: 1;

  .td-sml-current-item-title {
    margin-top: 6px;
  }

  .td-number-and-title {
    padding: 0 200px 0 52px;
    text-align: left;
    display: block;

    h2 {
      margin: 0;
    }
  }

  .td-sml-current-item-nr {
    position: absolute;
    left: 0;
    top: 1px;
  }

  .td-left-smart-list {
    right: 98px;
    left: auto;
  }

  .td-item {
    width: 100%;
  }

  .td-sml-description {
    margin-top: 0;
  }

  .td-slide-smart-list-figure {
    float: right;
    margin-left: 20px;
    width: 300px;
  }

  /* responsive portrait tablet */
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    .td-number-and-title {
      padding-right: 106px;
    }

    .td-left-smart-list,
    .td-right-smart-list {
      width: 40px;
      font-size: 0;
    }

    .td-icon-right {
      top: 1px;
      left: 1px;
      line-height: 40px;
      padding-left: 0;
      font-size: 20px;
    }

    .td-left-smart-list {
      right: 50px;

      .td-icon-left {
        top: 1px;
        line-height: 40px;
        padding-right: 0;
        font-size: 20px;
      }
    }

    .td-slide-smart-list-figure {
      width: 45%;
    }
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {
    .td-controls {
      position: relative;
      height: 40px;
      margin-bottom: 25px;
    }

    .td-left-smart-list {
      left: 0;
    }

    .td-number-and-title {
      padding: 0;
      text-align: center;
      margin-bottom: 25px;
    }

    .td-sml-current-item-nr {
      position: relative;
      left: auto;
      margin-right: 15px;
      top: auto;
    }

    .td-slide-smart-list-figure {
      width: 100%;
      margin: 0 0 10px 0;
      text-align: center;
    }
  }
}

/*  ----------------------------------------------------------------------------
    Smart list 4
*/
.smart-list-style-4 {
  .td-post-content {
    float: left;
  }

  .td-post-sharing-top {
    margin-bottom: 0;
  }
}

.td_smart_list_4 {

  .td-item {
    min-height: 181px;
    border-bottom: 1px solid @td_grid_border_color;
    position: relative;
    float: left;
    padding: 30px 0;

    &:first-child {
      padding-top: 9px;

      .td-sml-current-item-nr {
        top: 9px;
      }
    }

    &:last-of-type {
      border-bottom: none;
    }
  }

  .td-sml-current-item-nr {
    font-size: 18px;
    width: 32px;
    height: 32px;
    line-height: 34px;
    top: 30px;
  }

  .td-sml-current-item-title {
    font-size: 18px;
    line-height: 24px;
    padding-left: 47px;
    padding-top: 5px;
    display: inherit;
  }

  h2 {
    line-height: 24px;
    margin-bottom: 9px;
    margin-top: 0;
  }

  .td-slide-smart-list-figure {
    float: right;
    margin-left: 20px;
    width: 150px;
  }

  .td-number-and-title {
    text-align: left;
    padding: 0;
    margin-bottom: 9px;
    display: inherit;
  }

  .td-sml-description {
    margin-top: 11px;
  }

  .td-sml-caption {
    line-height: 17px;
  }

  /* responsive portrait phone */
  @media (max-width: @responsive_p_phone_max) {

    .td-item {
      display: table;
      width: 100%;

      &:first-child {
        padding-top: 30px;

        .td-sml-current-item-nr {
          top: 0;
        }
      }
    }

    .td-slide-smart-list-figure {
      margin: 0;
      width: 100%;
      text-align: center;
    }

    .td-number-and-title {
      display: table-header-group;
      text-align: center;
    }

    .td-sml-current-item-nr {
      position: relative;
      top: 0;
    }

    .td-sml-current-item-title {
      padding: 10px 0;
    }
  }
}
// firefox fix
@-moz-document url-prefix() {
  .td_smart_list_4 .td-sml-current-item-nr {
    line-height: 32px;

  }
}


/*  ----------------------------------------------------------------------------
    Smart list 5
*/
.td_smart_list_5 {
  margin-top: 38px;

  .td-slide-smart-list-figure {
    position: relative;
  }

  .td-sml-current-item-nr {
    font-size: 26px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-family: @font3;
    background-color: rgba(0,0,0,.8);
    z-index: 1;
  }

  .td-sml-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: right;
    color: #fff;
    margin-bottom: 0;
    padding: 12px 16px;
    z-index: 1;
  }

  .td-number-and-title {
    text-align: left;
    padding: 0;
    margin-bottom: 21px;
    margin-top: 12px;
  }

  h2 {
    margin: 0;
  }

  .td-sml-description {
    margin-top: 0;
  }

  .td-item {
    margin-bottom: 53px;
  }

  figcaption div:before {
    bottom: 0;
    left: 0;
    content: "";
    display: block;
    height: 150%;
    width: 100%;
    position: absolute;
    z-index: -1;
    background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 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.9))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.9) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.9) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.9) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.9) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#b3000000',GradientType=0 ); /* IE6-9 */
  }

  figcaption div:empty {
    display: none;
  }
}


/*  ----------------------------------------------------------------------------
    Smart list 6
*/

.td_smart_list_6 {
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 38px;
}
