/*
* Colors
*/
/*
* Media
*/
@media (max-width: 767px) {
  .gallery-block-wrp {
    margin-left: -20px;
    margin-right: -20px;
  }
}
@media print, (min-width: 768px) {
  .gallery-block-wrp {
    display: flex;
    padding-bottom: 20px;
  }
  .gallery-block-wrp .first-model-info {
    width: 280px;
    flex-shrink: 0;
    flex-grow: 0;
    margin-left: 30px;
  }
}
.popup-gallery {
  position: relative;
}
.popup-gallery .gallery-counter {
  position: absolute;
  top: 5px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10;
  padding: 3px;
  font-family: Verdana, sans-serif;
}
.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:not(.base-gallery__slider) {
  width: 100%;
  max-width: 585px;
  height: 300px;
}
@media print, (min-width: 768px) {
  .popup-gallery .gallery-top:not(.base-gallery__slider) {
    margin-bottom: 5px;
  }
}
.popup-gallery .gallery-top:not(.base-gallery__slider).slider-material {
  height: auto;
  max-height: 500px;
}
.popup-gallery .gallery-top:not(.base-gallery__slider) .swiper-slide img {
  cursor: pointer;
  background-color: #ffffff;
}
@media (max-width: 767px) {
  .popup-gallery .gallery-top:not(.base-gallery__slider) .swiper-button-white {
    background-size: 15px 44px;
  }
}
.popup-gallery .gallery-thumbs {
  height: 50px;
  width: 100%;
}
.popup-gallery .gallery-thumbs .swiper-container {
  height: 100%;
}
.popup-gallery .gallery-thumbs .swiper-slide {
  width: 67px;
  box-sizing: border-box;
  overflow: hidden;
}
.popup-gallery .gallery-thumbs .swiper-slide img {
  height: 100%;
  display: block;
  cursor: pointer;
  background-color: #ffffff;
}
.popup-gallery:not(.active):not(.base__base-gallery).ajax-loaded {
  display: none;
}
.popup-gallery:not(.active):not(.base__base-gallery) .gallery-top .swiper-button-prev,
.popup-gallery:not(.active):not(.base__base-gallery) .gallery-top .swiper-button-next {
  display: none;
}
.popup-gallery:not(.active):not(.base__base-gallery) .gallery-top .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .popup-gallery:not(.active):not(.base__base-gallery) .gallery-top .swiper-slide img {
    width: auto;
  }
}
.popup-gallery:not(.active):not(.base__base-gallery) .gallery-thumbs .swiper-slide img {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}
.popup-gallery.active {
  position: fixed;
  z-index: 100;
  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 {
  transform: rotate(45deg);
}
.popup-gallery.active .gallery-close-btn span:last-child {
  transform: rotate(-45deg);
}
.popup-gallery.active .gallery-top {
  height: 90%;
  width: 100%;
  max-width: none;
  max-height: none;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .popup-gallery.active .gallery-top {
    height: 100%;
  }
}
.popup-gallery.active .gallery-top .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-gallery.active .gallery-top .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  cursor: pointer;
}
.popup-gallery.active .gallery-thumbs {
  background-color: #000000;
  height: 10%;
  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;
  width: auto;
}
.popup-gallery.active .gallery-thumbs .swiper-slide.swiper-slide-thumb-active {
  border-color: #c10100;
}
.popup-gallery.active .gallery-thumbs .swiper-slide:hover:not(.swiper-slide-thumb-active) {
  border-color: #ffffff;
}
.ajax-slider-wrp a {
  cursor: pointer;
}
