/* ============================================================
   Video Cover Widget
   ============================================================ */

/* Wrapper */
.video-cover-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	cursor: pointer;
	min-height: 480px;
	width: 100%;
}

.video-cover-wrapper:focus {
	outline: 3px solid rgba(255, 255, 255, .5);
	outline-offset: -3px;
}

/* Background image layer */
.video-cover-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 1;
	transition: transform .6s ease;
}

.video-cover-wrapper:hover .video-cover-bg {
	transform: scale(1.03);
}

/* Colour overlay */
.video-cover-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

/* Text + icon content block */
.video-cover-content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 60px 40px;
	width: 100%;
	max-width: 720px;
}

/* ── Play button ── */
.video-cover-play-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-bottom: 20px;
	border-radius: 50%;
	transition: transform .25s ease, opacity .25s ease;
	position: relative;
}

.video-cover-play-btn.has-circle {
	border-style: solid;
	border-width: 2px;
	border-color: #ffffff;
	width: 80px;
	height: 80px;
}

.video-cover-wrapper:hover .video-cover-play-btn {
	transform: scale(1.1);
	opacity: .9;
}

/* Ripple rings — two staggered pulses that expand and fade */
.video-cover-play-btn.has-circle::before,
.video-cover-play-btn.has-circle::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	animation: vcPlayRipple 2.4s ease-out infinite;
	pointer-events: none;
}

.video-cover-play-btn.has-circle::after {
	animation-delay: 1.2s;
}

@keyframes vcPlayRipple {
	0%   { transform: scale(1);   opacity: 0.6; }
	100% { transform: scale(1.8); opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
	.video-cover-play-btn.has-circle::before,
	.video-cover-play-btn.has-circle::after {
		animation: none;
	}
}

.video-cover-play-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #ffffff;
	/* Nudge the triangle optically slightly to the right */
	padding-left: 3px;
}

.video-cover-play-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ── Title ── */
.video-cover-title {
	color: #ffffff;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 12px;
}

/* ── Description ── */
.video-cover-description {
	color: rgba(255, 255, 255, .8);
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
	max-width: 600px;
}

/* ============================================================
   Lightbox modal
   ============================================================ */
.video-cover-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}

.video-cover-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.vcm-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .88);
	cursor: pointer;
}

.vcm-inner {
	position: relative;
	z-index: 1;
	width: 92%;
	max-width: 1040px;
}

.vcm-close {
	position: absolute;
	top: -44px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #ffffff;
	background: transparent;
	border: none;
	padding: 6px;
	cursor: pointer;
	opacity: .8;
	transition: opacity .2s;
}

.vcm-close:hover {
	opacity: 1;
}

.vcm-close svg {
	pointer-events: none;
}

/* 16:9 responsive iframe */
.vcm-iframe-wrap {
	position: relative;
	padding-top: 56.25%;
}

.vcm-iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.video-cover-wrapper {
		min-height: 320px;
	}

	.video-cover-content {
		padding: 40px 24px;
	}

	.video-cover-title {
		font-size: 22px;
	}

	.video-cover-description {
		font-size: 14px;
	}

	.vcm-close {
		top: -36px;
	}
}
