.woocommerce div.product div.images.wg-gallery,
.woocommerce-page div.product div.images.wg-gallery {
	float: left;
	width: 48%;
	margin-bottom: 2em;
}

.wg-gallery {
	position: relative;
	max-width: 100%;
	-webkit-user-select: none;
	user-select: none;
}

.wg-viewport {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #f4f4f5;
	cursor: grab;
	touch-action: pan-y;
	transition: height 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wg-gallery.is-single .wg-viewport {
	cursor: default;
}

.wg-viewport.is-dragging {
	cursor: grabbing;
}

.wg-track {
	display: flex;
	align-items: flex-start;
	will-change: transform;
	transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wg-viewport.is-dragging .wg-track {
	transition: none;
}

.wg-slide {
	flex: 0 0 100%;
	min-width: 0;
	align-self: flex-start;
}

.woocommerce div.product div.images.wg-gallery .wg-slide img,
.wg-slide img.wg-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: none;
	pointer-events: none;
}

.woocommerce div.product .wg-gallery .woocommerce-product-gallery__trigger {
	display: none !important;
}

.woocommerce div.product div.images.wg-gallery button.wg-arrow,
.woocommerce div.product div.images.wg-gallery button.wg-arrow:hover,
.woocommerce div.product div.images.wg-gallery button.wg-arrow:focus,
.woocommerce div.product div.images.wg-gallery button.wg-arrow:focus-visible,
.woocommerce div.product div.images.wg-gallery button.wg-arrow:active {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 999px;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	color: #1c1c1c !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
	text-shadow: none;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.woocommerce div.product div.images.wg-gallery button.wg-arrow:hover,
.woocommerce div.product div.images.wg-gallery button.wg-arrow:focus,
.woocommerce div.product div.images.wg-gallery button.wg-arrow:focus-visible {
	background: #f4f4f5 !important;
	background-color: #f4f4f5 !important;
	background-image: none !important;
	color: #1c1c1c !important;
}

.woocommerce div.product div.images.wg-gallery button.wg-arrow:active {
	background: #e7e7e7 !important;
	background-color: #e7e7e7 !important;
	background-image: none !important;
	color: #1c1c1c !important;
}

.wg-arrow svg,
.wg-arrow svg path {
	display: block;
	color: #1c1c1c;
	stroke: #1c1c1c;
	fill: none;
}

.wg-prev {
	left: 12px;
}

.wg-next {
	right: 12px;
}

.wg-arrow:hover {
	transform: translateY(-50%) scale(1.04);
}

.wg-arrow:focus-visible,
.wg-thumb:focus-visible {
	outline: 2px solid #1c1c1c;
	outline-offset: 2px;
}

.wg-count {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.55);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	pointer-events: none;
}

.wg-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

.wg-thumb {
	position: relative;
	flex: 0 0 68px;
	width: 68px;
	aspect-ratio: 1 / 1;
	height: auto;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: #f4f4f5;
	cursor: pointer;
	box-sizing: border-box;
}

.wg-thumb.is-active {
	border-color: #1c1c1c;
}

.woocommerce div.product div.images.wg-gallery .wg-thumb img,
.wg-thumb img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.wg-live {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 768px) {
	.woocommerce div.product div.images.wg-gallery,
	.woocommerce-page div.product div.images.wg-gallery {
		float: none;
		width: 100%;
	}

	.wg-arrow {
		width: 36px;
		height: 36px;
	}

	.wg-thumb {
		flex-basis: 58px;
		width: 58px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wg-viewport,
	.wg-track,
	.wg-arrow,
	.wg-thumbs {
		transition: none;
		scroll-behavior: auto;
	}
}
