#custom-carousel-display {
    position: relative;
    width: 100%;
    height: 450px; /* Chiều cao cố định trên Desktop */
    overflow: hidden;
    margin: 0 auto;
}

.carousel-inner-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    z-index: 2;
}

.carousel-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
}

.carousel-item {
    min-width: 100%; /* Mỗi slide chiếm trọn 1200px (hoặc toàn màn hình nếu nhỏ hơn) */
    height: 100%;
    padding: 0 10px; /* Tạo khoảng hở giữa các ảnh */
    box-sizing: border-box;
    opacity: 0.4;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Container cho nút điều hướng */
#button-container {
    position: absolute;
    inset: 0;
    pointer-events: none; /* Cho phép click xuyên qua vùng trống */
    z-index: 100;
}

.btn-relative {
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.65);
    color: white;
    border: none;
    border-radius: 50%;
	padding: 0;
	padding-bottom: 4px;
    font-size: 30px;
    cursor: pointer;
    pointer-events: auto; /* Kích hoạt lại click cho nút */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
    scale: 1.1;
}

/* ================= RESPONSIVE CHO MOBILE ================= */
@media (max-width: 768px) {
    #custom-carousel-display {
        height: 280px; /* Giảm chiều cao cho Mobile */
    }
	#custom-carousel-display .carousel-inner-content img {
		height: 100% !important;
	}
    .carousel-item {
        padding: 0 5px; /* Giảm khoảng cách slide */
    }

    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

.wp-block-uagb-container {
	min-height: auto !important;
}

.uagb-container-inner-blocks-wrap{
	height: fit-content;
}