.lx-emhb-product-gallery {
	--lx-emhb-gallery-gap: 12px;
	--lx-emhb-gallery-duration: 300ms;
	--lx-emhb-thumb-width: 86px;
	--lx-emhb-thumb-ratio: 1;
	display: flex;
	flex-wrap: wrap;
	gap: var(--lx-emhb-gallery-gap);
	width: 100%;
}

.lx-emhb-product-gallery,
.lx-emhb-product-gallery * {
	box-sizing: border-box;
}

.lx-emhb-product-gallery.is-gallery-position-top {
	flex-direction: column-reverse;
}

.lx-emhb-product-gallery.is-gallery-position-bottom {
	flex-direction: column;
}

.lx-emhb-product-gallery.is-gallery-position-left {
	flex-direction: row-reverse;
	align-items: flex-start;
}

.lx-emhb-product-gallery.is-gallery-position-right {
	flex-direction: row;
	align-items: flex-start;
}

.lx-emhb-product-gallery__main {
	position: relative;
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	background: transparent;
}

.lx-emhb-product-gallery.is-gallery-position-left .lx-emhb-product-gallery__main,
.lx-emhb-product-gallery.is-gallery-position-right .lx-emhb-product-gallery__main {
	flex-basis: calc(100% - var(--lx-emhb-thumb-width) - var(--lx-emhb-gallery-gap));
}

.lx-emhb-product-gallery__main-button {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent !important;
	cursor: zoom-in;
	line-height: 0;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.lx-emhb-product-gallery__main-button:hover,
.lx-emhb-product-gallery__main-button:focus,
.lx-emhb-product-gallery__main-button:active {
	background: transparent !important;
	box-shadow: none;
}

.lx-emhb-product-gallery[data-lightbox="no"] .lx-emhb-product-gallery__main-button {
	cursor: default;
}

.lx-emhb-product-gallery__thumb-img,
.lx-emhb-product-gallery__lightbox-img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
}

.lx-emhb-product-gallery__main-img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	object-fit: cover;
	transition: opacity var(--lx-emhb-gallery-duration) ease, transform var(--lx-emhb-gallery-duration) ease;
}

.lx-emhb-product-gallery.is-switching .lx-emhb-product-gallery__main-img {
	opacity: 0;
	transform: translateX(28px);
}

.lx-emhb-product-gallery.is-switching-back .lx-emhb-product-gallery__main-img {
	opacity: 0;
	transform: translateX(-28px);
}

.lx-emhb-product-gallery__thumbs {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	gap: var(--lx-emhb-gallery-gap);
	width: 100%;
	min-width: 0;
}

.lx-emhb-product-gallery.is-gallery-position-left .lx-emhb-product-gallery__thumbs,
.lx-emhb-product-gallery.is-gallery-position-right .lx-emhb-product-gallery__thumbs {
	flex: 0 0 var(--lx-emhb-thumb-width);
	width: var(--lx-emhb-thumb-width);
	flex-direction: column;
}

.lx-emhb-product-gallery__thumb {
	position: relative;
	display: block;
	flex: 0 0 var(--lx-emhb-thumb-width);
	width: var(--lx-emhb-thumb-width);
	aspect-ratio: var(--lx-emhb-thumb-ratio);
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid transparent;
	background: #fff;
	cursor: pointer;
	transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.lx-emhb-product-gallery__thumb:hover,
.lx-emhb-product-gallery__thumb:focus-visible {
	transform: translateY(-1px);
}

.lx-emhb-product-gallery__thumb:focus-visible,
.lx-emhb-product-gallery__main-button:focus-visible,
.lx-emhb-product-gallery__lightbox-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.lx-emhb-product-gallery__thumb-img {
	object-fit: cover;
}

.lx-emhb-product-gallery__lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(15, 23, 42, 0.92);
}

.lx-emhb-product-gallery__lightbox[hidden] {
	display: none;
}

.lx-emhb-lightbox-open {
	overflow: hidden;
}

.lx-emhb-product-gallery__lightbox-img {
	width: auto;
	max-width: min(100%, 1400px);
	height: auto;
	max-height: 92vh;
	object-fit: contain;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.lx-emhb-product-gallery__lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent !important;
	color: #fff;
	font-family: inherit;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.lx-emhb-product-gallery__lightbox-close:hover,
.lx-emhb-product-gallery__lightbox-close:focus,
.lx-emhb-product-gallery__lightbox-close:active {
	border-color: currentColor;
	background: transparent !important;
	color: #fff;
	text-decoration: none;
	box-shadow: none;
}

.lx-emhb-product-gallery__lightbox-close i,
.lx-emhb-product-gallery__lightbox-close svg {
	display: block;
	width: 1em;
	height: 1em;
	color: currentColor;
	fill: currentColor;
}

.lx-emhb-product-gallery__lightbox-close svg {
	stroke: currentColor;
}

.lx-emhb-product-gallery__empty {
	padding: 18px;
	border: 1px dashed #cbd5e1;
	color: #64748b;
	text-align: center;
}

@media (max-width: 767px) {
	.lx-emhb-product-gallery.is-gallery-position-left,
	.lx-emhb-product-gallery.is-gallery-position-right {
		flex-direction: column;
	}

	.lx-emhb-product-gallery.is-gallery-position-left .lx-emhb-product-gallery__main,
	.lx-emhb-product-gallery.is-gallery-position-right .lx-emhb-product-gallery__main,
	.lx-emhb-product-gallery.is-gallery-position-left .lx-emhb-product-gallery__thumbs,
	.lx-emhb-product-gallery.is-gallery-position-right .lx-emhb-product-gallery__thumbs {
		flex-basis: 100%;
		width: 100%;
	}

	.lx-emhb-product-gallery.is-gallery-position-left .lx-emhb-product-gallery__thumbs,
	.lx-emhb-product-gallery.is-gallery-position-right .lx-emhb-product-gallery__thumbs {
		flex-direction: row;
	}
}
