/* CHINYOO mobile Swiper gallery.
 * Every rule is scoped to .chin-swipe-gallery, except the deliberate
 * mobile-only rule that hides the default product gallery once Swiper
 * has successfully initialised (body.chin-swipe-ready).
 */

.chin-swipe-gallery {
	display: none;
}

.chin-swipe-gallery .chin-swipe-gallery__swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.chin-swipe-gallery .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: min(108vw, 510px);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--c-line, #e6e6e6);
}

.chin-swipe-gallery .chin-swipe-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
}

.chin-swipe-gallery .chin-swipe-gallery__pagination {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.chin-swipe-gallery .chin-swipe-gallery__pagination .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	margin: 0 !important;
	background: #c9c9c9;
	opacity: 1;
}

.chin-swipe-gallery .chin-swipe-gallery__pagination .swiper-pagination-bullet-active {
	background: var(--c-brand, #c8102e);
}

@media (max-width: 767px) {
	body.chin-swipe-ready .chin-swipe-gallery {
		display: block;
		margin-bottom: 24px;
	}

	body.chin-swipe-ready.single-product .product-detail > .product-gallery,
	body.chin-swipe-ready.single-product .woocommerce-product-gallery {
		display: none !important;
	}
}
