/*  ----------------------------------------------------------------------------
    less for gallery slider
*/

.td-gallery-slide-top {
  position: relative;
  width: 100%;
  background-color: #2d2d2d;
  min-height: 44px;
  vertical-align: top;
}


.td-gallery-title {
  display: inline-block;
  color: #ffffff;
  font-family: @font1;
  font-style: italic;
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
  padding: 13px 20px 13px 20px;
  position: relative;

  @media (max-width: @responsive_p_phone_max) {
    font-size: 12px;
    padding: 13px 0px 13px 0px;
    text-align: center;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: table;
  }
}


/* controls wrapper */
.td-gallery-controls-wrapper{
  display: inline-block;
  height: 33px;
  margin: auto !important;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;

  @media (max-width: @responsive_p_phone_max) {
    display: none;
  }
}

.td-gallery-slide-count {
  display: inline-block;
  width: 73px;
  margin-right: 7px;
  text-align: right;
  color: #ffffff;
  font-family: @font1;
  font-style: italic;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
  position: relative;
  top: -8px;
}

.td-gallery-slide-prev-next-but {
  display: inline-block;
  margin-right: 12px;
  position: relative;

  .td-icon-left,
  .td-icon-right {
    font-size: 30px;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding: 1px 8px;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}



.td-doubleSlider-1 {
  width: auto;
  background-color: #222222;

  .td-slider {
    height: 100%;
    position: relative;
    margin-left: auto;
    margin-right: auto;

    .item {
      max-height: 580px;
      left: 0;
      height: auto;
      margin: 0;
    }

    .td-slide-galery-figure {
      margin: 0;
      text-align: center;
      position: relative;
      width: 980px;
      height: 580px;
    }
  }

  .td-slide-item img{
    max-width: none !important;
  }


  .td-slide-item {

    @media (max-width: @responsive_p_phone_max) {
      width: 100%;
    }

    .td-slide-galery-figure img {
      overflow: auto;
      margin: auto;
      position: absolute;
      left: -50%;
      right: -50%;
      top: -50%;
      bottom: -50%;
    }

    .td-slide-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      text-align: left;
      background-color: rgba(0, 0, 0, 0.6);

      span {
        font-family: @font2;
        font-style: normal;
        line-height: 18px;
        font-size: 11px;
        color: #ffffff;
        position: relative;
        top: 0;
        left: 0;
        z-index: 1;

        @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
          font-size: 10px;
        }
      }

      /* if caption or description text is present */
      &.td-gallery-slide-content {
        width: 100%;

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


        span {
          padding: 7px 6px 7px 17px;
          display: inline-block;

          @media screen and (-webkit-min-device-pixel-ratio:0) {
            padding: 6px 6px 8px 17px;
          }

          @media (max-width: @responsive_p_phone_max) {
            font-size: 10px;
            line-height: 12px;
            padding: 5px 6px 7px 10px;
          }
        }
      }
    }


    .td-gallery-slide-copywrite {
      position: absolute;
      top: -20px;
      right: 0px;
      padding: 1px 6px 2px 6px;
      text-align: left;
      color: #ffffff;
      font-family: @font2;
      font-style: italic;
      line-height: 17px;
      font-size: 10px;
      background-color: rgba(0, 0, 0, 0.8);

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

}

.td-slide-on-2-columns {
  .td-gallery-title {
    width: 73%;

    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      width: 64%;
      font-size: 12px;
    }

    @media (max-width: @responsive_p_phone_max) {
      width: 100%;
      font-size: 11px;
    }
  }

  .td-doubleSlider-1 {
    height: 420px;

    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      height: 308px !important;
    }

    @media (max-width: @responsive_p_phone_max) {
      height: 178px !important;
    }

    .td-slide-galery-figure {
      width: 640px !important;
      height: 420px;

      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 469px !important;
        height: 308px;

        img {
          width: auto;
          height: 308px;
        }
      }

      @media (max-width: @responsive_p_phone_max) {
        width: 100% !important;
        height: 178px !important;
        line-height: 12px;


        img {
          width: auto;
          height: 178px;
        }
      }
    }
  }

  .td-button {
    margin: 0px 5px 0px 5px;
  }
}
.td-slide-on-3-columns {
  .td-gallery-title {
    width: 80%;

    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      width: 76%;
      font-size: 12px;
    }

    @media (max-width: @responsive_p_phone_max) {
      width: 100%;
      font-size: 11px;
    }
  }

  .td-doubleSlider-1 {
    height: 580px !important;

    @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
      height: 427px !important;
    }

    @media (max-width: @responsive_p_phone_max) {
      height: 178px !important;
    }


    .td-slide-galery-figure {
      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 721px !important;
        height: 427px !important;

        img {
          width: auto;
          height: 427px;
        }
      }

      @media (max-width: @responsive_p_phone_max) {
        max-width: 100% !important;
        height: 178px !important;
        line-height: 12px;


        img {
          width: auto;
          height: 178px;
        }
      }
    }
  }

  .td-button {
    margin: 0px 4.2px 0px 4.3px;
  }
}
//end td-doubleSlider-1


.td-doubleSlider-2 {
  padding: 20px 0px 10px 0px;
  height: 80px !important;
  background-color: #222222;
  width: 100%;

  @media (max-width: @responsive_p_phone_max) {
    display: none;
  }

  .td-slider {
    width: 100%;
    height: 100%;
    overflow-wrap: normal;
  }

  .td-button {
    position: relative;
    top:-10px;
    display: inline-block;
    //margin: 0px 5px 0px 5px;
    width: 80px !important;
    height: 60px;
  }

  .td-button .td-border {
    border: 3px solid #ffffff;
    opacity: 0.5;
    height: 60px;
    width: 80px;
  }

  /* if there are not sufficient sliders to fill the td-doubleSlider-2, then move -how many sliders do we have- in the center of td-doubleSlider-2 */
  &.td_center_slide2{
    text-align: center;
    padding: 25px 0px 10px 0px;

    .td-slider {
      display: inline-block;
    }

    .td-button {
      position: relative;
      top:-15px;
      margin: 0px 2px 0px 3px;
      background-size: cover !important;

      @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
        width: 56px !important;

        .td-border {
          width: 56px;
        }
      }
    }
  }

}//end td-doubleSlider-2



/*  ----------------------------------------------------------------------------
    less for gallery slider magnificPopup
*/

.td-magnific-popup-slide-gallery {

  img {
    display: block;
  }

  margin: 0px auto;
  max-width: 1000px;
  max-height: 100%;
  text-align: left;
  vertical-align: top;
  position: relative;

  .td-magnific-popup-slide-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: left;
    background: #000000;
    opacity: 0.6;
    display: block;
    width: 100%;
  }


  span {
    display: block;
    font-family: @font2;
    font-style: normal;
    line-height: 18px;
    font-size: 11px;
    color: #ffffff;
    width: 100%;
    text-align: left;
    padding: 5px 7px 6px 7px;
  }


  .td-magnific-popup-slide-gallery-copywrite{
    position: absolute;
    top: -27px;
    right: 3px;
    padding: 5px 7px 6px 7px;
    text-align: left;
    color: #ffffff;
    font-family: @font2;
    font-style: italic;
    line-height: 17px;
    font-size: 10px;
  }


  .mfp-close {
    color: #ffffff;
  }
}

.mfp-title {
  @media (min-width: @responsive_p_tablet_min) and (max-width: @responsive_p_tablet_max) {
    font-size: 10px;
  }
}

.post_td_gallery {
  margin-bottom: 16px;
}