/* TankX Product Video — video slide inside the WooCommerce gallery */

.tankx-video-slide {
	position: relative;
}

.tankx-video {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	overflow: hidden;
	background: #000;
}

.tankx-video__poster {
	position: absolute;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.tankx-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 74px;
	height: 74px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.tankx-video__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent #fff;
}

.tankx-video__play:hover,
.tankx-video__play:focus {
	background: #c8102e;
	transform: translate(-50%, -50%) scale(1.06);
	outline: none;
}

.tankx-video iframe,
.tankx-video video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #000;
}

/* Play badge on the matching thumbnail in the gallery nav */
.woocommerce-product-gallery .flex-control-thumbs li.tankx-nav-video {
	position: relative;
}

.woocommerce-product-gallery .flex-control-thumbs li.tankx-nav-video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 14px;
	border-color: transparent transparent transparent #fff;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, .9));
	pointer-events: none;
}

.woocommerce-product-gallery .flex-control-thumbs li.tankx-nav-video::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	pointer-events: none;
}
