.mytheme-product-image-gallery {
	--mytheme-gallery-main-height: 520px;
	--mytheme-gallery-thumb-size: 108px;
	--mytheme-gallery-thumb-gap: 8px;
	--mytheme-gallery-main-radius: 10px;
	--mytheme-gallery-thumb-radius: 8px;
	--mytheme-gallery-thumb-object-fit: cover;
	--mytheme-gallery-blur: 18px;
	--mytheme-gallery-overlay-opacity: 0.25;
	--mytheme-gallery-visible-thumbs: 5;
	--mytheme-gallery-align: flex-start;
	width: 100%;
}

.mytheme-product-image-gallery__main {
	height: var(--mytheme-gallery-main-height);
	overflow: hidden;
	border-radius: var(--mytheme-gallery-main-radius);
	background: #f6f6f6;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.mytheme-product-image-gallery__main-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	filter: blur(var(--mytheme-gallery-blur));
	transform: scale(1.06);
	z-index: 1;
}

.mytheme-product-image-gallery__main-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--mytheme-gallery-overlay-opacity));
	z-index: 2;
}

.mytheme-product-image-gallery__main-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	position: relative;
	z-index: 3;
}

.mytheme-product-image-gallery__thumbs-wrap {
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: var(--mytheme-gallery-align);
	gap: 6px;
}

.mytheme-product-image-gallery__thumbs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-behavior: smooth;
	gap: var(--mytheme-gallery-thumb-gap);
	max-width: 100%;
	scrollbar-width: thin;
	justify-content: flex-start;
}

.mytheme-product-image-gallery__thumb {
	appearance: none;
	border: 1px solid #dfe3e8;
	background: transparent;
	padding: 0;
	cursor: pointer;
	border-radius: var(--mytheme-gallery-thumb-radius);
	overflow: hidden;
	flex: 0 0 auto;
	width: var(--mytheme-gallery-thumb-size);
	min-width: var(--mytheme-gallery-thumb-size);
	height: var(--mytheme-gallery-thumb-size);
	transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mytheme-product-image-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--mytheme-gallery-thumb-object-fit);
	object-position: center center;
}

.mytheme-product-image-gallery__thumb:hover {
	transform: scale(1.02);
	opacity: 0.92;
}

.mytheme-product-image-gallery__thumb.is-active {
	border-color: #1f2937;
	box-shadow: 0 0 0 1px rgba(31, 41, 55, 0.2);
}

.mytheme-product-image-gallery__arrow {
	appearance: none;
	border: 1px solid #e3e5e8;
	background: #ffffff;
	color: #444;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	cursor: pointer;
	flex: 0 0 auto;
	line-height: 1;
	font-size: 14px;
	opacity: 0.85;
	transition: opacity 0.18s ease, background-color 0.18s ease;
}

.mytheme-product-image-gallery__arrow:hover {
	opacity: 1;
	background: #f6f7f8;
}
