/* SLIDER ẢNH KẾT QUẢ (widget Image Carousel của Elementor có class vd-result-carousel)
   Trang: Trang chủ, Chỉnh nha là gì.
   Nới khoảng cách giữa ảnh và dấu chấm phân trang (mặc định Elementor chỉ chừa 30px). */

.vd-result-carousel.elementor-pagination-position-outside .swiper,
.vd-result-carousel.elementor-pagination-position-outside .elementor-image-carousel-wrapper {
	padding-bottom: 56px;
}
.vd-result-carousel .swiper-pagination {
	bottom: 6px !important;
}
.vd-result-carousel .swiper-pagination-bullet {
	margin: 0 6px !important;
}

/* Ảnh trong slide: luôn nằm giữa và rộng bằng slide
   (ảnh gốc chỉ rộng ~287px nên nếu để nguyên sẽ bị lệch trái khi slide rộng hơn). */
.vd-result-carousel .swiper-slide { text-align: center; }
.vd-result-carousel .swiper-slide figure,
.vd-result-carousel .swiper-slide a { display: block; margin: 0; }
.vd-result-carousel .swiper-slide-image {
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

@media (max-width: 767px) {
	.vd-result-carousel.elementor-pagination-position-outside .swiper,
	.vd-result-carousel.elementor-pagination-position-outside .elementor-image-carousel-wrapper {
		padding-bottom: 44px;
	}
}

/* Khi tất cả ảnh đã hiện đủ (VD trang chủ trên máy tính chỉ có 4 ảnh)
   Swiper chỉ còn 1 dấu chấm -> ẩn đi và bỏ khoảng trống phía dưới. */
.vd-result-carousel .swiper-pagination:has(.swiper-pagination-bullet:only-child) { display: none; }
.vd-result-carousel.elementor-pagination-position-outside .swiper:has(.swiper-pagination-bullet:only-child),
.vd-result-carousel.elementor-pagination-position-outside .elementor-image-carousel-wrapper:has(.swiper-pagination-bullet:only-child) {
	padding-bottom: 0;
}
