.portfolio-video {
	background: #111;
}

.elementor .portfolio-video-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #111;
	pointer-events: none;
}

.portfolio-video-poster[hidden] {
	display: none;
}

.video-play-icon {
	position: absolute;
	z-index: 1;
	inset: 50% auto auto 50%;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	border: 1px solid #fff;
	border-radius: 50%;
	background: rgb(0 0 0 / 24%);
	color: #fff;
	pointer-events: none;
}

.video-play-icon[hidden] {
	display: none;
}

.elementor .video-preview-hit-area {
	position: absolute;
	z-index: 2;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.elementor .video-preview-hit-area[hidden] {
	display: none;
}

.elementor .video-preview-hit-area:is(:hover, :active, :focus) {
	background: transparent;
}

.elementor .video-preview-hit-area:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.video-play-icon::before {
	content: "";
	width: 17px;
	height: 20px;
	margin-left: 3px;
	background: currentColor;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.portfolio-video.is-loading .video-play-icon::before {
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid rgb(255 255 255 / 35%);
	border-top-color: #fff;
	border-radius: 50%;
	background: none;
	clip-path: none;
	animation: video-preview-spin 850ms linear infinite;
}

.portfolio-video-status {
	position: absolute;
	z-index: 1;
	inset: calc(50% + 42px) auto auto 50%;
	padding: 4px 8px;
	transform: translateX(-50%);
	border-radius: 3px;
	background: rgb(0 0 0 / 65%);
	color: #fff;
	font: 500 12px/1.4 Montserrat, sans-serif;
	white-space: nowrap;
	pointer-events: none;
}

.portfolio-video-status:empty {
	visibility: hidden;
}

@keyframes video-preview-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
	.video-play-icon {
		width: 36px;
		height: 36px;
	}

	.video-play-icon::before {
		width: 10px;
		height: 12px;
		margin-left: 2px;
	}

	.portfolio-video.is-loading .video-play-icon::before {
		width: 14px;
		height: 14px;
	}

	.portfolio-video-status {
		inset-block-start: calc(50% + 25px);
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.portfolio-video.is-loading .video-play-icon::before {
		animation: none;
	}
}
