/* ---------- Lightbox das capturas de tela ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 200;
	display: flex; align-items: center; justify-content: center;
	background-color: rgba(0, 0, 0, 0.92);
	opacity: 0; visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
.lb-img {
	--lb-dir: 0;
	max-width: 88vw; max-height: 84vh; object-fit: contain;
	border: 3px solid var(--purple-main); border-radius: 12px;
	background-color: #121324;
	opacity: 0;
	transform: translateX(calc(var(--lb-dir) * 24px)) scale(0.98);
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.lb-img.is-loaded {
	opacity: 1; transform: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.lb-btn {
	position: absolute;
	width: 48px; height: 48px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	background-color: rgba(15, 16, 29, 0.9); color: var(--text-white);
	border: 0; border-radius: 50%;
	/* Anel desenhado com box-shadow: fica liso mesmo em telas com zoom ou alta densidade */
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
	font-size: 1.8rem; line-height: 1; cursor: pointer;
	transition: box-shadow 0.2s ease, color 0.2s ease;
}
.lb-close { top: 16px; right: 16px; }
/* Centralizado com calc (sem translate), assim o botão fica em pixel inteiro e não borra */
.lb-prev { left: 16px; top: calc(50% - 24px); }
.lb-next { right: 16px; top: calc(50% - 24px); }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
.lb-count {
	position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
	color: var(--text-gray); font-size: 0.9rem; font-weight: 600; letter-spacing: 1px;
	pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
	.lb-btn:hover { box-shadow: inset 0 0 0 2px var(--purple-light); color: var(--purple-light); }
}
@media (hover: none) {
	.lb-btn:active { box-shadow: inset 0 0 0 2px var(--purple-light); color: var(--purple-light); }
}
.lb-btn:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; }
@media (max-width: 768px) {
	.lb-img { max-width: 94vw; max-height: 78vh; }
	.lb-prev, .lb-next { top: auto; bottom: 8px; width: 44px; height: 44px; }
	.lb-count { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.lightbox, .lb-img, .lb-img.is-loaded { transition: none; }
}
