.vaux-image-modal[hidden] {
	display: none;
}

.vaux-image-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.vaux-image-modal.is-visible {
	opacity: 1;
}

.vaux-image-modal__backdrop {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 100%;
	padding: 24px;
	background: rgba(0, 0, 0, 0.78);
	cursor: pointer;
}

.vaux-image-modal__dialog {
	position: relative;
	max-width: min(90vw, 900px);
	max-height: 90vh;
	cursor: default;
}

.vaux-image-modal__image {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
}

.vaux-image-modal__close {
	position: absolute;
	top: -16px;
	right: -16px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 24px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
}
