/* =================================
modal base
================================= */
.modalDialog{
	width: 100%;
	border: 0;
	opacity: 0;
	pointer-events: none;
	transition:opacity .35s ease;
}

.modalDialog.isShow{
	opacity: 1;
	pointer-events: auto;
}

/* =================================
animation target
================================= */
.modalContent{
	transform: scale(.85);
	transform-origin: center center;
	transition:transform .35s cubic-bezier(.2,.8,.2,1);
	background-color: var(--black);
}

.modalDialog.isShow .modalContent{
	transform: scale(1);
}

/* =================================
backdrop
================================= */

.modalDialog::backdrop{
	background: rgba(135,206,235,0);
	transition:background .35s ease;
}

.modalDialog.isShow::backdrop{
	background: var(--white);
}

/* =================================
normal
================================= */
.txtModal{
	max-width: 1000px;
	max-height: 90%;
}

.modalInner{
	padding: 1em;
}

/* =================================
youtube
================================= */
#youtubeModal{
	max-width: 1300px;
	background: transparent;
}

.movieWrap{
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: double 3px var(--gold);
}

.movieWrap iframe{
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* =================================
image
================================= */
#imageModal{
	max-width: 1000px;
	background: transparent;
}

.modalImg{
	display: block;
	width: 100%;
	height: auto;
	max-height: 90vh;
	object-fit: contain;
}

.galleryPrev,
.galleryNext{
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	font-size: 80px;
	border: 0;
	background: none;
	cursor: pointer;
}

.galleryPrev{
	left: 20px;
}

.galleryNext{
	right: 20px;
}
	
/* =================================
close
================================= */
.closeBtn{
	position: fixed;
	top: 0;
	right: 0;
	text-align: right;
	z-index: 9999;
	font-size: 500%;
	line-height: 1em;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0 .2em;
	outline: none;
	box-shadow: none;
	color: var(--gold);
}

.closeBtn:focus{
	outline: none;
	box-shadow: none;
}

/* =================================
optional
================================= */
.modalOpen{
	cursor: pointer;
}
