.modal {
	-webkit-overflow-scrolling: touch;
	background: url(../../img/common/modal_bg.jpg) no-repeat center / cover;
	display: none;
	opacity: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 20001;
	transition: opacity .5s ease;
}
.modal.visible {
	display: block;
	opacity: 1;
}

.gallery_oneModal{
	display: none;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
	overflow: auto;
}

.galleryCont .modal-overlay {
	display: flex;
	justify-content: center;
	align-items: center;
	height: auto;
	width: 100%;
	min-height: 100%;
	margin: 0 auto;
	position: relative;
	opacity: 0;
	transition: opacity 0.5s ease;
}
.modal-overlay.visible {
	opacity: 1;
}
.modal__item {
	padding: 36px 120px;
	position: relative;
	z-index: 100;
	width: 100%;
	max-width: 1200px;
}
@media screen and (max-width:767px){
	.modal-overlay {
		min-width: 100%;
	}
	.modal__item{
		width: 100%;
		padding: 55px 18px;
		max-width: 100%;
	}
}





.modal__itemIn img {
	width: 100%;
	vertical-align: bottom;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-touch-callout: none;
	-moz-user-select: none;
	touch-callout: none;
	user-select: none;
	pointer-events: none;
}


.modal__itemIn .galleryVideo{
	width: 100%;
	padding-top: 56.25%;
	position: relative;
}
.modal__itemIn .galleryVideo .galleryCont{
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	width: 100%;
}
.modal__caption {
	position: absolute;
	color: #fff;
	line-height: 1.6;
	padding: 10px;
}
@media screen and (min-width: 767px) {
	.modal__itemIn{
		min-width: 100%;
	}
	.modal__caption {
		padding: 10px 0;
	}
}
.modal__close {
	position: absolute;
	bottom: 0px;
	left: calc(50% - 36px);
	z-index: 9999;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 2px solid #ffb6c4;
	padding: 5px;
	background-color: #fff;
}
.modal__close:before{
	content: '';
	position: absolute;
	top: 5px;
	left: 5px;
	bottom: 5px;
	right: 5px;
	border-radius: 50%;
	border: 1px solid #ffb6c4;
}
.modal__close--line{
	display: block;
	position: absolute;
	top: calc(50% - 10px);
	left: calc(50% - 10px);
	width: 20px;
	height: 20px;
}
.modal__close--line:before{
	content: '';
	position: absolute;
	height: 2px;
	width: 100%;
	top: 9px;
	left: 0;
	background-color: #ffb6c4;
	transform: rotate(30deg);
}
.modal__close--line:after{
	content: '';
	position: absolute;
	height: 2px;
	width: 100%;
	bottom: 9px;
	left: 0;
	background-color: #ffb6c4;
	transform: rotate(-30deg);
}
@media screen and (max-width: 767px){
	.modal__close {
		width: 36px;
		height: 36px;
		left: calc(50% - 18px);
		border-width: 1px;
		padding: 3px;
	}
	.modal__close:before{
		top: 3px;
		right: 3px;
		bottom: 3px;
		left: 3px;
	}
	.modal__close--line{
		top: calc(50% - 5px);
		left: calc(50% - 5px);
		width: 10px;
		height: 10px;
	}
	.modal__close--line:before{
		top: 4.5px;
		height: 1px;
	}
	.modal__close--line:after{
		bottom: 4.5px;
		height: 1px;
	}
}


.modal__prev {
	position: absolute;
	top: 50%;
	transform: translate(0, -50%);
	left: 24px;
	width: 72px;
	height: 72px;
	z-index: 9999;
	border-radius: 50%;
	border: 2px solid #ffb6c4;
	padding: 5px;
	background-color: #fff;
}
.modal__prev:before {
	content: '';
	position: absolute;
	top: 5px;
	left: 5px;
	bottom: 5px;
	right: 5px;
	border-radius: 50%;
	border: 1px solid #ffb6c4;
}
.modal__prev:after{
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	width: 11px;
	height: 11px;
	background: url(../../img/common/slide_arrow_l.svg)no-repeat center / 100%;
}
@media screen and (max-width: 767px){
	.modal__prev {
		width: 36px;
		height: 36px;
		left: 0;
		border-width: 1px;
		padding: 3px;
	}
	.modal__prev:before {
		top: 3px;
		right: 3px;
		bottom: 3px;
		left: 3px;
	}
	.modal__prev:after{
		width: 6px;
		height: 6px;
	}
}


.modal__next {
	position: absolute;
	top: 50%;
	transform: translate(0, -50%);
	right: 24px;
	width: 72px;
	height: 72px;
	z-index: 9999;
	border-radius: 50%;
	border: 2px solid #ffb6c4;
	padding: 5px;
	background-color: #fff;
}
.modal__next:before {
	content: '';
	position: absolute;
	top: 5px;
	left: 5px;
	bottom: 5px;
	right: 5px;
	border-radius: 50%;
	border: 1px solid #ffb6c4;
}
.modal__next:after{
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	width: 11px;
	height: 11px;
	background: url(../../img/common/slide_arrow_r.svg)no-repeat center / 100%;
}
@media screen and (max-width: 767px){
	.modal__next {
		width: 36px;
		height: 36px;
		right: 0;
		border-width: 1px;
		padding: 3px;
	}
	.modal__next:before {
		top: 3px;
		right: 3px;
		bottom: 3px;
		left: 3px;
	}
	.modal__next:after{
		width: 6px;
		height: 6px;
	}
}


.fas {
	font-size: 40px;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.6);
}
.fadein {
	animation: fadein .3s;
}

.fadeout {
		animation: fadeout .3s;
		animation-fill-mode: forwards;
}
@keyframes fadein {
		0% {
				opacity: 0;
		}
		100% {
				opacity: 1;
		}
}
@keyframes fadeout {
		0% {
				opacity: 1;
		}
		100% {
				opacity: 0;
				display: none;
		}
}