@charset "utf-8";

body.modalFixed {
	width: 100%;
	position: fixed;
}

.modal-window {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000000;
	opacity: 1;
	cursor: default;
	cursor: pointer;
}

.modal-video-close {
	opacity: 0;
}

.modal-video-close .modal-window-movie-wrap {
	-webkit-transform: translate(0, 100px);
	-moz-transform: translate(0, 100px);
	-ms-transform: translate(0, 100px);
	-o-transform: translate(0, 100px);
	transform: translate(0, 100px);
}

.modal-window-body {
	max-width: 940px;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	display: table;
}

.modal-window-inner {
	display: table-cell;
	vertical-align: middle;
	width: 100%;
	height: 100%;
}

.modal-window-movie-wrap {
	width: 100%;
	height: 0;
	position: relative;
	padding-bottom: 56.25%;
	background-color: #333;
	-webkit-transform: translate(0, 0);
	-moz-transform: translate(0, 0);
	-ms-transform: translate(0, 0);
	-o-transform: translate(0, 0);
	transform: translate(0, 0);
}

.modal-window-movie-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.modal-video-close-btn {
	position: absolute;
	z-index: 2;
	top: -35px;
	right: -35px;
	display: inline-block;
	width: 35px;
	height: 35px;
	overflow: hidden;
	border: none;
	background: transparent;
	pointer-events: none;
}

.modal-video-close-btn:before {
	transform: rotate(45deg);
	pointer-events: none;
}

.modal-video-close-btn:after {
	transform: rotate(-45deg);
	pointer-events: none;
}

.modal-video-close-btn:before, .modal-video-close-btn:after {
	content: '';
	position: absolute;
	height: 2px;
	width: 100%;
	top: 50%;
	left: 0;
	margin-top: -1px;
	background: #fff;
	border-radius: 5px;
	margin-top: -6px;
	pointer-events: none;
}



@media only screen and (max-width: 750px) {
	.modal-window-movie-wrap {
		width: 90%;
		margin: 0 auto;
	}

	.modal-video-close-btn {
		right: -5px;
		width: 30px;
		height: 30px;
	}
}