/* Сетка карточек в стиле видео-превью */

.g3vc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px 18px;
	margin: 24px 0 40px;
}

.g3vc-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

/* Обложка 16:9 со скруглением */
.g3vc-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #1f2a44;
}

.g3vc-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	display: block;
	transition: transform .35s ease;
}

.g3vc-card:hover .g3vc-thumb img {
	transform: scale(1.04);
}

.g3vc-thumb-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 56px;
	font-weight: 700;
	color: rgba(255, 255, 255, .85);
	background: linear-gradient(135deg, #2b3f8f, #4a6cd4);
}

/* Заголовок — максимум 2 строки */
.g3vc-title {
	margin: 10px 0 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.g3vc-title a {
	color: #0f0f0f;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.g3vc-title a:hover {
	color: #2b3f8f;
}

.g3vc-meta {
	margin-top: 2px;
	font-size: 13px;
	color: #8a8a8a;
}

.g3vc-dot {
	margin: 0 4px;
}

.g3vc-empty {
	margin: 24px 0 40px;
}

/* Пагинация */
.g3vc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 40px;
}

.g3vc-pagination .page-numbers {
	min-width: 36px;
	padding: 6px 10px;
	border-radius: 8px;
	background: #f1f3f8;
	color: #303030;
	text-align: center;
	text-decoration: none;
}

.g3vc-pagination .page-numbers.current {
	background: #2b3f8f;
	color: #fff;
}

@media (max-width: 600px) {
	.g3vc-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}
