@charset "UTF-8";

.v3-dialog:not([open]) {
    display: none;
}
.v3-dialog{
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	box-sizing: border-box;
	overflow-y: auto;
	position: fixed;
	inset: 0;
	margin: auto;
	background: transparent;
	overscroll-behavior: none;
	scrollbar-width: none;
	outline: none;
	border: none;
	:focus {
		outline: 4px solid #000;
	}
}
.v3-dialog::backdrop {
	opacity: 0;
}

.mdl-inner {
	max-height: 90vh;
	position: relative;
}

.mdl-contents {
	width: 100%;
	max-height: 90vh;
	box-sizing: border-box;
	background: #fff;
	overflow-y: auto;
}

.org-close {
	width: 120px;
	height: 22px;
	border: none;
	color: #fff;
	font-size: 22px;
	background: transparent;
	text-transform: uppercase;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	right: 0;
	left: 0;
	margin-left: auto;
	margin-right:auto;
	margin-top:8px;
	cursor: pointer;
	&::before {
		content: "";
		width: 20px;
		height: 20px;
		margin-right: .3em;
		margin-top: -2px;
		background: #fff;
		clip-path: polygon(10% 0, 0 9%, 40% 50%, 0 90%, 10% 100%, 50% 60%, 90% 100%, 100% 90%, 60% 50%, 100% 10%, 90% 0, 50% 40%);
	}
}

.mdl-overlay {
	border: none;
	width: 100%;
	height: calc(100% + 1px);
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	position: absolute;
	inset: 0;
	z-index: -1;
}

.mdl-inner {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .4s .2s, transform .4s .2s;
	&.modalOpen {
		opacity: 1;
		transform: translateY(0);
	}
	&.modalClose {
		transition: opacity .3s, transform .3s;
		opacity: 0;
		transform: translateY(10px);
	}
}
.mdl-overlay {
	opacity: 0;
	transition: opacity 0.3s;
	&.modalOpen {
		opacity: 1;
	}
	&.modalClose {
		opacity: 0;
	}
}

.v3-dialog:modal {
	display: flex;
	align-items: center;
	justify-content: center;
}



.dialog-free {
	.mdl-inner {
		/*
		max-width: min(90vw, 105vh , 800px );
		max-height: min(60vw ,70vh , 533px );
		 */
	}
	.mdl-contents {
		box-shadow: 10px 10px 10px 0px rgba(0, 0, 0, 0.2);
		max-width: min(90vw, 105vh , 800px );
		max-height: min(60vw ,70vh , 533px );
		a {
			display:flex;
			max-width: min(90vw, 105vh , 800px );
			max-height: min(60vw ,70vh , 533px );
		}
	}
	img {
		width: 100%;
		display: block;
	}
}
.dialog-image {
	.mdl-inner {
		max-width: min(90%, 800px);
	}
	.mdl-contents {
		background: transparent;
	}
	img {
		max-width: 100%;
		height: auto;
	}
}
.dialog-movie {
	.mdl-inner {
		width: 80%;
		max-width: 900px;
	}
	.mdl-contents {
		background: #000;
	}
	iframe {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		display: block;
	}
}

