/* Lightbox vanilla (sin jQuery ni librerias) para las galerias de fotos. */
/* Look moderno: overlay oscuro a pantalla completa, imagen centrada con */
/* sombra, flechas circulares a los lados, cerrar flotante, contador tipo */
/* pastilla. Reemplaza al viejo Thickbox 3 + jQuery. */

#lightboxOverlay {
	position: fixed;
	z-index: 1100;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(10, 10, 10, 0.92);
	display: none;
	opacity: 0;
	transition: opacity 0.2s ease-out;
}

#lightboxOverlay.visible {
	opacity: 1;
}

#lightboxWindow {
	position: fixed;
	z-index: 1102;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	box-sizing: border-box;
	padding: 60px 90px;
}

#lightboxImgWrap {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#lightboxWindow img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
	background: #111;
	opacity: 0;
	transform: scale(0.98);
	transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

#lightboxWindow img.cargada {
	opacity: 1;
	transform: scale(1);
}

#lightboxClose,
#lightboxPrev,
#lightboxNext {
	position: fixed;
	z-index: 1103;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font: 22px/1 Arial, Helvetica, sans-serif;
	transition: background 0.15s ease-out;
}

#lightboxClose:hover,
#lightboxPrev:hover,
#lightboxNext:hover {
	background: rgba(255, 255, 255, 0.2);
}

#lightboxClose {
	top: 20px;
	right: 20px;
	width: 42px;
	height: 42px;
	font-size: 26px;
}

#lightboxPrev,
#lightboxNext {
	top: 50%;
	margin-top: -26px;
	width: 52px;
	height: 52px;
	font-size: 28px;
}

#lightboxPrev {
	left: 20px;
}

#lightboxNext {
	right: 20px;
}

#lightboxCounter {
	position: fixed;
	z-index: 1103;
	display: none;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font: 13px/1 Arial, Helvetica, sans-serif;
	padding: 7px 16px;
	border-radius: 20px;
	letter-spacing: 0.02em;
}

/* --------------------------------------- */
/* VERSION MOVIL (MOV) */
/* El padding de escritorio (60px 90px) deja la foto ampliada muy chica */
/* en una pantalla angosta; en MOV se reduce para que use casi todo el */
/* ancho. Las flechas de prev/next se ocultan (tapaban la foto) y se */
/* reemplazan por gesto de swipe (ver lightbox.js); !important porque */
/* mostrar()/abrirLightbox() en el JS les pone display:flex inline. */

@media (max-width: 768px) {

	#lightboxWindow{
		padding: 56px 16px;
	}

	#lightboxClose{
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
		font-size: 22px;
	}

	#lightboxPrev,
	#lightboxNext{
		display: none !important;
	}

}

/* VERSION MOVIL (MOV) */
/* --------------------------------------- */
