body.mft_popup-open {
	overflow: hidden;
	/* Блокируем прокрутку фона */
}

.mft_popup.hidden {
	display: none;
}

.mft_popup {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	z-index: 880;
}

.mft_popup::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	background: #111;
	opacity: 0.7;
	z-index: -1;
}

.mft_popup-overlay {
	display: flex;
	position: absolute;
	justify-content: center;
	align-items: center;
	width: 100vw;
	height: 100vh;
}

.mft_popup-content {
	position: relative;
	right: 0;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99;

}


.mft_popup-content img,
.mft_popup-content video,
.mft_popup-content iframe:not(.file),
.mft_popup-content>div:not(.slider) {
	/*  width: 100%;*/
	max-width: 90vw;
	max-height: 90vh;

}



.mft_popup-content img {
	background: #fff;
}

.close-mft_popup {
	position: absolute;
	top: 5%;
	right: 5%;
	font-size: 50px;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	z-index: 999;
	transition: color 0.4s ease;
}

/* .close-mft_popup:hover {
  color: #00F2C2;
} */

.loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 4px solid #fff;
	border-top: 4px solid transparent;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.mft_popup-content img {
	border-radius: 4px;
	overflow: hidden;
}

.mft_popup-content .slider {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	align-items: center;
}

.mft_popup-content #mainImg {

	max-height: 70vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.mft_popup-content .thumbnails-wrap {
	display: flex;
	width: 90vw;

}

.mft_popup-content .thumbnails {
	display: flex;
	justify-content: center;
	gap: 16px;
}


.mft_popup-content .thumbnail {
	cursor: pointer;
	border: 1px solid transparent;
}

.mft_popup-content .thumbnail.active {
	border: 1px solid #09fdd6;
}

.mft_popup-content .main-image {

	margin-bottom: 30px;
	padding: 30px;
	background: #fff;
	border-radius: 4px;
}

.mft_popup-content .arrows {

	position: fixed;
	top: calc(50% - 78px);
	left: 5%;
	right: 5%;
	display: flex;
	justify-content: space-between;
}

.mft_popup-content .arrows>* {
	border-radius: 50%;
	width: 48px;
	height: 48px;
	background: #09fdd6;
	padding: 0;
	font-size: 32px;
	line-height: 48px;
	border: none;
	outline: none;
	cursor: pointer;
	opacity: 0.3;
	transition: opacity 0.3s ease;
}

.mft_popup-content .arrows>*:hover {
	opacity: 1;
}


.mft_popup-content .thumbnail {
	height: 10vh;
}


.mft_popup-content[type="file"] {
	width: 80vw;
	height: 90vh;
}

.mft_popup-content[type="file"] iframe {
	width: 100%;
	height: 100%;
}