.woocommerce div.product div.images.vp-product-gallery,
.woocommerce div.product div.images.vp-woocommerce-gallery-adapted {
	opacity: 1 !important;
	margin-bottom: 32px;
}

.vp-product-gallery,
.vp-woocommerce-gallery-adapted,
.vp-product-gallery *,
.vp-woocommerce-gallery-adapted * {
	box-sizing: border-box;
}

.vp-product-gallery,
.vp-woocommerce-gallery-adapted {
	--vp-gallery-gap: 12px;
	--vp-gallery-radius: 0px;
	--vp-gallery-bg: #f7f7f7;
	position: relative;
	width: 100%;
	max-width: 100%;
}

.vp-product-gallery__viewport {
	position: relative;
	width: 100%;
}

.vp-product-gallery__track {
	width: 100%;
}

.vp-product-gallery__item {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--vp-gallery-radius);
	background: var(--vp-gallery-bg);
	appearance: none;
	cursor: zoom-in;
	line-height: 0;
	text-align: inherit;
	overflow: hidden;
}

.vp-product-gallery__image,
.vp-product-gallery__video,
.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image img,
.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image video {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
}

.vp-product-gallery__video,
.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image video {
	background: #000;
}

.vp-product-gallery__item--video,
.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image[data-vp-media-type="video"],
.vp-woocommerce-gallery-adapted .vp-product-gallery__media--video {
	cursor: default;
}

.vp-product-gallery__item--video {
	line-height: 0;
}

.vp-product-gallery__mobile-ui,
.vp-product-gallery__arrow {
	display: none;
}

.vp-product-gallery__item:focus-visible,
.vp-product-gallery__video:focus-visible,
.vp-product-gallery__dot:focus-visible,
.vp-product-gallery__arrow:focus-visible,
.vp-product-lightbox button:focus-visible,
.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Fallback mode for themes that still output the standard WooCommerce/FlexSlider HTML. */
.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__trigger,
.vp-woocommerce-gallery-adapted .flex-control-nav,
.vp-woocommerce-gallery-adapted .flex-control-thumbs {
	display: none !important;
}

.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image,
.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image a {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	line-height: 0;
	background: var(--vp-gallery-bg);
	border-radius: var(--vp-gallery-radius);
	overflow: hidden;
	cursor: zoom-in;
}

.vp-product-gallery--hidden-duplicate {
	display: none !important;
}

/* Desktop: all product images as a clean two-column gallery. */
@media (min-width: 1025px) {
	.vp-product-gallery__track {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--vp-gallery-gap);
	}

	.vp-product-gallery__item {
		min-width: 0;
	}

	.vp-product-gallery--single-image .vp-product-gallery__item,
	.vp-product-gallery__track > .vp-product-gallery__item:only-child {
		grid-column: 1 / -1;
		width: 100% !important;
	}

	.vp-woocommerce-gallery-adapted .flex-viewport {
		overflow: visible !important;
		height: auto !important;
		position: static !important;
		transition: none !important;
	}

	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__wrapper {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: var(--vp-gallery-gap) !important;
		width: auto !important;
		height: auto !important;
		transform: none !important;
		transition: none !important;
		margin: 0 !important;
	}

	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image {
		float: none !important;
		display: block !important;
		width: auto !important;
		height: auto !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

	.vp-woocommerce-gallery-adapted--single-image .woocommerce-product-gallery__image,
	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child {
		grid-column: 1 / -1;
		width: 100% !important;
	}
}

