.product_gallery_popup {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 99;
	display: none;
}

.product_gallery_popup.active {
	display: inline-block;
}

.popup_overlay {
	background-color: black;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	opacity: 0.8;
}

.popup_content_wrapper {
	display: inline-block;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.close_popup {
	z-index: 2;
	position: absolute;
	right: 15px;
	top: 15px;
	width: 27px;
	height: 27px;
	display: block;
	cursor: pointer;
	background-image: url(../img/close-white.svg);
	background-size: 100%;
	border-radius: 50%;
	background-color: #3cafcb;
	background-size: 20px;
	background-position: 4px 5px;
	background-repeat: no-repeat;
}

.popup_images_wrapper {
	position: relative;
	display: inline-block;
}

.popup_image {
	display: none;
	min-width: 300px;
}

.popup_image.active {
	display: inline-block;
}

.popup_image img,
.popup_image .rll-youtube-player {
	max-width: calc(100vw - 90px);
	max-height: calc(90vh - 50px);
	width: auto;
	height: auto;
	margin: auto;
}

babylonpopup {
	/* width: 1280px; */
	max-width: calc(100vw - 30px);
	height: 750px !important;
	max-height: calc(100vh - 75px);
}

.popup_content_wrapper {
	background-color: white;
	width: 80%;
	max-width: 1600px;
	border-radius: 4px;
	text-align: center;
	padding: 30px 50px;
}

.popup_image iframe {
	max-width: 100%;
}

.popup_thumbs_wrapper {
	overflow: hidden;
}

.thumb_popup {
	width: 80px;
	height: 80px;
	float: left;
	cursor: pointer;
	margin-right: 15px;
	border: 2px solid transparent;
	padding: 3px;
}

.thumb_popup.active {
	border-color: #3cafcb;
}

.thumb_popup:last-child {
	margin-right: 0;
}

.popup_content {
	position: relative;
}

.popup_bottom {
	padding: 0 15px;
	position: fixed;
	bottom: 0;
	box-sizing: border-box;
	padding-bottom: 12px;
	left: 0;
	max-width: 100%;
	left: 50%;
	transform: translate(-50%, 0);
}

body.popup_open {
	position: fixed;
}

.popup_image .animation_video_wrapper {
	max-height: calc(80vh - 150px);
}

.popup_image video.animation_video {
	max-height: calc(80vh - 150px);
}

@media (min-width: 768px) {
	.popup_image img,
	.popup_image .rll-youtube-player {
		max-width: 100%;
	}
}

.image_title {
	text-align: center;
	width: 100%;
	font-size: 15px;
	font-weight: 600;
	bottom: 0;
	padding: 10px 0;
}

.image_progress {
	display: none;
	position: absolute;
	top: 0;
	transform: translate(0, -100%);
	font-weight: 500;
	font-size: 13px;
	padding-bottom: 5px;
}

.product_gallery_popup .rll-youtube-player:hover img {
	-webkit-filter: brightness(90%);
}

.popup_image.youtube .rll-youtube-player {
	width: 1280px;
}

@media (min-width: 768px) {
	.popup_images_wrapper {
		position: absolute;
		left: 0;
		width: 100%;
		top: 50%;
		transform: translate(0, -50%);
	}

	.close_popup.mobile {
		display: none;
	}

	.product_gallery_popup .product_gallery_arrow {
		width: 50px;
	}

	.product_gallery_popup .product_gallery_arrow.left {
		left: 0;
		background-position: 10px center;
	}

	.product_gallery_popup .product_gallery_arrow.right {
		right: 0;
		background-position: right 10px center;
	}

	.popup_content_wrapper {
		height: 80%;
	}

	.popup_image img, .popup_image .rll-youtube-player {
		max-height: calc(80vh - 150px);
	}

	.popup_content {
		height: calc(80vh - 70px);
	}
}

@media (max-width: 767px) {
	.popup_content {
		padding-top: 55px;
	}

	.popup_overlay {
		background-color: white;
		opacity: 1;
	}

	.thumb_popup {
		width: 52px;
		height: 52px;
		margin-right: 10px;
	}

	babylonpopup {
		max-width: 100vw;
	}

	.model3d .image_progress {
		padding-left: 5px;
	}

	.popup_content_wrapper {
		width: 100%;
		height: 100%;
		padding-left: 0;
		padding-right: 0;
		position: relative;
		top: 0;
		left: 0;
		transform: none;
		padding-top: 0;
	}

	.popup_image img,
	.popup_image babylonpopup,
	.popup_image .rll-youtube-player {
		max-width: 100%;
		max-height: calc(100vh - 200px);
		max-height: calc((var(--vh, 1vh) * 100) - 200px);
		margin: auto;
	}

	.popup_images_wrapper {
		height: calc(100vh - 140px);
		max-height: calc((var(--vh, 1vh) * 100) - 140px);
		width: 100%;
	}

	.close_popup.desktop {
		display: none;
	}

	loading-screen {
		background-color: transparent !important;
	}

	.image_title {
		padding: 10px 15px;
		box-sizing: border-box;
	}

	.popup_image {
		left: 0;
		position: absolute;
		top: 50%;
		transform: translate(0, -50%);
		width: 100%;
	}
}
