/* Show thumbnails: off hides the carousel's thumbnail rail. */
.wp-block-storeengine-product-gallery.storeengine-product-gallery--no-thumbs .storeengine-gallery__thumbs {
	display: none;
}

/* Zoom off: images are not clickable. */
.wp-block-storeengine-product-gallery[data-storeengine-zoom="off"] .storeengine-gallery__stage-img,
.wp-block-storeengine-product-gallery[data-storeengine-zoom="off"] .storeengine-gallery__item:not(.storeengine-gallery__item--video) {
	cursor: default;
}

/* Editor preview (the gallery script does not run there). */
.wp-block-storeengine-product-gallery .storeengine-product-gallery__preview {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wp-block-storeengine-product-gallery .storeengine-product-gallery__preview-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--storeengine-product-image-ratio, 1 / 1);
	object-fit: cover;
	border-radius: var(--se-shop-radius, 8px);
}

.wp-block-storeengine-product-gallery .storeengine-product-gallery__preview-stage {
	position: relative;
}

.wp-block-storeengine-product-gallery .storeengine-product-gallery__preview-zoom {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
}

.wp-block-storeengine-product-gallery .storeengine-product-gallery__preview-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.wp-block-storeengine-product-gallery .storeengine-product-gallery__preview-list {
	display: grid;
	gap: 10px;
}

.wp-block-storeengine-product-gallery.storeengine-product-gallery--grid .storeengine-product-gallery__preview-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
