.video-showcase {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.video-showcase.vs-full-width {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.vs-video-wrap {
	position: relative;
	width: 100%;
	padding-top: var(--vs-ratio, 56.25%);
	overflow: hidden;
}

.vs-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vs-video:not([controls])::-webkit-media-controls {
	display: none !important;
}

.vs-video:not([controls])::-webkit-media-controls-enclosure {
	display: none !important;
}

.vs-video:not([controls]) {
	pointer-events: none;
}

.vs-video[controls] {
	pointer-events: auto;
}

.vs-video-mobile {
	display: none;
}

.vs-fallback {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 768px) {
	.vs-video-wrap {
		padding-top: var(--vs-ratio-mobile, var(--vs-ratio, 56.25%));
	}

	.video-showcase .vs-video-desktop {
		display: none;
	}

	.video-showcase .vs-video-mobile {
		display: block;
	}

	.video-showcase:not(:has(.vs-video-mobile)) .vs-video-desktop {
		display: block;
	}
}

/* Overlay content */
.vs-overlay-content {
	position: absolute;
	z-index: 2;
	color: var(--vs-text-color, #fff);
	pointer-events: auto;
}

.vs-overlay-content a,
.vs-overlay-content div,
.vs-overlay-content span,
.vs-overlay-content p,
.vs-overlay-content h1,
.vs-overlay-content h2,
.vs-overlay-content h3,
.vs-overlay-content h4 {
	color: inherit;
}

.vs-overlay-text {
	line-height: 1.4;
}

.vs-cta-link,
.vs-cta-modal {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.vs-cta-link:hover,
.vs-cta-modal:hover {
	opacity: 0.85;
}

/* Overlay positions */
.vs-overlay-bottom-center .vs-overlay-content {
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	width: 90%;
}

.vs-overlay-bottom-left .vs-overlay-content {
	bottom: 30px;
	left: 30px;
	text-align: left;
	max-width: 80%;
}

.vs-overlay-bottom-right .vs-overlay-content {
	bottom: 30px;
	right: 30px;
	text-align: right;
	max-width: 80%;
}

.vs-overlay-center .vs-overlay-content {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	width: 90%;
}

.vs-overlay-top-center .vs-overlay-content {
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	width: 90%;
}

.vs-overlay-top-left .vs-overlay-content {
	top: 30px;
	left: 30px;
	text-align: left;
	max-width: 80%;
}

.vs-overlay-top-right .vs-overlay-content {
	top: 30px;
	right: 30px;
	text-align: right;
	max-width: 80%;
}

@media (max-width: 768px) {
	.vs-overlay-bottom-center .vs-overlay-content,
	.vs-overlay-bottom-left .vs-overlay-content,
	.vs-overlay-bottom-right .vs-overlay-content {
		bottom: 20px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		text-align: center;
		width: 92%;
		max-width: none;
	}

	.vs-overlay-top-center .vs-overlay-content,
	.vs-overlay-top-left .vs-overlay-content,
	.vs-overlay-top-right .vs-overlay-content {
		top: 20px;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		text-align: center;
		width: 92%;
		max-width: none;
	}
}

/* Caption */
.vs-caption {
	color: var(--vs-caption-color, #333);
	text-align: var(--vs-caption-align, left);
	font-size: var(--vs-caption-size, 14px);
	padding: var(--vs-caption-padding, 12px 0);
	background-color: var(--vs-caption-bg, transparent);
	line-height: 1.5;
	width: 100%;
}

.vs-caption p:last-child {
	margin-bottom: 0;
}

.vs-caption-italic {
	font-style: italic;
}

.vs-caption-boxed {
	max-width: var(--vs-caption-max-width, 800px);
	width: 100%;
}

.vs-caption-boxed-left {
	margin-right: auto;
	margin-left: 0;
}

.vs-caption-boxed-center {
	margin-left: auto;
	margin-right: auto;
}

.vs-caption-boxed-right {
	margin-left: auto;
	margin-right: 0;
}

@media (max-width: 768px) {
	.vs-caption {
		font-size: var(--vs-caption-size, 13px);
		padding: var(--vs-caption-padding, 10px 15px);
	}

	.vs-full-width .vs-caption {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* Fullscreen modal */
.vs-modal {
	display: none;
}

.vs-modal.is-open {
	display: block;
}

.vs-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vs-modal-player-wrap {
	width: 100vw;
	height: 100vh;
}

.vs-modal-player-wrap .video-js,
.vs-modal-player-wrap video {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.vs-modal-player-wrap .video-js .vjs-tech {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.vs-modal-player-wrap .video-js .vjs-poster {
	background-size: cover;
	background-position: center;
}

.vs-modal-player-wrap .video-js .vjs-control-bar {
	z-index: 10;
	display: flex;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.vs-modal-player-wrap .video-js.vjs-has-started .vjs-control-bar {
	display: flex;
	visibility: visible;
}

.vs-modal-player-wrap .video-js .vjs-big-play-button {
	z-index: 10;
	pointer-events: auto;
}

/* Aspect ratio variants for modal */
.vs-modal-player-wrap.vs-aspect-16-9 {
	width: 100%;
	height: auto;
	padding-top: 56.25%;
	position: relative;
}

.vs-modal-player-wrap.vs-aspect-9-16 {
	width: auto;
	height: 100%;
	padding-left: 56.25%;
	position: relative;
	max-width: 100vw;
}

.vs-modal-player-wrap.vs-aspect-4-3 {
	width: 100%;
	height: auto;
	padding-top: 75%;
	position: relative;
}

.vs-modal-player-wrap.vs-aspect-3-4 {
	width: auto;
	height: 100%;
	padding-left: 75%;
	position: relative;
	max-width: 100vw;
}

.vs-modal-player-wrap.vs-aspect-1-1 {
	width: 100%;
	height: auto;
	padding-top: 100%;
	position: relative;
}

.vs-modal-player-wrap.vs-aspect-21-9 {
	width: 100%;
	height: auto;
	padding-top: 42.86%;
	position: relative;
}

.vs-modal-player-wrap[class*='vs-aspect-'] .video-js,
.vs-modal-player-wrap[class*='vs-aspect-'] video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

@media (max-width: 768px) {
	.vs-modal-player-wrap.vs-aspect-9-16 {
		width: 100%;
		height: auto;
		padding-top: 177.78%;
		padding-left: 0;
	}

	.vs-modal-player-wrap.vs-aspect-3-4 {
		width: 100%;
		height: auto;
		padding-top: 133.33%;
		padding-left: 0;
	}

	.vs-modal-overlay:has(.vs-aspect-9-16),
	.vs-modal-overlay:has(.vs-aspect-3-4) {
		align-items: flex-start;
		padding-top: 5vh;
	}
}

.vs-modal-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1000000;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: 0;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 24px;
	line-height: 40px;
	text-align: center;
}

html.vs-modal-open,
body.vs-modal-open {
	overflow: hidden;
}

/* Hardware acceleration (exclude modal to preserve Video.js controls) */
.vs-video-wrap,
.vs-video-wrap * {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.vs-modal,
.vs-modal * {
	backface-visibility: visible;
	-webkit-backface-visibility: visible;
}
