.elementor-widget-bcom-product-gallery {
	width: 100%;
}

.bcom-pg {
	--bcom-pg-thumb: 84px;
	--bcom-pg-gap: 12px;
	--bcom-pg-radius: var(--bcom-radius-md);
	--bcom-pg-bg: var(--bcom-media-plate);
	--bcom-pg-zoom: 2;
	--bcom-pg-ratio: 1/1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bcom-pg-gap);
	min-width: 0;
	font-family: var(--bcom-font);
}

.bcom-pg *,
.bcom-pg *::before,
.bcom-pg *::after {
	box-sizing: border-box;
}

.bcom-pg__main {
	position: relative;
	min-width: 0;
	border: 1px solid var(--bcom-line);
	border-radius: var(--bcom-pg-radius);
	background: var(--bcom-pg-bg);
	overflow: hidden;
}

.bcom-pg__track {
	position: relative;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	outline: none;
}

.bcom-pg__track::-webkit-scrollbar {
	display: none;
}

.bcom-pg__slide {
	position: relative;
	box-sizing: content-box;
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
	padding-block-end: var(--bcom-pg-extra-h, 10px);
	aspect-ratio: var(--bcom-pg-ratio);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.bcom-pg__open {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: zoom-in;
	overflow: hidden;
}

.bcom-pg__open:focus-visible {
	outline: none;
	box-shadow: none;
}

.bcom-pg__open:focus-visible::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: calc(var(--bcom-pg-radius) - 1px);
	box-shadow: inset 0 0 0 2px var(--bcom-white), inset 0 0 0 4px var(--bcom-ink);
	pointer-events: none;
}

.bcom-pg__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: clamp(8px, 3%, 24px);
	background: var(--bcom-pg-bg);
	filter: var(--bcom-media-filter);
}

.bcom-pg:not(.is-loaded) .bcom-pg__slide:not(:first-child) .bcom-pg__media {
	content-visibility: auto;
}

.bcom-pg__media picture {
	display: contents;
}

.bcom-pg__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.bcom-pg__zoom {
	position: absolute;
	inset: 0;
	background-color: var(--bcom-pg-bg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	filter: var(--bcom-media-filter);
	opacity: 0;
	transform: scale(var(--bcom-pg-zoom));
	transform-origin: var(--bcom-pg-zx, 50%) var(--bcom-pg-zy, 50%);
	transition: opacity var(--bcom-dur-fast) cubic-bezier(0.23, 1, 0.32, 1);
	pointer-events: none;
}

.bcom-pg__slide.is-zooming .bcom-pg__zoom {
	opacity: 1;
}

.bcom-pg__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: var(--bcom-space-1);
	max-width: calc(100% - 24px);
	pointer-events: none;
}

.bcom-pg__badges a {
	pointer-events: auto;
}

.bcom-pg__badges .product-attribute-tag {
	position: static;
}

.bcom-pg__dots {
	position: absolute;
	right: 0;
	bottom: 10px;
	left: 0;
	z-index: 2;
	display: none;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}

.bcom-pg__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bcom-line-strong);
	opacity: 0.55;
	transition: opacity var(--bcom-duration) cubic-bezier(0.23, 1, 0.32, 1), transform var(--bcom-duration) cubic-bezier(0.23, 1, 0.32, 1), background-color var(--bcom-duration) cubic-bezier(0.23, 1, 0.32, 1);
}

.bcom-pg__dot.is-active {
	background: var(--bcom-fill-brand);
	opacity: 1;
	transform: scale(1.25);
}

.bcom-pg__thumbs-wrap {
	position: relative;
	min-width: 0;
}

.bcom-pg__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.bcom-pg__thumb {
	flex: 0 0 var(--bcom-pg-thumb);
	width: var(--bcom-pg-thumb);
	height: var(--bcom-pg-thumb);
	margin: 0;
	padding: 4px;
	border: 1px solid var(--bcom-line);
	border-radius: var(--bcom-radius-sm);
	background: var(--bcom-media-plate);
	filter: var(--bcom-media-filter);
	cursor: pointer;
	opacity: 0.7;
	scroll-snap-align: start;
	transition: opacity var(--bcom-dur-fast) cubic-bezier(0.23, 1, 0.32, 1), border-color var(--bcom-dur-fast) cubic-bezier(0.23, 1, 0.32, 1), box-shadow var(--bcom-dur-fast) cubic-bezier(0.23, 1, 0.32, 1), transform var(--bcom-dur-fast) cubic-bezier(0.23, 1, 0.32, 1);
}

