/* ===== PROJECT SLIDER ===== */

/* ===== PROJECT SLIDER ===== */

/*DỰ ÁN*/
/*Danh sách dự án*/
.mfp_portfolio_item_inner .overlay {
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 90% );
    z-index: 0;
    position: absolute;
    inset: 0;
}
.breadcrumb .separator {
    margin-left: 10px;
    margin-right: 5px
}
.col.post-item.proj-post-item .col-inner{
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.mfp_portfolio_item_inner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.mfp_portfolio_item_inner a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
h4.mfp_portfolio_title {
    margin: 0;
}
.mfp_portfolio_title a {
    font-size: 15px;
    color: #fff;
}
.mfp_portfolio_tem {
    margin: 0;
}
p.mfp_portfolio_excerpt {
    font-size: 14px;
    padding-top: 10px;
}
.mfp_portfolio_read_more {
    display: flex;
    background-color: #fff;
    color: #000 !important;
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0;
    align-items: center;
    justify-content: center;
}
.row-duan{

}
@media screen and (max-width: 430px) {
    
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .row-duan{

    }
}

/*chi tiết dự án*/
h1.tieudeduan {
    font-size: 22px;
    margin-bottom: 15px;
}
.webvipduan-slider img {
    width: 100%;
}
.webvipduan-slider_thumb .col {
    max-height: 110px;
    overflow: hidden;
}
.webvipduan-slider_thumb .col img {
    max-height: 110px;
    object-fit: cover;
}
.galleryduan {
    padding: 0 0 20px;
}
.box_meta_single_content {
    background-color: #f9a006;
    color: #fff;
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.box_meta_single_content .item {
    padding: 10px 3px;
    display: flex;
    align-items: center;
    border-left: 1px solid #f3f3f3;
    font-size: 14px;
    gap: 10px;
    flex: 1 1 0;          /* chia đều 3 cột */
}
.box_meta_single_content .item img {
    width: 45px;
    margin-right: 5px;
    margin-left: 5px;
}
.box_meta_single_content .fw-b {
    letter-spacing: -.5px;font-weight: bold;
}
.fs-12 {
    font-size: 12px;
}
.duan-single-page {
    font-size: 18px;
}
/*widget DỰ ÁN*/
.widget-title,.sidebar_title {
    background-color: #f9a006;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 10px;
    margin-bottom: 10px;
    display: block
}
.sidebar_list_post .item img {
    width: auto;
    height: 100%;
    object-fit: cover;
}
.sidebar_list_post .item {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    gap: 10px;
}
.sidebar_list_post .item .thumb {
    flex: 0 0 110px;
}
/*DỰ ÁN*/
/* css slide ACF */

.slider-wrapper .slider {
    
}

.mfp_portfolio_item_inner_txt {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    line-height: 22px;
}
.slide img {

}
.duanhomes .flickity-prev-next-button {
    display: block !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 0;
}
.duanhomes .flickity-prev-next-button.previous {
    left: 16px; 
}
.duanhomes .flickity-prev-next-button.next {
    right: 29px;
}
.slider-wrapper .flickity-button{top: 40%;}
.duanhomes .flickity-prev-next-button .flickity-button-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #fff;
    width: 35px;
    height: 32px;
}
@media (min-width: 768px) and (max-width: 1023px) {
    .col.post-item{

    }
}

@media only screen and (max-width: 48em){
    .col.post-item{
        
    }
}

@media (max-width: 479px) {
    .duanhomes .flickity-prev-next-button {
        
    }
    .duanhomes .flickity-prev-next-button.previous {
        left: 0 !important;
    }
    .duanhomes .flickity-prev-next-button.next {
        right: 0 !important;
    }
}
/* css slide ACF */

/* =====================
   GALLERY LAYOUT
===================== */
.room-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

/* =====================
   MAIN IMAGE
===================== */
.gallery-main {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

/* =====================
   THUMBNAILS
===================== */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.thumb-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

/* =====================
   HOVER EFFECT
===================== */
.gallery-main:hover img,
.thumb-item:hover img {
    transform: scale(1.05);
}

/* =====================
   + MORE PHOTOS OVERLAY
===================== */
.more-photo {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

/* =====================
   MODAL SLIDER
===================== */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 9999;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.roomSwiper {
    width: 90%;
    height: 90%;
}

.roomSwiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =====================
   CLOSE BUTTON
===================== */
.close-gallery {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

/* =====================
   RESPONSIVE (OPTIONAL)
===================== */
@media (max-width: 768px) {
    .room-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
}
