/* Timeline Video Styles */

/* Force parent container to display properly */
.qodef-qi-timeline .qodef-e-image {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 auto !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Fix for timeline video layout containers */
.qodef-qi-timeline .qodef-e-top-holder {
	display: block !important;
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
}

/* Video wrapper - base styles (100% width) */
.qodef-e-media-video-wrapper {
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

/* For iframe videos (YouTube, Vimeo) - responsive 16:9 aspect ratio */
.qodef-e-media-video-wrapper.qodef-video-iframe {
	padding-bottom: 56.25% !important; /* Ratio 16:9 */
	height: 0 !important;
	overflow: hidden !important;
	background: #000 !important;
}

.qodef-e-media-video-wrapper.qodef-video-iframe > iframe {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	border: none !important;
	display: block !important;
	z-index: 10 !important;
}

/* For uploaded videos - WordPress video player (natural flow, 100% width, auto height) */
.qodef-e-media-video-wrapper.qodef-video-uploaded {
	height: auto !important;
	padding-bottom: 0 !important;
	overflow: visible !important;
}

.qodef-e-media-video-wrapper.qodef-video-uploaded .qodef-e-media-video {
	width: 100% !important;
	max-width: 100% !important;
	position: relative !important;
}

/* WordPress video player elements - 100% width, auto height */
.qodef-video-uploaded .wp-video,
.qodef-video-uploaded .mejs-container,
.qodef-video-uploaded .mejs-mediaelement,
.qodef-video-uploaded video {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	display: block !important;
	position: relative !important;
}

/* Elementor Editor - ensure videos are visible */
.elementor-editor-active .qodef-e-media-video-wrapper {
	position: relative;
	min-height: 200px;
}

/* Show placeholder when iframe is not loaded in editor */
.elementor-editor-active .qodef-e-media-video-wrapper:empty::before,
.elementor-editor-active .qodef-e-media-video-wrapper iframe[src=""]::before {
	content: "🎬 Video Preview";
	display: block;
	background: #f0f0f0;
	padding: 60px 20px;
	text-align: center;
	font-size: 18px;
	color: #666;
	border: 2px dashed #ccc;
	border-radius: 4px;
}

.elementor-editor-active .qodef-e-media-video-wrapper iframe,
.elementor-editor-active .qodef-e-media-video-wrapper video {
	display: block;
	background: #000;
}

.lite-yt {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.lite-yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lite-yt__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 70px;
    height: 70px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lite-yt__icon {
    width: 0;
    height: 0;
    border-left: 18px solid #000;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}