/* Optional video item in the WooSwipe gallery. */
#wooswipe .mg-product-video-thumb {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 112 / 100;
	overflow: hidden;
	background: #f6f6f6;
	border-radius: 4px;
	box-sizing: border-box;
}

#wooswipe .mg-product-video-thumb > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#wooswipe .mg-product-video-thumb__fallback {
	display: block;
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #f8f8f8 0%, #e9e9e9 100%);
}

#wooswipe .mg-product-video-thumb__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	padding-left: 2px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #be1a1a;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	box-shadow: 0 1px 5px rgb(0 0 0 / 28%);
}

#wooswipe .thumbnail-nav .mg-product-video-thumb {
	cursor: pointer;
}

#wooswipe .mg-product-video-viewer,
#wooswipe .mg-product-video-slide {
	width: 100%;
	max-width: 100%;
	background: #fff;
}

#wooswipe .mg-product-video-viewer {
	display: none;
}

#wooswipe.mg-video-active .woocommerce-product-gallery__image.single-product-main-image {
	display: none !important;
}

#wooswipe.mg-video-active .mg-product-video-viewer {
	display: grid;
}

#wooswipe .mg-product-video-frame {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
}

#wooswipe .mg-product-video-player {
	display: block;
	flex: 0 1 auto;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	border: 0;
	object-fit: contain;
}

#wooswipe iframe.mg-product-video-player {
	width: 100%;
	aspect-ratio: 16 / 9;
}

#wooswipe .mg-product-video-open {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(0 0 0 / 65%);
	color: #fff;
	cursor: pointer;
}

#wooswipe .mg-product-video-open:hover,
#wooswipe .mg-product-video-open:focus-visible {
	background: #be1a1a;
	color: #fff;
}

#wooswipe .mg-product-video-open svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.pswp .mg-product-video-lightbox {
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pswp .mg-product-video-lightbox .mg-product-video-player {
	display: block;
	width: auto;
	height: auto;
	max-width: min(100vw, 1200px);
	max-height: calc(100vh - 110px);
	border: 0;
	object-fit: contain;
}

.pswp .mg-product-video-lightbox iframe.mg-product-video-player {
	width: min(100vw, 1200px);
	aspect-ratio: 16 / 9;
}

#wooswipe .mg-product-video-slide {
	height: 100%;
}
