@media (max-width: 767px) {
  .gallery-block-wrp {
  }
}

.popup-gallery:not(.active).ajax-loaded {
    display: none;
}

.popup-gallery.active .gallery-top .swiper-wrapper {
    height: 100% !important;
}

.popup-gallery.active .cprt-warning {
	background: transparent;
	min-width: 100%;
	margin: 0 0 !important;
}

.popup-gallery.full-width.active .gallery-top .swiper-slide img {
	max-height: 90%;
	display: block;
	cursor: pointer;
	width: auto;
}

.popup-gallery.active .gallery-top .swiper-slide img {
	max-height: 90%;
	display: block;
	cursor: pointer;
	width: auto;
}


.popup-gallery.full-width {
    width: 100%;
}

.popup-gallery.full-width:not(.active) .gallery-top .swiper-slide {
	display: block !important;
	height: 225px;
	width: 100% !important;
}

@media (min-width: 425px) {
	.popup-gallery.full-width:not(.active) .gallery-top .swiper-slide {
		height: 550px;
	}
}


.popup-gallery.full-width:not(.active) .gallery-top .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}


.popup-gallery.full-width .gallery-top {
    max-width: none;
}

.popup-gallery.full-width .gallery-top .swiper-slide img {
    max-height: none;
}


@media (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.full-width{width: 100%}

table .popup-gallery{width: 100%}

.popup-gallery {
  position: relative;
}
@media (min-width: 768px) {
  .popup-gallery {
    width: calc(100% - 310px);
    flex-shrink: 0;
    flex-grow: 0;
  }
}
.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;
  padding: 0px !important;
}

@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;
  box-sizing: border-box;
}
.popup-gallery .gallery-thumbs .swiper-slide img {
	/* max-height: 100%; */
	display: block;
	cursor: pointer;
	/*width: 100%;*/
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.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 {
  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;
  margin-bottom: 0;
}
.popup-gallery.active .gallery-top .swiper-slide {
  display: flex;
  align-items: 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%;
  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: #359B13;
}
.popup-gallery.active .gallery-thumbs .swiper-slide:hover:not(.swiper-slide-thumb-active) {
  border-color: #ffffff;
}

.popup-gallery--static-fixed:not(.active) .gallery-top {
  height: 225px;
}

@media print, (min-width: 768px) {
  .popup-gallery--static-fixed:not(.active) .gallery-top {
    height: 360px;
  }
}


.popup-gallery--static-fixed:not(.active) .gallery-top .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cprt-warning {
	position: absolute;
	left: 0;
	bottom: 0;
	font-size: 10px;
	color: #ffffff;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1404937) 0%, rgba(0, 0, 0, 0.64469538) 25%, #000000 100%);
	min-width: 910px;
	margin: 17.5px 0 0 0 !important;
	box-sizing: border-box;
	padding: 25px;
}
@media print, (min-width:768px) {
	.cprt-warning {
		font-size: 16px;
		line-height: 1.3;
		max-height: 100%;
		width: 100%;
		padding: 10px;
	}
}

.swiper-lazy-preloader {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100% !important;
	height: 100% !important;
	margin-left: 0 !important;
	margin-top: 0 !important;
	text-align: center;
	color: #000000;
	left: 0 !important;
	top: 0 !important;
	bottom: 0;
	right: 0;
	text-transform: uppercase;
	animation: none !important;
}
.swiper-lazy-preloader__icon {
	display: block;
	max-width: 30% !important;
	height: auto!important;
	object-fit: contain!important;
	margin-bottom: 5px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
@media print, (min-width:768px) {
	.swiper-lazy-preloader__icon {
		max-width: 40% !important;
		object-fit: contain!important;
		margin-bottom: 15px !important;
	}
}
.swiper-lazy-preloader:after {
	display: none !important;
	background-image: none !important;
}

@media (max-width: 767px) {
	.material-gallery .popup-gallery:not(.active) .gallery-top .swiper-slide {
		display: block !important;
		height: 225px;
		width: 100% !important;
	}
}

.popup-gallery:not(.active) .gallery-top .swiper-slide img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

.popup-gallery .gallery-pagination {
	position: absolute;
	right: 10px;
	bottom: 88%;
	left: 86%;
	width: auto;
	height: auto;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 10;
	padding: 3px;
	line-height: normal;
	color: #ffffff;
	font-size: 13px;
}
.popup-gallery .gallery-pagination span {
	padding: 0;
	margin: 0;
	color: #ffffff;
	font-size: 13px;
}
.popup-gallery .gallery-pagination span:first-child {
	margin-right: -3px;
}
.popup-gallery .gallery-pagination span:last-child {
	margin-left: -3px;
}
.popup-gallery.active .gallery-pagination {
	right: 86%;
	bottom: 95.5%;
	left: 10px;
}