.bcom-pg__thumb:active {
	transform: scale(calc(1 - 0.03 * var(--bcom-motion, 1)));
}

.bcom-pg__thumb.is-active {
	border-color: var(--bcom-fg-brand);
	box-shadow: inset 0 0 0 1px var(--bcom-fg-brand);
	opacity: 1;
}

.bcom-pg__thumb:focus-visible {
	outline: 2px solid var(--bcom-focus);
	outline-offset: 2px;
	box-shadow: none;
	opacity: 1;
}

.bcom-pg__thumb picture {
	display: contents;
}

.bcom-pg__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bcom-pg__dialog {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--bcom-bg);
	color: var(--bcom-fg);
	overflow: hidden;
}

.bcom-pg__dialog[open] {
	animation: bcom-pg-fade var(--bcom-duration) var(--bcom-ease-out);
}

.bcom-pg__dialog::backdrop {
	background: var(--bcom-overlay);
}

html:has(.bcom-pg__dialog[open]) {
	overflow: hidden;
}

.bcom-pg__lb {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	height: 100%;
}

.bcom-pg__lb-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bcom-space-3);
	padding: var(--bcom-space-3) var(--bcom-space-4);
	border-bottom: 1px solid var(--bcom-line);
}

.bcom-pg__lb-count {
	color: var(--bcom-muted);
	font-size: var(--bcom-fs-sm);
	font-weight: var(--bcom-fw-semibold);
	font-variant-numeric: tabular-nums;
}

.bcom-pg__lb-close {
	border: 1px solid var(--bcom-line);
}

.bcom-pg__lb-track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	touch-action: pan-x pinch-zoom;
	outline: none;
}

.bcom-pg__lb-track::-webkit-scrollbar {
	display: none;
}

.bcom-pg__lb-slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: var(--bcom-space-4);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.bcom-pg__lb-slide picture {
	display: contents;
}

.bcom-pg__lb-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	background: var(--bcom-media-plate);
	filter: var(--bcom-media-filter);
}

.bcom-pg__lb-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	border: 1px solid var(--bcom-line);
	box-shadow: var(--bcom-shadow-sm);
	transform: translateY(-50%);
}

.bcom-pg__lb-nav--prev {
	left: var(--bcom-space-4);
}

.bcom-pg__lb-nav--next {
	right: var(--bcom-space-4);
}

.bcom-pg__lb-nav:disabled {
	opacity: 0.4;
}

@keyframes bcom-pg-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (hover: hover) and (pointer: fine) {
	.bcom-pg__thumb:hover {
		border-color: var(--bcom-fg-brand);
		opacity: 1;
	}

	.bcom-pg__open:hover .bcom-pg__media {
		cursor: zoom-in;
	}
}

@media (min-width: 1024px) {
	.bcom-pg--thumbs-left.bcom-pg--multi {
		grid-template-columns: var(--bcom-pg-thumb) minmax(0, 1fr);
	}

	.bcom-pg--thumbs-left.bcom-pg--multi .bcom-pg__main {
		grid-column: 2;
		grid-row: 1;
	}

	.bcom-pg--thumbs-left .bcom-pg__thumbs-wrap {
		grid-column: 1;
		grid-row: 1;
	}

	.bcom-pg--thumbs-left .bcom-pg__thumbs {
		position: absolute;
		inset: 0;
		flex-direction: column;
		overflow-x: hidden;
		overflow-y: auto;
		scroll-snap-type: y proximity;
	}

	.bcom-pg--thumbs-left .bcom-pg__thumb {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}
}

@media (max-width: 1023px) {
	.bcom-pg--dots .bcom-pg__dots {
		display: flex;
	}

	.bcom-pg--no-mobile-thumbs .bcom-pg__thumbs-wrap {
		display: none;
	}

	.bcom-pg {
		--bcom-pg-thumb: 64px;
	}

	.bcom-pg__lb-nav {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.bcom-pg {
		max-inline-size: 560px;
		margin-inline: auto;
	}
}
