@keyframes openDialog {
	from {
		opacity: 0; translate: 0 -20px;
	}
	to {
		opacity: 1; translate: 0 0;
	}
}
@keyframes closeDialog {
	to {
		opacity: 0; translate: 0 -20px;
	}
}

body dialog {
	border: none; padding: 0; border: none;
}
body dialog > .dialog-wrapper {
	width: calc(100vw - 40px); max-width: 1240px;
	padding: clamp(20px, 4.5vw, 80px);
}
body .fl-page dialog > button {
	position: absolute; top: 0; right: 0; left: auto; z-index: 5;
	display: flex; align-items: center; justify-content: center;
	border-radius: 0; border: none;
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	width: 50px; height: 50px;
}
body dialog[open] {
	animation: openDialog 0.5s ease normal;
	-webkit-animation: openDialog 0.5s ease normal;
}
body dialog.hideDialog {
	animation: closeDialog 0.5s ease normal;
	-webkit-animation: closeDialog 0.5s ease normal;
}
body dialog.hideDialog::backdrop {
	opacity: 0;
}
body dialog::backdrop {
	background-color: #000000; opacity: 0.5;
	transition: opacity 0.5s ease-in-out;
}