/* Page Image Popup (Canopies / Door Canopies) */

.mpv-image-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mpv-image-popup.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.mpv-image-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	cursor: pointer;
}

.mpv-image-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: calc(100vh - 32px);
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.3s ease;
}

.mpv-image-popup.is-open .mpv-image-popup__dialog {
	transform: translateY(0) scale(1);
}

.mpv-image-popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #c2c2c2;
	font-size: 41px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease;
	background: none !important;
}

.mpv-image-popup__close:hover,
.mpv-image-popup__close:focus-visible {
	color: #000;
}

.mpv-image-popup__content {
	display: block;
	line-height: 0;
}

.mpv-image-popup__link {
	display: block;
}

.mpv-image-popup__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 32px);
	object-fit: contain;
}

body.mpv-image-popup-open {
	overflow: hidden;
}
