/* ==========================================================
   dp-lightbox — visor de fotos de la nota
   Sin dependencias. Se activa desde js/dp-lightbox.js
   ========================================================== */

.dp-lb-trigger { cursor: zoom-in; }

.dp-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	background: rgba(9, 9, 11, .95);
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility 0s linear .22s;
	-webkit-tap-highlight-color: transparent;
}

.dp-lb.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .22s ease, visibility 0s;
}

body.dp-lb-lock { overflow: hidden; }

/* --- escenario --- */
.dp-lb__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 54px 72px 10px;
}

.dp-lb__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
	opacity: 1;
	transition: opacity .16s ease;
}

.dp-lb__img.is-swapping { opacity: 0; }

/* --- botones --- */
.dp-lb__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .16s ease;
}

.dp-lb__btn:hover { background: rgba(255, 255, 255, .22); }
.dp-lb__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.dp-lb__close { top: 14px; right: 16px; font-size: 26px; }
.dp-lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.dp-lb__next { right: 14px; top: 50%; transform: translateY(-50%); }

.dp-lb__counter {
	position: absolute;
	top: 22px;
	left: 20px;
	color: rgba(255, 255, 255, .65);
	font-size: 13px;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
}

/* --- pie: epigrafe + miniaturas --- */
.dp-lb__foot {
	flex: 0 0 auto;
	padding: 6px 20px 16px;
	text-align: center;
}

.dp-lb__caption {
	max-width: 780px;
	margin: 0 auto 12px;
	color: rgba(255, 255, 255, .82);
	font-size: 14px;
	line-height: 1.5;
}

.dp-lb__caption:empty { display: none; }

.dp-lb__thumbs {
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	overflow-x: auto;
	padding: 4px 2px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

.dp-lb__thumbs::-webkit-scrollbar { height: 6px; }
.dp-lb__thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .3); border-radius: 3px; }

.dp-lb__thumbs.is-centered { justify-content: center; }

.dp-lb__thumb {
	flex: 0 0 auto;
	width: 76px;
	height: 54px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	opacity: .45;
	transition: opacity .16s ease, box-shadow .16s ease;
}

.dp-lb__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dp-lb__thumb:hover { opacity: .8; }
.dp-lb__thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.dp-lb__thumb.is-current {
	opacity: 1;
	box-shadow: inset 0 0 0 2px #fff;
}

/* --- mobile --- */
@media (max-width: 767px) {
	.dp-lb__stage { padding: 50px 12px 8px; }
	.dp-lb__btn { width: 40px; height: 40px; font-size: 20px; }
	.dp-lb__prev { left: 6px; }
	.dp-lb__next { right: 6px; }
	.dp-lb__caption { font-size: 13px; }
	.dp-lb__thumb { width: 58px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.dp-lb,
	.dp-lb__img,
	.dp-lb__btn,
	.dp-lb__thumb { transition: none; }
}
