.video-popup-block {
	position: relative;
}

.video-popup-trigger {
	position: relative;
	display: inline-block;
	cursor: pointer;
	overflow: hidden;
	border-radius: 8px;
}

.video-poster-image {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.video-popup-trigger:hover .video-poster-image {
	transform: scale(1.05);
}

.video-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: transform 0.3s ease;
	z-index: 1;
}

.video-play-button:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button:active {
	transform: translate(-50%, -50%) scale(0.95);
}

/* Video Modal */
.video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.video-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

.video-modal-content {
	position: relative;
	width: 90%;
	max-width: 1200px;
	aspect-ratio: 16 / 9;
	z-index: 1;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.video-modal.is-open .video-modal-content {
	transform: scale(1);
}

.video-modal-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 2;
	transition: transform 0.2s ease;
}

.video-modal-close:hover {
	transform: scale(1.1);
}

.video-modal-iframe-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-iframe-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Responsive */
@media (max-width: 768px) {
	.video-modal-content {
		width: 95%;
	}

	.video-modal-close {
		top: -40px;
		right: -10px;
	}

	.video-play-button svg {
		width: 60px;
		height: 60px;
	}
}

