/* Only the added video slide/thumbnail is styled; native gallery images keep editor styles. */
.rds-product-video { position: relative; text-align: center; }
.rds-product-video__frame {
	position: relative;
	width: 100%;
	max-width: calc(74vh * var(--rds-video-ratio, 1.777778));
	max-width: calc(74svh * var(--rds-video-ratio, 1.777778));
	aspect-ratio: var(--rds-video-ratio, 1.777778);
	margin-inline: auto;
	background: #111;
	overflow: hidden;
	border-radius: inherit;
}
.woocommerce-product-gallery .rds-product-video .rds-product-video__frame .rds-product-video__play,
.woocommerce-product-gallery .rds-product-video .rds-product-video__frame .rds-product-video__poster,
.woocommerce-product-gallery .rds-product-video .rds-product-video__frame .rds-product-video__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}
.rds-product-video .rds-product-video__play { display: grid; place-items: center; background: #111; color: #fff; cursor: pointer; }
.rds-product-video .rds-product-video__poster { object-fit: cover; }
.rds-product-video__play-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	padding-left: 3px;
	border: 1px solid rgb(255 255 255 / 65%);
	border-radius: 50%;
	background: rgb(0 0 0 / 65%);
	font: 20px/1 sans-serif;
	transition: transform .2s, background .2s;
}
.rds-product-video__play:hover .rds-product-video__play-icon { transform: scale(1.07); background: #000; }
.rds-product-video__play:focus-visible { outline: 3px solid var(--e-global-color-primary, #111); outline-offset: -4px; }
.rds-product-video__play[hidden] { display: none; }
.rds-product-video__external { display: inline-block; margin-block: 8px 0; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-product-gallery.rds-product-video-ready .rds-product-video__external { display: none !important; }
.rds-product-video-active > .woocommerce-product-gallery__trigger { visibility: hidden; pointer-events: none; }
.woocommerce-product-gallery .flex-control-thumbs li.rds-product-video-thumb { position: relative; }
.woocommerce-product-gallery .flex-control-thumbs li.rds-product-video-thumb img {
	aspect-ratio: var(--rds-video-ratio, 1.777778);
	object-fit: cover;
	height: auto;
	width: 100%;
}
.woocommerce-product-gallery .rds-product-video-thumb img:focus-visible { outline: 2px solid var(--e-global-color-primary, #111); outline-offset: 2px; }
.rds-product-video-thumb::after {
	content: '▶';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgb(0 0 0 / 70%);
	color: #fff;
	font: 12px/1 sans-serif;
	pointer-events: none;
}
@media (max-width: 767px) {
	.rds-product-video__play-icon { width: 44px; height: 44px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.rds-product-video__play-icon { transition: none; }
}
