.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 20px;
	inset-inline-end: 20px;
	z-index: 9;
	width: 39px;
	height: 39px;
	text-indent: -9999px;
	border-radius: 100%;
	color: var(--lightbox-button-icon-color, var(--theme-text-color));
	background: var(--lightbox-button-background-color, #fff);

	&:hover {
		color: var(--lightbox-button-icon-hover-color, #fff);
		background: var(--lightbox-button-hover-background-color, var(--theme-palette-color-1));
	}

	&:before {
		position: absolute;
		inset: 0;
		content: '';
		background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 39 39'%3E%3Cpath d='M27.1,26.5l-0.6-0.6c0,0,0,0,0,0l-1.6-1.6c1.1-1.2,1.8-2.8,1.9-4.5c0.3-4.1-2.8-7.8-6.9-8.1c-4.1-0.3-7.8,2.8-8.1,6.9 c-0.3,4.1,2.8,7.8,6.9,8.1c1.7,0.1,3.3-0.3,4.7-1.2l1.7,1.6c0,0,0,0,0,0l0.6,0.6c0.2,0.2,0.4,0.3,0.6,0.3c0,0,0,0,0.1,0 c0.3,0,0.5-0.1,0.6-0.3c0.2-0.2,0.3-0.4,0.3-0.6C27.4,26.9,27.3,26.7,27.1,26.5z M23,23.5c-1.1,1-2.6,1.5-4.1,1.4 c-1.5-0.1-2.9-0.8-3.9-2c-1-1.1-1.5-2.6-1.4-4.1c0.1-1.5,0.8-2.9,2-3.9c1-0.9,2.3-1.4,3.7-1.4c0.1,0,0.3,0,0.4,0 c1.5,0.1,2.9,0.8,3.9,2c1,1.1,1.5,2.6,1.4,4.1C24.9,21.2,24.2,22.5,23,23.5z'/%3E%3C/svg%3E");
	}
}

// popup
.woocommerce .pswp__bg, 
.woocommerce-page .pswp__bg {
	opacity: 0.7 !important;
}

// video in popup
.ct-lightbox-video-container {
	position: absolute;
	top: 50%;
	inset-inline: 10%;
	margin: auto;
	max-width: 150vh;
	aspect-ratio: 16/9;
	transform: translateY(-50%);

	video, iframe {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		background: #000;
	}
}