/* Gallery lightbox — matches React ImageLightbox */
.jemrock-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.jemrock-lightbox[hidden] {
	display: none !important;
}

.jemrock-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: hsl(var(--background) / 0.95);
}

.jemrock-lightbox-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	max-width: 90vw;
	max-height: 90vh;
}

.jemrock-lightbox-img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

.jemrock-lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 50;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: hsl(var(--foreground) / 0.8);
	background: hsl(var(--background) / 0.8);
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.jemrock-lightbox-close:hover {
	color: hsl(var(--foreground));
	background: hsl(var(--background));
}

.jemrock-lightbox-prev,
.jemrock-lightbox-next {
	position: absolute;
	z-index: 40;
	padding: 0.75rem;
	font-size: 1.5rem;
	line-height: 1;
	color: hsl(var(--foreground) / 0.8);
	background: hsl(var(--background) / 0.8);
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.jemrock-lightbox-prev:hover,
.jemrock-lightbox-next:hover {
	color: hsl(var(--foreground));
	background: hsl(var(--background));
}

.jemrock-lightbox-prev {
	left: 1rem;
}

.jemrock-lightbox-next {
	right: 1rem;
}

.jemrock-lightbox-counter {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	color: hsl(var(--foreground) / 0.8);
	background: hsl(var(--background) / 0.8);
	border-radius: 9999px;
}
