/**
 * Single product gallery — main image and thumbnails.
 * Images use contain (full product visible) in square frames like the supplier site.
 */

.gallery .mySwiper2 {
	box-sizing: border-box;
	width: 270px;
	height: 270px;
	border: 1px solid #e8e8e8;
}

.gallery .mySwiper2 .swiper-slide,
.gallery .mySwiper .swiper-slide {
	background: #fff;
	background-size: unset;
	background-position: unset;
}

.gallery .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gallery-thumbs-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 270px;
	margin: 0 auto;
}

.gallery-thumbs-nav {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.gallery-thumbs-nav:hover {
	opacity: 1;
}

.gallery-thumbs-nav.is-disabled,
.gallery-thumbs-nav:disabled {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

.gallery-thumbs-nav--prev {
	background-image: url('../images/arrow-left.svg');
}

.gallery-thumbs-nav--next {
	background-image: url('../images/arrow-right.svg');
}

.gallery .mySwiper {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	padding: 10px 0;
}

.gallery .mySwiper .swiper-slide {
	width: 25%;
	height: auto;
	aspect-ratio: 1;
	opacity: 0.55;
	cursor: pointer;
	border: 2px solid transparent;
	box-sizing: border-box;
	overflow: hidden;
}

.gallery .mySwiper .swiper-slide-thumb-active {
	opacity: 1;
	border-color: #8b3a3a;
}

.gallery-nav {
	width: 100%;
}

.gallery .swiper {
	height: auto;
}

@media screen and (min-width: 380px) {
	.gallery .mySwiper2,
	.gallery-thumbs-bar {
		width: 360px;
	}

	.gallery .mySwiper2 {
		height: 360px;
	}
}

.gallery--empty img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 360px;
	object-fit: contain;
}
