/* Lightbox overlay (single #nzp-igl-lb on page) */
html.nzp-igl-lb-open,
body.nzp-igl-lb-open {
	overflow: hidden;
}

.nzp-igl-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	box-sizing: border-box;
}

.nzp-igl-lb[hidden] {
	display: none !important;
}

.nzp-igl-lb__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 28, 0.88);
	cursor: zoom-out;
}

.nzp-igl-lb__panel {
	position: relative;
	z-index: 1;
	max-width: min(96vw, 1200px);
	max-height: 92vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.nzp-igl-lb__figure {
	margin: 0;
	max-height: calc(92vh - 140px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.nzp-igl-lb__img {
	max-width: 100%;
	max-height: calc(92vh - 140px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--nzp-igl-radius, 6px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nzp-igl-lb__meta {
	text-align: center;
	max-width: 42rem;
	color: #f2f4f8;
}

.nzp-igl-lb__title {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.nzp-igl-lb__cap {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.92;
}

.nzp-igl-lb__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.nzp-igl-lb__btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 6px;
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
	cursor: pointer;
	line-height: 1.2;
}

.nzp-igl-lb__btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.2);
}

.nzp-igl-lb__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.nzp-igl-lb__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.nzp-igl-lb__close:hover {
	background: rgba(0, 0, 0, 0.65);
}

/* Thumbnail triggers (scoped — beats generic theme button/article rules) */
.nzp-igl-scope.nzp-igl--has-lightbox .nzp-igl__lb-trigger {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: zoom-in;
	text-align: inherit;
	position: relative;
	font: inherit;
	line-height: 0;
}

.nzp-igl-scope.nzp-igl--has-lightbox .nzp-igl__lb-trigger img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	vertical-align: top;
}

.nzp-igl-scope.nzp-igl--has-lightbox .nzp-igl__lb-trigger:focus {
	outline: 2px solid var(--nzp-igl-accent, #2271b1);
	outline-offset: 2px;
}

.nzp-igl-scope.nzp-igl--carousel .nzp-igl__carousel-img-wrap .nzp-igl__lb-trigger {
	max-height: 420px;
	margin: 0 auto;
}

.nzp-igl-scope.nzp-igl--carousel .nzp-igl__carousel-img-wrap .nzp-igl__lb-trigger img {
	max-height: 420px;
	width: auto;
	margin: 0 auto;
}

.nzp-igl-scope.nzp-igl--listing .nzp-igl__thumb .nzp-igl__lb-trigger {
	border-radius: 6px;
	overflow: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.nzp-igl-scope.nzp-igl--listing .nzp-igl__thumb .nzp-igl__lb-trigger:hover {
	opacity: 0.92;
	transform: scale(1.02);
}
