.chim { margin: 0 0 1.5em; }

/* .chim-col takes over the gallery's column (Storefront full-width: 39.13% + 4.35% gutter). */
@media (min-width: 768px) {
	.single-product div.product .chim-col {
		float: left; width: 39.1304347826%; margin-right: 4.347826087%; margin-bottom: 3.706325903em;
	}
	/* body + element selector to outrank Storefront's .storefront-full-width-content.single-product div.product .woocommerce-product-gallery */
	body.single-product div.product .chim-col .woocommerce-product-gallery {
		float: none; width: 100%; margin-right: 0; margin-bottom: 1em;
	}
	body.single-product div.product .chim-col .chim { margin-bottom: 0; }
}
.chim-trigger {
	display: inline-flex; align-items: center; gap: .75em;
	padding: .4em .9em .4em .4em; background: transparent; color: inherit;
	border: 1px solid rgba(0,0,0,.15); border-radius: 6px; cursor: pointer; font: inherit;
}
.chim-trigger:hover, .chim-trigger:focus-visible { border-color: currentColor; background: rgba(0,0,0,.03); }
.chim-poster { position: relative; display: block; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: #ddd; flex: none; }
.chim-poster img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.chim-play {
	position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%;
	background: rgba(0,0,0,.6);
}
.chim-play::after {
	content: ""; position: absolute; left: 11px; top: 8px;
	border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff;
}
.chim-label { font-weight: 600; }

.chim-dialog {
	padding: 0; border: 0; background: #000; max-width: min(92vw, 720px); width: 100%;
	border-radius: 6px; overflow: hidden;
}
.chim-dialog::backdrop { background: rgba(0,0,0,.75); }
.chim-dialog video { display: block; width: 100%; max-height: 85vh; background: #000; border-radius: 6px; }
/* Overlaid inside the player's top-right corner, so it can never sit off-screen. */
.chim-close {
	position: absolute; top: 8px; right: 8px; z-index: 1;
	width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(0,0,0,.6); color: #fff; font-size: 24px; line-height: 36px; text-align: center; cursor: pointer;
}
.chim-close:hover, .chim-close:focus-visible { background: rgba(0,0,0,.85); }
