/* Server-visible image: no slider initialization, fade, zoom or animation. */
.woocommerce div.product .images.afv-ui-product-gallery {
	display: block;
	opacity: 1;
	min-width: 0;
	box-sizing: border-box;
}

.woocommerce div.product .images.afv-ui-product-gallery--shortcode,
.elementor-widget-woocommerce-product-images .images.afv-ui-product-gallery {
	float: none;
	width: 100%;
	margin: 0;
}

.afv-ui-product-gallery .afv-ui-product-gallery__stage {
	width: 100%;
	overflow: hidden;
}

.afv-ui-product-gallery .afv-ui-product-gallery__main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	cursor: default;
}

.woocommerce div.product .afv-ui-product-gallery .afv-ui-product-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	margin: 0;
	opacity: 1;
	animation: none;
	transition: none;
}

.afv-ui-product-gallery .afv-ui-product-gallery__thumbnails {
	display: flex;
	gap: 8px;
	width: 100%;
	margin-top: 12px;
	padding: 4px;
	box-sizing: border-box;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
}

.afv-ui-product-gallery .afv-ui-product-gallery__thumbnail {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	box-sizing: border-box;
	border: 2px solid #d5d5d5;
	border-radius: 0;
	background: #fff;
	padding: 2px;
	text-decoration: none;
}

.afv-ui-product-gallery .afv-ui-product-gallery__thumbnail[aria-current="true"] {
	border-color: #222;
}

.afv-ui-product-gallery .afv-ui-product-gallery__thumbnail:focus-visible {
	outline: 3px solid #005fcc;
	outline-offset: 1px;
}

.woocommerce div.product .afv-ui-product-gallery .afv-ui-product-gallery__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
}

.afv-ui-product-gallery__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (min-width: 768px) {
	.woocommerce div.product .images.afv-ui-product-gallery--native.afv-ui-product-gallery--storefront {
		float: left;
		width: 41.1764705882%;
		margin-right: 5.8823529412%;
	}

	.woocommerce .elementor-widget-woocommerce-product-images div.product .images.afv-ui-product-gallery,
	.woocommerce div.product .elementor-widget-woocommerce-product-images .images.afv-ui-product-gallery {
		float: none;
		width: 100%;
		margin: 0;
	}
}
