@keyframes fade-in-up {
	0% {
		opacity: 0;
   }
	100% {
		transform: translateY(0);
		opacity: 1;
   }
}

/* Higher specificity to override Astra theme */
body .video-wrap .video iframe {
	max-width: 100% !important;
	max-height: 100% !important;
}

/* Override Astra theme's oembed container styles */
body .video-wrap .video.stuck,
body .ast-oembed-container .video.stuck,
.video.stuck {
	position: fixed !important;
	transform: translateY(0) !important;
	animation: fade-in-up 0.25s ease forwards !important;
	z-index: 999999 !important;
	opacity: 1 !important;
	/* Position and size will be set by JavaScript from admin settings */
}

/* Ensure iframe inside stuck video maintains proper positioning */
body .video-wrap .video.stuck iframe,
body .ast-oembed-container .video.stuck iframe {
	position: relative !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

/* Additional override for maximum compatibility */
.video.stuck {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Ensure video-wrap doesn't interfere */
.video-wrap {
	position: relative;
}

.video-wrap .video.stuck {
	position: fixed !important;
}

/* Close button styles - only show on stuck videos */
.video.stuck .wpj-close-btn {
	position: absolute !important;
	top: 5px !important;
	right: 5px !important;
	width: 15px !important;
	height: 30px !important;
	background: rgb(255, 255, 255) !important;
	color: rgb(0, 0, 0) !important;
	border: none !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	font-size: 26px !important;
	line-height: 1 !important;
	z-index: 1000000 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: Arial, sans-serif !important;
}

.video.stuck .wpj-close-btn:hover {
	background: rgba(0, 0, 0, 0.9) !important;
	transform: scale(1.1) !important;
	color: rgb(255, 255, 255) !important;
}

/* Hide close button on normal videos */
.video:not(.stuck) .wpj-close-btn {
	display: none !important;
}