.has-product-video .product-video-frame {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 1px;
	overflow: hidden;
	background-color: #f5f5f5;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: inherit;
}

.has-product-video .product-video {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: var(--faky-product-media-ratio, 1 / 1);
	object-fit: cover;
}

.product-gallery .product-video.stretch {
	aspect-ratio: .5;
}

.product-gallery .first-image .product-video.stretch {
	aspect-ratio: 1 / 2.062;
}

.has-product-video .video-failed .product-video {
	opacity: 0;
}

.product-video-fullscreen,
.product-video-toggle {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(0, 0, 0, .58);
	cursor: pointer;
}

.product-video-fullscreen {
	right: 12px;
	bottom: 12px;
}

.product-video-toggle {
	top: 50%;
	left: 50%;
	display: none;
	transform: translate(-50%, -50%);
}

.autoplay-denied .product-video-toggle {
	display: flex;
}

.product-video-fullscreen:focus-visible,
.product-video-toggle:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.product-video-fullscreen:disabled,
.product-video-toggle:disabled {
	display: none;
}

.product-video-frame:fullscreen,
.product-video-frame:-webkit-full-screen {
	background-color: #000;
	background-size: contain;
}

.product-video-frame:fullscreen .product-video,
.product-video-frame:-webkit-full-screen .product-video {
	object-fit: contain;
}

.product-video-thumbnail {
	position: relative;
}

.product-video-thumbnail::after {
	content: '\25B6';
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #fff;
	background: rgba(0, 0, 0, .58);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.product-gallery .product-video-frame {
	display: block;
	width: 100%;
	height: 100%;
}

.product-gallery .product-video {
	min-height: 100%;
	aspect-ratio: 1 / 1;
}

@media (prefers-reduced-motion: reduce) {
	.product-video-toggle {
		display: flex;
	}
}
