.mlk-product-gallery-shortcode {
	--mlk-gallery-columns: 5;
	display: grid;
	gap: 10px;
	position: sticky;
	top: 24px;
	border: none;
}

.mlk-product-gallery-shortcode__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 10px;
	position: relative;
	isolation: isolate;
}

.mlk-product-gallery-shortcode__main-link {
	display: flex;
	width: 100%;
	height: 100%;
	grid-column: 1;
	grid-row: 1;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--mlk-featured-border-radius, 18px);
	background: var(--mlk-featured-background, var(--paper-deep, #f1eee9));
	border-style: solid;
	border-width: var(--mlk-featured-border-width, 0px);
	border-color: var(--mlk-featured-border-color, transparent);
}

.mlk-product-gallery-nav {
	grid-column: 1;
	grid-row: 1;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	border: var(--mlk-gallery-arrow-border-width, 1px) solid var(--mlk-gallery-arrow-border-color, rgba(255, 255, 255, 0.92));
	border-radius: var(--mlk-gallery-arrow-border-radius, 999px);
	background: var(--mlk-gallery-arrow-background, #958d09);
	color: var(--mlk-gallery-arrow-color, #fff);
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: var(--mlk-gallery-arrow-icon-size, 34px);
	line-height: 1;
	font-family: Arial, sans-serif;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	z-index: 3;
	align-self: center;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
	transition:
		scale var(--ease, 0.22s ease),
		background var(--ease, 0.22s ease),
		box-shadow var(--ease, 0.22s ease);
	appearance: none;
	-webkit-appearance: none;
}

.mlk-product-gallery-gallery-arrow {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.elementor .mlk-product-gallery-shortcode .mlk-product-gallery-gallery-arrow {
	border-width: var(--mlk-gallery-arrow-border-width, 1px);
	border-color: var(--mlk-gallery-arrow-border-color, rgba(255, 255, 255, 0.92));
	border-radius: var(--mlk-gallery-arrow-border-radius, 999px);
	border-style: solid;
	background: var(--mlk-gallery-arrow-background, #958d09);
	color: var(--mlk-gallery-arrow-color, #fff);
	font-size: var(--mlk-gallery-arrow-icon-size, 34px);
}

.elementor .mlk-product-gallery-shortcode .mlk-product-gallery-featured {
	border-radius: var(--mlk-featured-border-radius, 18px);
	border-width: var(--mlk-featured-border-width, 0px);
	border-color: var(--mlk-featured-border-color, transparent);
	border-style: solid;
	background-color: var(--mlk-featured-background, #f1eee9);
}

.mlk-product-gallery-nav:hover {
	background: #111;
	scale: 1.03;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.mlk-product-gallery-nav span,
.mlk-product-lightbox-nav span {
	display: block;
	color: inherit;
	line-height: 1;
	transform: translateY(-1px);
}

.mlk-product-gallery-nav--prev {
	justify-self: start;
	margin-left: 5px;
}

.mlk-product-gallery-nav--next {
	justify-self: end;
	margin-right: 5px;
}

.mlk-product-gallery-shortcode__main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.28s ease;
	cursor: zoom-in;
	background: var(--paper-deep, #f1eee9);
	mix-blend-mode: multiply;
}

.mlk-product-gallery-shortcode__thumbs {
	display: grid;
	grid-template-columns: repeat(var(--mlk-gallery-columns), minmax(0, 1fr));
	gap: 8px;
	grid-column: 1;
	grid-row: 2;
}

.mlk-product-gallery-shortcode__thumb {
	display: block;
	border-radius: var(--mlk-thumb-border-radius, 10px);
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--mlk-thumb-background, var(--paper-deep, #f1eee9));
	cursor: pointer;
	border: var(--mlk-thumb-border-width, 2px) solid var(--mlk-thumb-border-color, transparent);
	transition:
		border-color var(--ease, 0.22s ease),
		transform var(--ease, 0.22s ease);
	isolation: isolate;
}

.mlk-product-gallery-shortcode__thumb:hover {
	transform: translateY(-1px);
}

:where(.mlk-product-gallery-shortcode__thumb).active {
	border-color: var(--mlk-thumb-active-border-color, var(--accent, #958d09));
}

.mlk-product-gallery-shortcode__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: none;
	mix-blend-mode: multiply;
}

.mlk-product-gallery-shortcode--placeholder {
	position: static;
	min-height: 260px;
	padding: 20px;
	border: 1px dashed rgba(149, 141, 9, 0.36);
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(149, 141, 9, 0.08), rgba(17, 17, 17, 0.03)),
		#fbfaf7;
}

.mlk-product-gallery-shortcode__placeholder {
	display: grid;
	place-items: start;
	align-content: center;
	gap: 10px;
	min-height: 220px;
	color: #2f2b27;
}

.mlk-product-gallery-shortcode__placeholder strong {
	font-size: 1rem;
	line-height: 1.3;
}

.mlk-product-gallery-shortcode__placeholder p {
	margin: 0;
	max-width: 40ch;
	font-size: 0.92rem;
	line-height: 1.7;
	color: #6b6451;
}

@media (max-width: 820px) {
	.mlk-product-gallery-shortcode {
		position: static;
	}
}

@media (max-width: 600px) {
	.mlk-product-gallery-shortcode {
		--mlk-gallery-columns: 4;
	}
}

:where(.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"]) .elementor-swiper-button {
	width: 52px;
	height: 52px;
	font-size: var(--mlk-lightbox-arrow-icon-size, 20px);
	line-height: 1;
	border-radius: var(--mlk-lightbox-arrow-border-radius, 999px);
	background: var(--mlk-lightbox-arrow-background, rgba(28, 25, 23, 0.72));
	border: var(--mlk-lightbox-arrow-border-width, 1px) solid var(--mlk-lightbox-arrow-border-color, rgba(255, 255, 255, 0.18));
	backdrop-filter: blur(8px);
	color: var(--mlk-lightbox-arrow-color, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition:
		transform var(--ease, 0.22s ease),
		background var(--ease, 0.22s ease),
		border-color var(--ease, 0.22s ease);
}

:where(.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"]) .elementor-swiper-button:hover {
	transform: translateY(-1px);
	background: rgba(28, 25, 23, 0.88);
	border-color: rgba(255, 255, 255, 0.3);
}

:where(.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"]) .elementor-swiper-button svg {
	width: var(--mlk-lightbox-arrow-icon-size, 40px);
	height: var(--mlk-lightbox-arrow-icon-size, 40px);
	fill: currentColor;
}

:where(.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"]) .elementor-slideshow__footer {
	display: grid;
	gap: 14px;
	padding-bottom: 18px;
}

.mlk-product-lightbox-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(64px, 64px));
	gap: 10px;
	justify-content: center;
	padding: 0 16px;
	position: relative;
	z-index: 10;
	pointer-events: auto;
}

:where(.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"]) .dialog-widget-content {
	background: var(--mlk-lightbox-frame-background, rgba(12, 13, 14, 0.96));
}

.mlk-product-lightbox-thumb {
	appearance: none;
	border: var(--mlk-lightbox-thumb-border-width, 2px) solid var(--mlk-lightbox-thumb-border-color, transparent);
	border-radius: var(--mlk-lightbox-thumb-border-radius, 10px);
	padding: 0;
	background: var(--mlk-lightbox-thumb-background, #f1eee9);
	overflow: hidden;
	cursor: pointer;
	pointer-events: auto;
	width: 64px;
	height: 64px;
	transition:
		background-color var(--ease, 0.22s ease),
		border-color var(--ease, 0.22s ease),
		transform var(--ease, 0.22s ease),
		opacity var(--ease, 0.22s ease);
}

.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"] .mlk-product-lightbox-thumb.is-active {
	border-color: var(--mlk-lightbox-thumb-active-border-color, var(--accent, #958d09));
}

.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"] .mlk-product-lightbox-thumb:hover {
	background: var(--mlk-lightbox-thumb-hover-background, var(--mlk-lightbox-thumb-background, #f1eee9));
	border-color: var(--mlk-lightbox-thumb-hover-border-color, var(--mlk-lightbox-thumb-border-color, transparent));
	transform: translateY(-1px);
}

.mlk-product-lightbox-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: var(--mlk-lightbox-thumb-background, #f1eee9);
	mix-blend-mode: multiply;
	border-radius: 8px;
}

.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"] .mlk-product-lightbox-thumb:hover img {
	background: var(--mlk-lightbox-thumb-hover-background, var(--mlk-lightbox-thumb-background, #f1eee9));
}

.elementor-lightbox .elementor-lightbox-image {
	border-radius: 12px !important;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), 0 0 8px -5px rgba(0, 0, 0, 0.3);
	background: var(--paper-deep, #f1eee9) !important;
}

.mlk-product-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	min-width: 56px;
	min-height: 56px;
	border: var(--mlk-lightbox-arrow-border-width, 1px) solid var(--mlk-lightbox-arrow-border-color, rgba(255, 255, 255, 0.92));
	border-radius: var(--mlk-lightbox-arrow-border-radius, 999px);
	background: var(--mlk-lightbox-arrow-background, #000);
	color: var(--mlk-lightbox-arrow-color, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: var(--mlk-lightbox-arrow-icon-size, 40px);
	line-height: 1;
	font-family: Arial, sans-serif;
	font-weight: 700;
	cursor: pointer;
	z-index: 100000;
	backdrop-filter: none;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
	transition:
		transform var(--ease, 0.22s ease),
		background var(--ease, 0.22s ease),
		box-shadow var(--ease, 0.22s ease);
	appearance: none;
	-webkit-appearance: none;
}

.mlk-product-lightbox-nav:hover {
	background: #111;
	transform: translateY(-50%) scale(1.03);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.mlk-product-lightbox-nav--prev {
	left: 40px;
}

.mlk-product-lightbox-nav--next {
	right: 40px;
}

:where(.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"].mlk-product-gallery--hide-arrows) .elementor-swiper-button,
:where(.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"].mlk-product-gallery--hide-arrows) .mlk-product-lightbox-nav {
	display: none !important;
}

@media (max-width: 767px) {
	.dialog-lightbox-widget[id^="elementor-lightbox-slideshow-mlk-product-gallery-"] .elementor-swiper-button {
		width: 44px;
		height: 44px;
	}

	.mlk-product-lightbox-thumbs {
		grid-template-columns: repeat(auto-fit, minmax(52px, 52px));
		gap: 8px;
	}

	.mlk-product-lightbox-thumb {
		width: 52px;
		height: 52px;
	}

	.mlk-product-lightbox-nav {
		width: 46px;
		height: 46px;
		font-size: var(--mlk-lightbox-arrow-icon-size, 32px);
	}

	.mlk-product-lightbox-nav--prev {
		left: 16px;
	}

	.mlk-product-lightbox-nav--next {
		right: 16px;
	}

	.mlk-product-gallery-nav {
		width: 42px;
		height: 42px;
		font-size: var(--mlk-gallery-arrow-icon-size, 30px);
	}

	.mlk-product-gallery-nav--prev {
		left: 5px;
	}

	.mlk-product-gallery-nav--next {
		right: 5px;
	}
}
