/* Replacement for the old jquery.boxy plugin's popup dialogs (see js/common.js's
   openModal()/closeModal()/setModalContent()), using the browser's native <dialog> element --
   built-in modal semantics, backdrop, and Esc-to-close come for free. */

.modalDialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	max-width: 90vw;
	max-height: 85vh;
	overflow: auto;
	padding: 0;
	border: 1px solid #000;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.modalDialog::backdrop {
	background-color: rgba(0, 0, 0, 0.6);
}

.modalDialog .modalClose {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	line-height: 22px;
	text-align: center;
	background-color: #000;
	color: #fff;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	font-size: 14px;
	z-index: 1;
}

.modalDialog .modalContent {
	padding: 15px;
}
