.woocommerce div.product div.images.awm-vai-gallery {
	position: relative;
	float: left;
	width: 48%;
	margin-bottom: 2em;
}

.product:has(.awm-vai-gallery) .woocommerce-product-gallery:not(.awm-vai-gallery) {
	display: none;
}

@media (max-width: 768px) {
	.woocommerce div.product div.images.awm-vai-gallery {
		float: none;
		width: 100%;
	}
}

.awm-vai-gallery {
	--awm-vai-accent: #111;
	--awm-vai-muted: #e5e5e5;
}

.awm-vai-main {
	position: relative;
}

.awm-vai-viewport {
	overflow: hidden;
	border-radius: 4px;
	outline: none;
	cursor: grab;
}

.awm-vai-viewport:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--awm-vai-accent);
}

.awm-vai-track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	touch-action: pan-x;
	scrollbar-width: none;
}

.awm-vai-track.is-dragging {
	scroll-behavior: auto;
	scroll-snap-type: none;
	cursor: grabbing;
}

.awm-vai-track::-webkit-scrollbar {
	display: none;
}

.awm-vai-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-width: 0;
}

.awm-vai-slide img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.awm-vai-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
	color: var(--awm-vai-accent);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.awm-vai-arrow:hover,
.awm-vai-arrow:focus-visible {
	background: #fff;
}

.awm-vai-arrow.is-hidden,
.awm-vai-thumbs.is-hidden {
	display: none;
}

.awm-vai-prev {
	left: 10px;
}

.awm-vai-next {
	right: 10px;
}

.awm-vai-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.awm-vai-thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: #fff;
	opacity: 0.55;
	cursor: pointer;
	overflow: hidden;
}

.awm-vai-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.awm-vai-thumb.is-active,
.awm-vai-thumb:hover,
.awm-vai-thumb:focus-visible {
	opacity: 1;
	border-color: var(--awm-vai-accent);
}

@media (max-width: 768px) {
	.awm-vai-arrow {
		width: 34px;
		height: 34px;
		font-size: 15px;
	}

	.awm-vai-thumb {
		width: 56px;
		height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.awm-vai-track {
		scroll-behavior: auto;
	}
}
