[data-gallery2018-clickable] {
  cursor: pointer;
}
@media (max-width: 767px) {
  .gallery-block-wrp {
    margin-left: -20px;
    margin-right: -20px;
  }
}
@media (min-width: 768px) {
  .gallery-block-wrp {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding-bottom: 20px;
  }
  .gallery-block-wrp .first-model-info {
    width: 280px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    -webkit-box-flex: 0;
        -ms-flex-positive: 0;
            flex-grow: 0;
    margin-left: 30px;
  }
}
.popup-gallery {
  position: relative;
}
@media (min-width: 768px) {
  .popup-gallery {
    width: calc(100% - 310px);
    -ms-flex-negative: 0;
        flex-shrink: 0;
    -webkit-box-flex: 0;
        -ms-flex-positive: 0;
            flex-grow: 0;
  }
}
.popup-gallery.full-width {
  width: 100%;
}
.popup-gallery.full-width .gallery-top {
  max-width: none;
}
.popup-gallery.full-width .gallery-top .swiper-slide img {
  max-height: none;
}
.popup-gallery .gallery-counter {
  position: absolute;
  top: 5px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10;
  padding: 3px;
}
.popup-gallery .gallery-counter p {
  padding: 0;
  margin: 0;
  line-height: normal;
  color: #ffffff;
  font-size: 13px;
}
.popup-gallery .gallery-close-btn {
  display: none;
}
.popup-gallery .gallery-top {
  width: 100%;
  max-width: 585px;
}
@media (min-width: 768px) {
  .popup-gallery .gallery-top {
    margin-bottom: 20px;
  }
}
.popup-gallery .gallery-top .swiper-slide img {
  max-width: 100%;
  max-height: 225px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}
@media (min-width: 768px) {
  .popup-gallery .gallery-top .swiper-slide img {
    max-height: 360px;
  }
}
@media (max-width: 767px) {
  .popup-gallery .gallery-top .swiper-button-white {
    background-size: 15px 44px;
  }
}
.popup-gallery .gallery-thumbs {
  height: 115px;
  width: 100%;
}
.popup-gallery .gallery-thumbs .swiper-container {
  height: 100%;
}
.popup-gallery .gallery-thumbs .swiper-slide {
  width: auto;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.popup-gallery .gallery-thumbs .swiper-slide img {
  max-height: 100%;
  display: block;
  cursor: pointer;
}
.popup-gallery:not(.active).ajax-loaded {
  display: none;
}
.popup-gallery:not(.active) .gallery-top .swiper-button-prev,
.popup-gallery:not(.active) .gallery-top .swiper-button-next {
  display: none;
}
.popup-gallery.active {
  position: fixed;
  z-index: 9000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}
.popup-gallery.active .gallery-counter {
  right: auto;
  left: 10px;
  top: 15px;
}
.popup-gallery.active .gallery-close-btn {
  display: block;
  position: absolute;
  z-index: 30;
  top: 10px;
  right: 10px;
  height: 30px;
  width: 30px;
  cursor: pointer;
}
.popup-gallery.active .gallery-close-btn span {
  display: block;
  width: 100%;
  position: absolute;
  top: 50%;
  height: 2px;
  background-color: #ffffff;
}
.popup-gallery.active .gallery-close-btn span:first-child {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.popup-gallery.active .gallery-close-btn span:last-child {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.popup-gallery.active .gallery-top {
  height: 90%;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .popup-gallery.active .gallery-top {
    height: 100%;
  }
}
.popup-gallery.active .gallery-top .swiper-wrapper {
  height: 100% !important;
}
.popup-gallery.active .gallery-top .swiper-slide {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 100%;
}
.popup-gallery.active .gallery-top .swiper-slide img {
  max-height: 100%;
  display: block;
  cursor: pointer;
}
.popup-gallery.active .gallery-thumbs {
  background-color: #000000;
  height: 10%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 1rem;
}
.popup-gallery.active .gallery-thumbs .swiper-button-next,
.popup-gallery.active .gallery-thumbs .swiper-button-prev {
  display: none;
}
.popup-gallery.active .gallery-thumbs .swiper-slide {
  border: solid 2px #000000;
}
.popup-gallery.active .gallery-thumbs .swiper-slide.swiper-slide-thumb-active {
  border-color: #C60000;
}
.popup-gallery.active .gallery-thumbs .swiper-slide:hover:not(.swiper-slide-thumb-active) {
  border-color: #ffffff;
}

/*# sourceMappingURL=gallery_2018.css.map */
