/* Play button overlay for video slides inside the gallery (Owl Carousel
   or the default WooCommerce gallery) */
.wcvgo-video-item,
.wcvgo-video-thumb-item {
	position: relative;
}
.wcvgo-video-poster {
	display: block;
	position: relative;
	cursor: pointer;
	width: 100%;
	aspect-ratio: 4 / 3;   /* adjust to match your theme's image ratio if needed */
	overflow: hidden;
	background: #eceff2;
}

/* Whatever size cover image is uploaded, crop it to fill the slot instead
   of stretching/distorting it — same treatment for the main slide poster
   and the thumb-slider image. */
.wcvgo-video-thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.wcvgo-video-thumb-item {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eceff2;
}
.wcvgo-video-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* The real iframe/<video> injected on click, sized to fill the slide. */
.wcvgo-video-item {
	position: relative;
}
.wcvgo-video-item .wcvgo-embed {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}
.wcvgo-video-item.wcvgo-playing .wcvgo-video-poster {
	display: none;
}

/* Default WooCommerce gallery compatibility */
.woocommerce-product-gallery .wcvgo-video-item {
	width: 100%;
}
.wcvgo-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	pointer-events: none;
	z-index: 1;
}
.wcvgo-play-btn::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #fff;
}
.wcvgo-play-btn--sm {
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
}
.wcvgo-play-btn--sm::after {
	border-width: 6px 0 6px 10px;
}
.wcvgo-video-item:hover .wcvgo-play-btn {
	background: rgba(0, 0, 0, 0.75);
}

/* Corner "open in popup" icon (Fancybox), sitting alongside inline play */
.wcvgo-expand-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
	z-index: 2;
	display: block;
}
.wcvgo-expand-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}
.wcvgo-expand-btn::before,
.wcvgo-expand-btn::after {
	content: "";
	position: absolute;
	border: 2px solid #fff;
}
.wcvgo-expand-btn::before {
	top: 7px;
	left: 7px;
	width: 8px;
	height: 8px;
	border-right: 0;
	border-bottom: 0;
}
.wcvgo-expand-btn::after {
	bottom: 7px;
	right: 7px;
	width: 8px;
	height: 8px;
	border-left: 0;
	border-top: 0;
}
