/* =========================================================
   YouTube Videos shortcode – front-end styles
   ========================================================= */

.xt-yt-grid {
	display: grid;
	gap: 24px;
	width: 100%;
}

/* Column variants */
.xt-yt-cols-1 { grid-template-columns: 1fr; }
.xt-yt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.xt-yt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.xt-yt-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.xt-yt-cols-3,
	.xt-yt-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.xt-yt-cols-2,
	.xt-yt-cols-3,
	.xt-yt-cols-4 { grid-template-columns: 1fr; }
}

/* Card */
.xt-yt-card {
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	overflow: hidden;
}

/* Embed / thumbnail wrapper – 16:9 ratio */
.xt-yt-embed-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #111;
	cursor: pointer;
}

.xt-yt-thumb,
.xt-yt-embed-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: none;
}

.xt-yt-no-thumb {
	position: absolute;
	inset: 0;
	background: #222;
}

/* Title */
.xt-yt-info {
	padding: 10px 12px 12px;
}

.xt-yt-title {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.xt-yt-title a {
	color: #fff;
	text-decoration: none;
}

.xt-yt-title a:hover {
	text-decoration: underline;
}

/* Description */
.xt-yt-description {
	margin: 6px 0 0;
	line-height: 1;
}

/* Empty message */
.xt-yt-empty {
	opacity: 0.6;
	font-style: italic;
}

/* Pagination */
.xt-yt-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 40px;
}

.xt-yt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 6px;
	border: 2px solid #222;
	background: transparent;
	color: #222;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1;
	transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.xt-yt-pagination .page-numbers:hover {
	background: #222;
	color: #fff;
	border-color: #222;
}

.xt-yt-pagination .page-numbers.current {
	background: #222;
	color: #fff;
	border-color: #222;
	font-weight: 700;
	pointer-events: none;
}

.xt-yt-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
	color: #222;
	pointer-events: none;
}
