/*
 * QUAN TRỌNG: các giá trị mặc định dùng :where() => specificity = 0,
 * để CSS do Bricks sinh ra từ control (Position, Gap, Width, Height...) luôn ghi đè được.
 */
:where(.brxe-carousel-thumbs) {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

/* MAIN */
.brxe-carousel-thumbs .bxc-main-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
}

.brxe-carousel-thumbs .bxc-main {
	overflow: hidden;
}

:where(.brxe-carousel-thumbs) .bxc-main .image {
	display: block;
	width: 100%;
	height: 400px;
	object-fit: cover;
}

/* THUMBS */
.brxe-carousel-thumbs .bxc-thumbs-wrap {
	flex: 0 0 auto;
	min-width: 0;
}

.brxe-carousel-thumbs .bxc-thumbs {
	overflow: hidden;
}

.brxe-carousel-thumbs .bxc-thumbs .swiper-slide {
	cursor: pointer;
}

:where(.brxe-carousel-thumbs) .bxc-thumbs .image {
	display: block;
	width: 100%;
	height: 80px;
	object-fit: cover;
	opacity: 0.5;
	box-sizing: border-box;
	transition: opacity 0.3s;
}

:where(.brxe-carousel-thumbs) .bxc-thumbs .swiper-slide-thumb-active .image {
	opacity: 1;
}

/* ---------- AUTO WIDTH ---------- */

/* Main: slide rộng theo ảnh, chiều cao theo control Height */
.brxe-carousel-thumbs.bxc-main-auto .bxc-main .swiper-slide {
	width: auto;
}

.brxe-carousel-thumbs.bxc-main-auto .bxc-main .image {
	width: auto;
	max-width: none;
}

/* Thumbs: rộng theo ảnh, chiều cao theo control Height */
.brxe-carousel-thumbs.bxc-thumbs-auto .bxc-thumbs .swiper-slide {
	width: auto;
}

.brxe-carousel-thumbs.bxc-thumbs-auto .bxc-thumbs .image {
	width: auto;
	max-width: none;
}
