.project-swiper-container {
    width: 100%;
}

.project-slide-wrapper { 
    position: relative; 
    text-align: left; 
    padding: 50px 0 !important;
}

/* HOẠ TIẾT TRANG TRÍ (MẶC ĐỊNH / DESKTOP) */
.deco-top-right {
    position: absolute;
    top: 50px;
    right: 15px; 
    width: 45%;
    height: 70px;
    border-top: 1px solid var(--midori-accent);
    border-right: 1px solid var(--midori-accent);
    border-top-right-radius: var(--radius-card);
    pointer-events: none;
    z-index: 1;
}
.deco-top-right::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background-color: var(--midori-accent);
    border-radius: 50%;
}

.deco-bottom-left {
    position: absolute;
    bottom: 50px;
    left: 15px; 
    width: 45%;
    height: 70px;
    border-bottom: 1px solid var(--midori-accent);
    border-left: 1px solid var(--midori-accent);
    border-bottom-left-radius: var(--radius-card);
    pointer-events: none;
    z-index: 1;
}
.deco-bottom-left::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background-color: var(--midori-accent);
    border-radius: 50%;
}

/* THÔNG TIN TIÊU ĐỀ */
.project-meta-row { 
    margin-top: 20px; 
    margin-bottom: 30px; 
    position: relative;
    z-index: 2;
}
.meta-title { color: var(--text-dark); margin-bottom: 5px; }
.meta-subtitle { color: var(--text-title); margin-bottom: 10px; }

.meta-tagline { 
    color: var(--text-dark) !important; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* BỐ CỤC THƯ VIỆN ẢNH (DESKTOP) */
.project-gallery-layout { 
    display: flex; 
    gap: 20px; 
    margin: 30px 0; 
    position: relative;
    z-index: 2;
}
.gallery-col-left { 
    width: 38%; 
    flex-shrink: 0;
}
.gallery-col-left img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: var(--radius-card); 
}
.gallery-col-right { 
    width: 62%; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.gallery-right-top { 
    aspect-ratio: 16/7; 
    overflow: hidden; 
    border-radius: var(--radius-card); 
}
.gallery-right-top img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.gallery-right-bottom-3 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}
.gallery-right-bottom-3 img { 
    width: 100%; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    border-radius: var(--radius-card); 
}

/* PHẦN CHÂN TRANG / MÔ TẢ CHI TIẾT (DESKTOP) */
.project-footer-row { 
    justify-content: flex-end; 
    margin-top: 35px; 
    position: relative;
    z-index: 2;
}
.footer-desc-right { 
    width: 500px; 
}
.footer-desc-right h4 { 
    color: var(--text-dark); 
    margin-bottom: 15px; 
}
.footer-desc-right p { 
    color: var(--text-dark); 
    opacity: 0.85;
}

/* PHÂN TRANG SWIPER */
.project-swiper-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.project-swiper-pagination .swiper-pagination-bullet { width: 40px; height: 2px; background-color: var(--text-grey); border-radius: 0; opacity: 1; transition: var(--transition-base); }
.project-swiper-pagination .swiper-pagination-bullet-active { background-color: var(--midori-accent) !important; width: 80px; }


/* CẤU HÌNH TRÊN ĐIỆN THOẠI (MOBILE) */
@media (max-width: 767px) {
    /* 1. Thiết lập lưới 2 cột và chia sẵn 6 hàng bằng nhau */
    .project-gallery-layout {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        grid-template-rows: repeat(6, 1fr) !important; 
        gap: 10px !important;
        margin: 20px 0 !important;
        height: 500px; 
    }

    /* Phá bỏ các div bọc để ảnh nhảy vào lưới chung */
    .gallery-col-left, .gallery-col-right, 
    .gallery-right-top, .gallery-right-bottom-3 {
        display: contents !important;
    }

    /* 2. CỘT TRÁI (2 ảnh - Mỗi ảnh chiếm 3 hàng) */
    
    /* Ảnh 1 (To trên cùng bên trái) */
    .gallery-col-left img {
        grid-column: 1 !important;
        grid-row: 1 / 4 !important; 
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* Ảnh 3 (Ảnh đầu tiên trong cụm 3 - Đưa xuống dưới ảnh 1) */
    .gallery-right-bottom-3 img:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 4 / 7 !important; 
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* 3. CỘT PHẢI (3 ảnh - Mỗi ảnh chiếm 2 hàng) */

    /* Ảnh 2 (Ảnh top-right gốc) */
    .gallery-right-top img {
        grid-column: 2 !important;
        grid-row: 1 / 3 !important; 
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* Ảnh 4 (Ảnh thứ 2 trong cụm 3) */
    .gallery-right-bottom-3 img:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 3 / 5 !important; 
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* Ảnh 5 (Ảnh thứ 3 trong cụm 3) */
    .gallery-right-bottom-3 img:nth-child(3) {
        grid-column: 2 !important;
        grid-row: 5 / 7 !important; 
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* 4. Điều chỉnh khoảng cách của các hoạ tiết trang trí */
    .deco-top-right {
        top: 30px !important; /* Đồng bộ với padding-top của slide wrapper */
        right: 15px !important;
        width: 35% !important; /* Thu nhỏ bớt chiều rộng của hoạ tiết để tránh đè chữ bên phải */
        height: 60px !important; 
    }

    .deco-bottom-left {
        bottom: 40px !important; /* Đẩy sát xuống dưới chân trang một chút */
        left: 15px !important;
        width: 35% !important; /* Thu nhỏ bớt chiều rộng của hoạ tiết để tránh đè chữ bên trái */
        height: 60px !important;
    }

    /* 5. Giới hạn vùng chữ để tạo khoảng trống an toàn với hoạ tiết */
    
    /* Tránh va chạm với hoạ tiết PHÍA TRÊN bên phải */
    .project-meta-row {
        max-width: 60% !important; /* Chữ chỉ chiếm tối đa 60% chiều ngang */
        margin-top: 15px !important;
        margin-bottom: 25px !important;
    }

    /* Tránh va chạm với hoạ tiết PHÍA DƯỚI bên trái */
    .footer-desc-right {
        text-align: right !important;
        width: 100% !important;
        padding-left: 35% !important; /* Đẩy toàn bộ khối chữ dịch sang phải 35% để nhường chỗ hoàn toàn cho hoạ tiết bên trái */
        margin-top: 15px !important;
        box-sizing: border-box;
    }

    /* Điều chỉnh Typography và Decor của khối bọc bên ngoài */
    .project-slide-wrapper {
        padding: 30px 15px 60px 15px !important; /* Tăng nhẹ padding-bottom để chân trang thoáng hơn */
    }
}