/* Site-wide image zoom overlay for certificate / test-report blocks. */
.zwt-zoom {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
	background: rgba(9, 20, 24, 0.92);
}

.zwt-zoom[hidden] {
	display: none;
}

.zwt-zoom__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: min(1200px, 100%);
	max-height: 100%;
	margin: 0;
}

.zwt-zoom__img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.zwt-zoom__caption {
	max-width: 70ch;
	color: #e8f0f0;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.zwt-zoom__caption[hidden] {
	display: none;
}

.zwt-zoom__close {
	position: absolute;
	top: clamp(12px, 3vw, 28px);
	right: clamp(12px, 3vw, 28px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
}

.zwt-zoom__close:hover,
.zwt-zoom__close:focus-visible {
	background: rgba(255, 255, 255, 0.2);
}

.zwt-zoom__close svg {
	width: 20px;
	height: 20px;
}

html.zwt-zoom-open,
html.zwt-zoom-open body {
	overflow: hidden;
}

[data-zwt-zoom-src],
.zwt-reports__imgwrap {
	cursor: zoom-in;
}

@media (max-width: 600px) {
	.zwt-zoom__img {
		max-height: calc(100vh - 120px);
	}

	.zwt-zoom__caption {
		font-size: 13px;
	}
}
