

.nxt_modal_backdrop {
	opacity: 0;
	pointer-events: none;
}

.nxt_modal_backdrop.nxt_modal_shown {
	opacity: unset;
	pointer-events: unset;
}

.nxt_modal_backdrop {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	/*backdrop-filter: blur(5px);*/
	/*background-image: radial-gradient(#0000, #000c);*/
	z-index: 1400;
	background-color: #0008;
	cursor: pointer;
}

.nxt_modal {
	max-width: 90vw;
	max-height: 90vh;
	background-color: #fff;
	box-shadow: 0 0 10px #0008;
	transition: all .35s ease;

	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, calc(-50% - 100px));
	padding: 2.5em 3em 2em;
	cursor: default;
	overflow-y: auto;

	display: flex;
	box-sizing: content-box;

	&.nxt_modal_side_panel {
		top: 0;
		bottom: 0;
		left: unset;
		right: 0;
		transform: translateX(100px);
		max-height: unset;
	}

	&.pa_none {
		padding: 0;
	}
}

.nxt_modal_content {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.nxt_modal_backdrop.nxt_modal_shown .nxt_modal {
	&:not(.nxt_modal_side_panel) {
		transform: translate(-50%, -50%);
	}
	&.nxt_modal_side_panel {
		transform: translateX(0);
	}
}

.nxt_modal_close {
	position: absolute;
	background-color: #0000;
	cursor: pointer;
	border: none;
	top: 1.25em;
	right: 1.25em;
}

@media (max-width: 1200px) {
	.nxt_modal {
		width: calc(90vw - 6em);
		top: calc(50% + 50px);
		max-height: 80vh;
	}
}

@media screen and (max-width: 480px)  {
	.nxt_modal {
		width: calc(100vw - 6em);
		top: calc(50% + 50px);
		max-height: 80vh;
	}
}
