/* ===== Traventia UI — Lightbox (galeria, ver traventia-lightbox.js) ===== */

.tv-lightbox-item {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: var(--tv-radius-md);
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.tv-lightbox-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tv-transition-base); }
.tv-lightbox-item:hover img { transform: scale(1.05); }

.tv-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: var(--tv-z-modal);
	display: none;
	align-items: center;
	justify-content: center;
}

.tv-lightbox-overlay.is-open { display: flex; }

.tv-lightbox-image { max-width: 90vw; max-height: 85vh; border-radius: var(--tv-radius-sm); }

.tv-lightbox-close,
.tv-lightbox-prev,
.tv-lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: var(--tv-radius-full);
	width: 44px;
	height: 44px;
	font-size: var(--tv-text-2xl);
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tv-lightbox-close:hover,
.tv-lightbox-prev:hover,
.tv-lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }

.tv-lightbox-close { top: 20px; right: 20px; }
.tv-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tv-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }