/* JSON Popups - minimal, theme-neutral styling. Restyle freely. */

.jsonpopup-open {
	overflow: hidden;
}

.jsonpopup-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.jsonpopup-overlay.is-visible {
	opacity: 1;
}

.jsonpopup-box {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.jsonpopup-img {
	display: block;
	max-width: 100%;
	max-height: 85vh;
	height: auto;
}

.jsonpopup-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.jsonpopup-close:hover {
	background: rgba(0, 0, 0, 0.85);
}
