﻿.home-picture {
    padding-top: 32px;
    padding-bottom: 55px;
    position: relative;
}

.bck-full-content {
}

.home-picture .decor-1 {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
}

.home-pic-grid .p-descript {
    color: #5F5F5F;
}

.home-picture .btn {
    text-align: center;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    margin-top: 38px;
    color: #071E8A;
    font-family: 'WixMadeforDisplay-Medium';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 24px */
    border-radius: 55px;
    padding: 8px 20px;
    transition: all ease .3s;
    display: none;
}

.swiper.home-picture-item-c {
    padding-bottom: 39px;
}

.home-picture .btn:hover {
    opacity: .8;
}

.home-picture .btn span {
    margin-right: 12px;
    letter-spacing: 1.4px;
}

.home-picture .p-title-tops {
    display: flex;
    align-items: center;
    position: relative;
    gap: 6px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.home-picture .p-title {
    line-height: normal;
    font-size: 32px;
}

.list-pic-homee {
    display: flex;
}

.l-list-pic-homee {
    flex: 1 1 0;
}

.r-list-pic-homee {
    width: 50%;
    margin-left: 20px;
}

.list-pic-homee .img img {
    border-radius: 12px;
}

/* Container cột trái */
.l-list-pic-homee {
    flex: 0 1 50%; /* giữ tỷ lệ nếu dùng flex tổng thể */
    display: flex;
    gap: 20px; /* khoảng cách giữa hàng trên và hàng dưới */
}

    /* 2 ảnh đầu tiên: dùng flex để nằm ngang */
    .l-list-pic-homee .img:nth-child(-n+2), .r-list-pic-homee .img:nth-child(-n+2) {
        flex: 1; /* mỗi ảnh chiếm đều không gian */
    }

/* Tạo hàng ảo cho 2 ảnh đầu bằng display: contents + flex-wrap */
.l-list-pic-homee, .r-list-pic-homee {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* padding giữa tất cả các phần */
    justify-content: space-between;
}

    /* 2 ảnh đầu: nằm ngang, chiều cao bằng nhau */
    .l-list-pic-homee .img:nth-child(1), .l-list-pic-homee .img:nth-child(2), .r-list-pic-homee .img:nth-child(1), .r-list-pic-homee .img:nth-child(2) {
        flex: 1 1 calc(50% - 12px); /* 50% trừ nửa gap */
        aspect-ratio: 3 / 2; /* ngang, chiều cao bằng nhau - chỉnh nếu cần */
        max-width: calc(50% - 12px); /* đảm bảo không vượt */
        height: 265px;
    }

    /* Ảnh thứ 3: full width, ngang hơn, chiều cao cố định/tỉ lệ */
    .l-list-pic-homee .img:nth-child(3), .r-list-pic-homee .img:nth-child(3) {
        flex: 1 1 100%; /* full width */
        aspect-ratio: 16 / 9; /* ngang rõ rệt - bạn có thể đổi thành 5/2, 4/1.5, hoặc dùng height */
        /* Nếu muốn chiều cao cố định bằng px: */
        height: 265px;
        min-height: 265px;
        max-width: 100%;
    }

    /* Chung cho tất cả ảnh */
    .l-list-pic-homee .img, .r-list-pic-homee .img {
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
        background: #f5f5f5;
        transition: transform 0.35s ease;
    }

        .l-list-pic-homee .img:hover, .r-list-pic-homee .img:hover {
            transform: translateY(-6px);
        }

        .l-list-pic-homee .img .fill {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }

.r-list-pic-homee {
    flex-wrap: wrap-reverse;
}

.home-picture-list-full {
    margin-top: 22px;
}
/* Responsive: trên mobile xếp dọc hết */
@media (max-width: 1024px) {
    .l-list-pic-homee {
        gap: 20px;
        flex-wrap: wrap-reverse;
    }

    .list-pic-homee {
        display: flex;
        flex-direction: column-reverse;
    }

    .r-list-pic-homee {
        width: 100%;
        margin: 0;
    }

        .l-list-pic-homee .img:nth-child(1), .l-list-pic-homee .img:nth-child(2), .r-list-pic-homee .img:nth-child(1), .r-list-pic-homee .img:nth-child(2) {
            height: 185px;
            flex: 1 1 calc(50% - 12px);
            max-width: calc(50% - 8px);
        }

    .l-list-pic-homee, .r-list-pic-homee {
        gap: 16px;
        margin-top: 18px;
    }

        .l-list-pic-homee .img:nth-child(1),
        .l-list-pic-homee .img:nth-child(2),
        .l-list-pic-homee .img:nth-child(3) {
            max-width: 100%;
            aspect-ratio: 4 / 3; /* cân đối trên mobile */
        }
}

@media (max-width: 576px) {
    .l-list-pic-homee {
        gap: 16px;
    }
}

/*RS*/
@media(min-width:1400px) {
}

@media(max-width:1023px) {
}