/* Bricks Product Video Gallery - 前台样式 */
.bpvg-video-slide {
	position: relative;
	overflow: hidden;
	background: #000;
}

/* 缩略图滑块（.brx-product-gallery-thumbnail-slider）中的视频封面缩略图 */
.bpvg-video-thumb {
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.bpvg-video-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.bpvg-video-slide .bpvg-video {
	display: block;
	width: 100%;
	height: auto;
}

.bpvg-video-slide iframe.bpvg-video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* 播放图标 */
.bpvg-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	border: 0;
	border-radius: 50%;
	background: rgba(13, 32, 56, 0.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	transition: background .2s, transform .2s, opacity .2s;
	backdrop-filter: blur(2px);
}

.bpvg-play-icon svg {
	width: 30px;
	height: 30px;
	margin-left: 4px; /* 视觉居中 */
}

.bpvg-play-icon:hover {
	background: #1d6fc4;
	transform: translate(-50%, -50%) scale(1.06);
}

.bpvg-video-slide.bpvg-playing .bpvg-play-icon {
	opacity: 0;
	pointer-events: none;
}

/* Lightbox 灯箱 */
.bpvg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(10, 15, 30, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bpvg-lightbox__box {
	position: relative;
	width: min(960px, 94vw);
}

.bpvg-lightbox__box video,
.bpvg-lightbox__box iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border: 0;
}

.bpvg-lightbox__close {
	position: absolute;
	top: -48px;
	right: 0;
	background: none;
	border: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	opacity: .85;
	transition: opacity .2s;
}

.bpvg-lightbox__close:hover {
	opacity: 1;
}

body.bpvg-lightbox-open {
	overflow: hidden;
}

.woocommerce-product-gallery__image a,.woocommerce-product-gallery__image{
	aspect-ratio: 1/1;
	overflow: hidden;
	
}
.woocommerce-product-gallery .flex-viewport{
	border-radius: 10px;
}
.woocommerce-product-gallery__image video{
	display: block;
	height: 100% !important;
	/* width: auto !important; */
	margin: auto;
	object-fit: cover;
}
.woocommerce-product-gallery__image img{
	display: block;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 640px) {
	.bpvg-play-icon {
		width: 50px;
		height: 50px;
	}
	.bpvg-play-icon svg {
		width: 24px;
		height: 24px;
	}
}
