.custom-height {
    height: 100%; /* Đảm bảo chiều cao đầy đủ cho nội dung */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}


.gallery-item {
    margin: 10px;
    cursor: pointer;
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    /* Phải cao hơn navbar dính (1030) và cụm nút nổi FAB (9999) — nếu để z-index:1
       (giá trị cũ) thì khi mở, navbar + thanh tìm kiếm hero + FAB đè chồng lên modal.
       Lỗi lộ ra sau khi redesign nâng z-index của navbar/FAB. */
    z-index: 10001;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: white;
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    border: none !important;
}

.modal-image {
    width: 50%;
    max-width: 50%;
    height: auto;
    margin: auto;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 0%;
    right: 0;
    color: black;
    font-size: 40px;
    font-weight: bold;
    padding: 18px;
    background-color: white;
    cursor: pointer;
    z-index: 10; /* Ensure it is above the image */
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: none;
    position: relative; /* Ensures the close button is positioned relative to this element */
}   

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px; /* Adjust this value to center vertically */
    color: black;
    background-color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    z-index: 2;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
    position: absolute;
    bottom: 0;
    width: 100%;
}

@media (max-width: 600px) {
    .col-lg-5 {
        width: 100%;
    }
    .col-lg-7 {
        width: 100%;
    }
    .img-fluid {
        height: 200px; /* Chiều cao khoảng 80% của chiều cao viewport */
    }
}