@charset "utf-8";


#overlay {
	width: 100%;
	height: 100%;
	background: #000;
	background: rgba(0, 0, 0, .8);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 110000;
	transition: opacity 300ms ease;
}

#ModalWindow {
	position: absolute;
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, .2);
	transition: opacity 300ms ease;
}

.modalImage #ModalWindow img {
	width: 100%;
	height: 100%;
	vertical-align: bottom;
}

.modalPage #ModalWindow {
	width: 640px;
	padding: 40px;
	background: #FFF;
	border-radius: 5px;
}

#ModalWindow iframe {
	width: 640px;
	margin: 0 auto;
	display: block;
	overflow: hidden;
	border: none;
}

#ModalNavClose {
	width: 30px;
	height: 30px;
	background-color: rgba(255, 255, 255, 1);
	border-radius: 50%;
	position: absolute;
	top: -15px;
	right: -15px;
	z-index: 100;
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, .15);
	cursor: pointer;
	transform-origin: center center;
	transform: rotate3d(0, 0, 0, 0);
	transition: all 250ms ease;
}

#ModalNavClose:hover {
	transform: rotate3d(0, 0, 1, 90deg);
}

#ModalNavClose:before,
#ModalNavClose:after {
	content: "";
	width: 14px;
	height: 2px;
	margin: -1px -7px;
	display: block;
	background-color: rgba(0, 0, 0, 1);
	position: absolute;
	top: 50%;
	left: 50%;
	transform-origin: center center;
}

#ModalNavClose:before {
	transform: rotate3d(0, 0, 1, 45deg);
}

#ModalNavClose:after {
	transform: rotate3d(0, 0, 1, -45deg);
}

#ModalNavPrev,
#ModalNavNext {
	width: 40px;
	height: 40px;
	background-clor: rgba(255, 255, 255, 1);
	border-radius: 5px;
	position: fixed;
	top: 50%;
	cursor: pointer;
	transition: all 200ms ease;
}

#ModalNavPrev {
	left: 0;
	transform: translate3d(-5px, 0, 0);
}

#ModalNavNext {
	right: 0;
	transform: translate3d(5px, 0, 0);
}

#ModalNavPrev:hover,
#ModalNavNext:hover {
	transform: translate3d(0, 0, 0);
}