/* ══════════════════════════════════════════════════════════════
   Vicuña Noticias — Galería Masonry + Te Puede Interesar
   ══════════════════════════════════════════════════════════════ */

/* ── Galería Masonry (CSS columns — sin JS, sin deformación) ── */

.vgal-wrap {
	width: 100%;
}

.vgal-grid {
	columns: 3;
	column-gap: 8px;
}

.vgal-item {
	break-inside: avoid;
	margin-bottom: 8px;
	display: block;
}

.vgal-link {
	display: block;
	cursor: zoom-in;
}

.vgal-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	transition: opacity 0.2s ease;
}

.vgal-link:hover .vgal-img {
	opacity: 0.88;
}

/* ── Lightbox ───────────────────────────────────────────────── */

.vgal-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vgal-lb-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
}

.vgal-lb-content {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vgal-lb-img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	display: block;
}

.vgal-lb-close,
.vgal-lb-prev,
.vgal-lb-next {
	position: fixed;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: none;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	padding: 8px 14px;
	transition: background 0.2s ease;
	border-radius: 3px;
}

.vgal-lb-close { top: 16px; right: 16px; font-size: 24px; }
.vgal-lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.vgal-lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }

.vgal-lb-close:hover,
.vgal-lb-prev:hover,
.vgal-lb-next:hover { background: rgba(255,255,255,0.3); }

/* ── Te Puede Interesar ─────────────────────────────────────── */

.vtpi-widget {
	width: 100%;
}

.vtpi-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.vtpi-card {
	display: block;
	text-decoration: none;
}

.vtpi-image {
	width: 100%;
	background-size: cover;
	background-position: center;
}

.vtpi-title {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
	line-height: 1.35;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.vtpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.vgal-grid { columns: 2; }
}

@media (max-width: 480px) {
	.vgal-grid { columns: 1; }
	.vtpi-grid { grid-template-columns: 1fr; }
}
