.iso-elements-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
}

.iso-elements-lightbox[aria-hidden="false"] {
	display: block;
}

.iso-elements-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.iso-elements-lightbox__dialog {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.iso-elements-lightbox__panel {
	position: relative;
	max-width: min(1100px, 100%);
	max-height: min(90vh, 100%);
	width: 100%;
	display: grid;
	grid-template-rows: auto auto;
	gap: 12px;
}

.iso-elements-lightbox__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 75vh;
	object-fit: contain;
	background: transparent;
}

.iso-elements-lightbox__caption {
	color: #fff;
	font-size: 16px;
	line-height: 1.4;
}

.iso-elements-lightbox__caption:empty {
	display: none;
}

.iso-elements-lightbox__close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 0;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	font-size: 28px;
	line-height: 44px;
	text-align: center;
}

.iso-elements-lightbox__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Make the image area clickable without changing layout */
/* Trigger cursor without affecting layout */
img[data-iso-lightbox="1"] {
	cursor: zoom-in;
}


