﻿.home-picture {
    padding-top: 32px;
    padding-bottom: 77px;
    position: relative;
    z-index: 1;
}

    .home-picture .decor-1 {
        position: absolute;
        top: 8px;
        left: 0;
    }

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

.home-picture .decor-1-right {
    position: absolute;
    top: 27px;
    right: 0;
}

.home-picture .btn:before {
    content: "";
    position: absolute;
    background: url(/Design/img/MyVienThaoNguyen/decor/btn.png) no-repeat;
    background-size: cover;
    left: 0;
    top: 0;
    width: 194px;
    height: 54px;
    pointer-events: none;
    z-index: -1;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.home-picture .btn {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 194px;
    height: 54px;
    margin: 0 auto;
    margin-top: 38px;
    color: #FFF;
    font-family: 'Inter_24pt-SemiBold';
    font-size: 15.575px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 23.362px */
    text-transform: uppercase;
    padding: 8px 20px;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

    .home-picture .btn:hover {
        transform: scale(1.05);
    }

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

.home-pic-grid {
    max-width: 1392px !important;
}

.home-picture .p-title-tops {
}

.home-picture .p-title {
}

.home-picture-list {
    display: flex;
    margin-top: 66px;
}

.home-picture-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .home-picture-item:nth-child(1), .home-picture-item:nth-child(5) {
        flex: 1 1 0
    }

    .home-picture-item:nth-child(3) {
        width: 29%;
    }

    .home-picture-item:nth-child(1) .img {
        display: none;
    }

    .home-picture-item:nth-child(2), .home-picture-item:nth-child(4) {
        flex: 1 1 0;
        margin: 0 12px;
    }

    .home-picture-item .img {
        border-radius: 7px;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

        .home-picture-item .img::before {
            content: '';
            background: rgba(var(--villoz-white-rgb, 255, 255, 255), 0.3);
            bottom: 50%;
            content: "";
            left: 0;
            position: absolute;
            right: 0;
            top: 50%;
            opacity: 1;
            z-index: 3;
            pointer-events: none;
            transition: all 600ms linear;
        }

        .home-picture-item .img:hover::before {
            top: 0;
            bottom: 0;
            opacity: 0;
            transition: all 600ms linear;
        }

        .home-picture-item .img:hover img {
            transform: scale(1.02);
        }

    .home-picture-item:nth-child(1) .img:nth-child(1) {
        height: 290px;
        display: block;
        margin-bottom: 15px;
    }

    .home-picture-item:nth-child(1) .img:nth-child(2) {
        height: 242px;
    }

    .home-picture-item .img img {
        transition: all linear .2s;
    }

    .home-picture-item:nth-child(2) .img:nth-child(1) {
        height: 174px;
        margin-bottom: 15px;
    }

    .home-picture-item:nth-child(2) .img:nth-child(2) {
        height: 264px;
    }

    .home-picture-item:nth-child(3) .img:nth-child(1) {
        height: 582px;
        margin-bottom: 16px;
    }

    .home-picture-item:nth-child(3) .img:nth-child(2) {
        height: 446px;
    }

    .home-picture-item:nth-child(4) .img:nth-child(1) {
        height: 264px;
        margin-bottom: 15px;
    }

    .home-picture-item:nth-child(4) .img:nth-child(2) {
        height: 174px;
    }

    .home-picture-item:nth-child(5) .img:nth-child(1) {
        height: 290px;
        margin-bottom: 15px;
    }

    .home-picture-item:nth-child(5) .img:nth-child(2) {
        height: 196px;
    }

    .home-picture-item .btn {
    }
/*RS*/
@media(min-width:1400px) {
    .home-picture {
        background-size: 100% 100%;
    }
}

@media(max-width:1023px) {
    .home-picture {
        padding: 60px 0;
        background-size: cover;
        background-repeat: no-repeat;
    }

        .home-picture .btn {
            margin-top: 15px;
            font-size: 12px;
            width: 134px;
            height: 38px;
        }

            .home-picture .btn:before {
                content: "";
                position: absolute;
                background: url(/Design/img/MyVienThaoNguyen/decor/btn.png) no-repeat;
                background-size: cover;
                left: 0;
                top: 0;
                width: 134px;
                height: 38px;
                pointer-events: none;
                z-index: -1;
                -webkit-transition: .3s ease-in-out;
                transition: .3s ease-in-out;
            }

        .home-picture .p-title {
            width: 100%;
            text-align: center;
        }

    .grid.wide.home-pic-grid {
        max-width: 100% !important;
    }

        .grid.wide.home-pic-grid .p-title-tops {
            font-size: 27px;
            margin-bottom: 2px;
        }

    .home-picture-item {
        display: none;
    }

    .home-picture-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .home-picture-item:nth-child(1) {
        display: block;
        display: grid;
        grid-auto-rows: minmax(min-content,max-content);
        grid-template-columns: repeat(4,minmax(0,1fr));
        column-gap: 10px;
        row-gap: 10px;
    }

        .home-picture-item:nth-child(1) .img {
            display: block !important;
            margin: 0 !important;
            height: 194px !important;
        }
}

@media(min-width:740px) and (max-width:1023px) {
    .home-picture-item:nth-child(1) .img:last-child {
        display: none !important;
    }
}

@media(max-width:739px) {
    .home-picture-item:nth-child(1) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 10px;
        margin-top: 0;
    }

    .home-picture-list {
        margin-top: 35px;
    }

    .home-picture-item:nth-child(1) .img {
        height: 150px !important;
    }

    .home-picture-item .img:nth-child(9) {
        display: none !important;
    }

    .home-picture .decor-1-right {
        width: 28%;
    }

    .home-picture .decor-1 {
        width: 24%;
    }

    .home-picture {
        padding-bottom: 28px;
        padding-top: 5px;
    }
}