/* --------------- */

dialog::backdrop
{
	background: rgba(0, 0, 0, 0.5);
}

.dialogoverlay
{
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	z-index: 200;
}

.dialogoverlay dialog.popup
{
	display: block;
	position: relative;
	z-index: 201;
}

dialog.popup
{
	box-sizing: border-box;
	max-width: calc(100vw - 12px);
	max-height: calc(100vh - 12px);
	padding: 10px;
	border: 1px solid gray;
	border-radius: 10px;
	background: white;
	transform-origin: center center;
	transition: all 800ms, opacity 100ms, transform 200ms;
}

dialog.popup .content
{
	display: block;
	margin: 0 auto;
	width: 100%;
	height: max-content;
	overflow: hidden;
}

dialog.popup .content iframe,
dialog.popup .content img
{
	display: block;
	width: 100%;
	height: 100%;
}

dialog.popup .content img
{
	object-fit: scale-down;
}

dialog.popup h4
{
	margin: 0;
	padding: 0;
	padding-top: 10px;
	padding-bottom: 2px;
	padding-left: 8px;
	padding-right: 24px;
	border: 0;
	font-size: 18px;
	line-height: 18px;
	color: #434343;
	text-shadow: 0 0 6px rgba(224,243,254,0.5);
}

dialog.popup .closebtn
{
	position: absolute;
	bottom: 12px;
	right: 10px;
	width: 20px;
	height: 20px;
	background: #cccccc url("close.png") no-repeat;
	cursor: pointer;
}

dialog.popup .closebtn:hover
{
	background-color: #333333;
}

dialog.popup.loading:after
{
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: url("loader.gif") no-repeat center center;
	pointer-events: none;
}

dialog.popup.closed,
dialog.popup.close
{
	opacity: 0.5;
	transform: scale(0.75);
	pointer-events: none;
}

dialog.popup.open
{
	opacity: 1;
	transform: scale(1);
	overflow: hidden;
}

.scrollbar-outer
{
	position: absolute;
	visibility: hidden;
	width: 200px;
	height: 200px;
	border: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.scrollbar-inner
{
	width: 100%;
	height: 200px;
	border: 0;
	margin: 0;
	padding: 0;
}
