.mih-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.75);
}

.mih-overlay[hidden] {
	display: none;
}

.mih-modal {
	position: relative;
	display: inline-flex;
	max-width: 100%;
	max-height: 100%;
}

.mih-modal .mih-image {
	display: block;
	width: auto;
	height: auto;
	max-width: calc(100vw - 48px);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	border-radius: 6px;
}

.mih-modal .mih-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font: 400 26px/1 Arial, sans-serif;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mih-modal .mih-close:hover {
	background: #eee;
	color: #000;
}

.mih-modal .mih-close:focus-visible {
	outline: 3px solid #4f94d4;
	outline-offset: 2px;
}

body.mih-open {
	overflow: hidden;
}
