@charset "UTF-8";

//
// @copyright        2017 damicms.com - All Rights Reserved
// @link             http://www.guangdawangluo.com
// @author           Pu shuo <pushuo@damicms.com>
// @created          2017-11-24 11:51:00
// @modified         2017-12-05 10:34:57
//

.swiper-viewport {
  margin: 0 0 30px;
  z-index: 1;
  position: relative;
  overflow: visible;

  @media (max-width: 768px) {
    margin: 0 0 15px;
  }

  &:hover {
    .swiper-button-prev {
      opacity: 0.7 !important;
      left: 10px !important;
    }

    .swiper-button-next {
      opacity: 0.7 !important;
      right: 10px !important;
    }
  }

  .swiper-container {
    direction: ltr !important;
  }

  .swiper-pager {
    width: 100%;
    position: absolute;
    top: 50%;
    line-height: 45px;

    .swiper-button-prev, .swiper-button-next {
      width: 50px;
      height: 50px;
      text-align: center;
      line-height: 46px;
      border-radius: 50%;
      background: #fff;
      color: #222;
      border: 2px solid #ddd;
      z-index: 2 !important;
      background-image: none !important;
      @include transition(all .3s ease-in-out);

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

      &:hover {
        color: #fff;
        border-color: $brand-primary;
        background: $brand-primary;
        opacity: 1 !important;
      }
      &:before {
        content: "";
        font-family: FontAwesome;
        font-size: 12px;
      }
    }

    .swiper-button-prev {
      left: 10px;

      &:before {
        content: "\f053";
      }

      @media (min-width: 768px) {
        opacity: 0;
        left: -20px;
      }
    }

    .swiper-button-next {
      right: 10px;

      &:before {
        content: "\f054";
      }

      @media (min-width: 768px) {
        opacity: 0;
        right: -20px;
      }
    }
  }

  .swiper-pagination {
    bottom: 0;
    width: 100%;

    .swiper-pagination-bullet {
      margin: 0 4px;

      &:hover {
        background: #333;
      }
    }
    .swiper-pagination-bullet-active {
      background: $brand-primary;
    }
  }

  .swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
  }
}
