/* ==========================================================================
   Cardon – Video Gallery  |  frontend.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Gallery grid
   -------------------------------------------------------------------------- */
.cvg-gallery {
	display: grid;
	gap: 24px;
	width: 100%;
}

.cvg-cols-1 { grid-template-columns: 1fr; }
.cvg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cvg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cvg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.cvg-cols-5 { grid-template-columns: repeat(5, 1fr); }
.cvg-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
	.cvg-cols-3,
	.cvg-cols-4,
	.cvg-cols-5,
	.cvg-cols-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.cvg-gallery { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Gallery item / card
   -------------------------------------------------------------------------- */
.cvg-item {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cvg-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cvg-thumb-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* --------------------------------------------------------------------------
   Thumbnail / poster
   -------------------------------------------------------------------------- */
.cvg-thumb-wrap {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	background: #111;
	overflow: hidden;
}

.cvg-poster,
.cvg-no-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cvg-item:hover .cvg-poster {
	transform: scale(1.04);
}

.cvg-no-thumb {
	background: #222;
}

/* --------------------------------------------------------------------------
   Play button overlay
   -------------------------------------------------------------------------- */
.cvg-play-btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.cvg-play-btn svg {
	width: 56px;
	height: 56px;
	opacity: 0.9;
	transition: opacity 0.2s ease, transform 0.2s ease;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.cvg-item:hover .cvg-play-btn svg {
	opacity: 1;
	transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Card info
   -------------------------------------------------------------------------- */
.cvg-info {
	padding: 12px 14px 14px;
	background: #fff;
}

.cvg-title {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: #111;
}

.cvg-excerpt {
	margin: 0;
	font-size: 0.85rem;
	color: #555;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cvg-no-videos {
	font-style: italic;
	color: #666;
}

/* ==========================================================================
   Single video page
   ========================================================================== */

.cvg-single-wrap {
	max-width: 960px;
	margin: 40px auto;
	padding: 0 20px;
}

.cvg-single-header {
	margin-bottom: 20px;
}

.cvg-single-title {
	margin: 0 0 8px;
	font-size: 1.8rem;
	line-height: 1.2;
}

.cvg-back-link {
	font-size: 0.9rem;
	color: #0073aa;
	text-decoration: none;
}

.cvg-back-link:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive video wrappers
   -------------------------------------------------------------------------- */
.cvg-youtube-wrap,
.cvg-local-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #000;
	border-radius: 6px;
	margin-bottom: 24px;
}

.cvg-youtube-wrap iframe,
.cvg-local-wrap video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.cvg-single-poster {
	width: 100%;
	border-radius: 6px;
	display: block;
	margin-bottom: 24px;
}

.cvg-single-content {
	margin-top: 24px;
	font-size: 1rem;
	line-height: 1.7;
	color: #333;
}

/* --------------------------------------------------------------------------
   More Videos section (single page)
   -------------------------------------------------------------------------- */
.cvg-more-videos {
	max-width: 960px;
	margin: 48px auto 40px;
	padding: 0 20px;
}

.cvg-more-title {
	font-size: 1.4rem;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e5e5e5;
	color: #111;
}