/* Phone and tablet: one image at a time, swipe left/right. */
@media (max-width: 1024px) {
	.woocommerce div.product div.images.vp-product-gallery,
	.woocommerce div.product div.images.vp-woocommerce-gallery-adapted {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 20px;
	}

	.vp-product-gallery__viewport {
		overflow: hidden;
		width: 100%;
	}

	.vp-product-gallery__track {
		display: flex;
		gap: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		touch-action: pan-x pan-y;
	}

	.vp-product-gallery__track::-webkit-scrollbar {
		display: none;
	}

	.vp-product-gallery__item {
		flex: 0 0 100%;
		min-width: 100%;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.vp-product-gallery__mobile-ui,
	.vp-woocommerce-gallery-adapted .vp-product-gallery__mobile-ui {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
		margin-top: 10px;
	}

	.vp-product-gallery__arrow {
		position: absolute;
		top: 50%;
		z-index: 5;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.88);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
		color: #111;
		cursor: pointer;
		font-size: 34px;
		line-height: 1;
		transform: translateY(-50%);
	}

	.vp-product-gallery__arrow--prev {
		left: 8px;
	}

	.vp-product-gallery__arrow--next {
		right: 8px;
	}

	.vp-product-gallery__arrow[hidden] {
		display: none !important;
	}

	.vp-product-gallery__item,
	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image a {
		cursor: grab;
	}

	.vp-product-gallery__item--video,
	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image[data-vp-media-type="video"],
	.vp-woocommerce-gallery-adapted .vp-product-gallery__media--video {
		cursor: default;
	}

	.vp-product-gallery__counter {
		border-radius: 999px;
		padding: 4px 10px;
		background: rgba(0, 0, 0, 0.06);
		font-size: 13px;
		line-height: 1.4;
	}

	.vp-product-gallery__dots {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
	}

	.vp-product-gallery__dot {
		display: block;
		width: 7px;
		height: 7px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: currentColor;
		opacity: 0.28;
		cursor: pointer;
	}

	.vp-product-gallery__dot.is-active {
		opacity: 0.9;
	}

	.vp-woocommerce-gallery-adapted .flex-viewport {
		overflow-x: auto !important;
		overflow-y: hidden !important;
		height: auto !important;
		position: relative !important;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		touch-action: pan-x pan-y;
	}

	.vp-woocommerce-gallery-adapted .flex-viewport::-webkit-scrollbar,
	.vp-woocommerce-gallery-adapted--wrapper-scroll .woocommerce-product-gallery__wrapper::-webkit-scrollbar {
		display: none;
	}

	.vp-woocommerce-gallery-adapted--wrapper-scroll .woocommerce-product-gallery__wrapper {
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		touch-action: pan-x pan-y;
	}

	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__wrapper {
		display: flex !important;
		gap: 0 !important;
		width: auto !important;
		height: auto !important;
		transform: none !important;
		transition: none !important;
		margin: 0 !important;
	}

	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image {
		float: none !important;
		display: block !important;
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 100% !important;
		height: auto !important;
		margin: 0 !important;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
}

.vp-product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.vp-product-lightbox.is-open {
	display: flex;
}

.vp-product-lightbox__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: rgba(0, 0, 0, 0.82);
	cursor: zoom-out;
}

.vp-product-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(94vw, 1100px);
	height: min(90vh, 900px);
}

.vp-product-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.vp-product-lightbox__close,
.vp-product-lightbox__prev,
.vp-product-lightbox__next {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	cursor: pointer;
	line-height: 1;
}

.vp-product-lightbox__close {
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	font-size: 30px;
}

.vp-product-lightbox__prev,
.vp-product-lightbox__next {
	top: 50%;
	width: 48px;
	height: 48px;
	font-size: 42px;
	transform: translateY(-50%);
}

.vp-product-lightbox__prev {
	left: 0;
}

.vp-product-lightbox__next {
	right: 0;
}

.vp-product-lightbox__counter {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 2;
	transform: translateX(-50%);
	border-radius: 999px;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 14px;
}

body.vp-product-lightbox-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.vp-product-lightbox {
		padding: 14px;
	}

	.vp-product-lightbox__prev,
	.vp-product-lightbox__next {
		width: 42px;
		height: 42px;
	}
}

/* v1.6: mobile pinch zoom support and full-size gallery image rendering. */
@media (max-width: 1024px) {
	.vp-product-gallery__item--image,
	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image[data-vp-media-type="image"] {
		overflow: hidden;
		-webkit-user-select: none;
		user-select: none;
	}

	.vp-product-gallery__image,
	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image img {
		-webkit-user-drag: none;
		user-select: none;
		transform-origin: center center;
		will-change: transform;
	}

	.vp-product-gallery__item--image.is-vp-zooming,
	.vp-product-gallery__item--image.is-vp-zoomed,
	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image.is-vp-zooming,
	.vp-woocommerce-gallery-adapted .woocommerce-product-gallery__image.is-vp-zoomed {
		cursor: move;
		z-index: 6;
		touch-action: none;
	}

	.vp-product-gallery__track--zoom-active {
		scroll-snap-type: none !important;
		scroll-behavior: auto !important;
	}
}

