﻿.home-picture {
    background-image: url(../../../Design/img/NemTotGiaRe/b.jpg);
    background-size: cover;
    padding-top: 112px;
    padding-bottom: 77px;
    position: relative;
    z-index: 1;
}

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

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

.home-picture .btn {
    text-align: center;
    color: #BBC8DE;
    font-size: 14px;
    text-transform: capitalize;
    line-height: 161%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 38px;
    width: fit-content;
    margin: 0 auto;
    margin-top: 38px;
    background-color: #fff;
    border-radius: 55px;
    color: var(--default-color-1);
    font-weight: bold;
    padding: 8px 20px;
    transition: all ease .3s;
}

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

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

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

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

.home-picture .p-title {
    line-height: 110%;
    font-size: 34px;
    color: #fff;
    margin-top: 12px;
}

.home-picture-list {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(4,minmax(0,1fr));
    column-gap: 19px;
    row-gap: 19px;
    margin-top: 66px;
}

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

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

    .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: 219px;
        display: block;
        margin-bottom: 16px;
    }

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

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

    .home-picture-item .img a {
        position: relative;
    }

        .home-picture-item .img a .wrap-item {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            text-align: center;
            justify-content: center;
            background-color: transparent;
            transition: all .3s;
        }

h3.wrap-item-title {
    margin: 0;
    font-weight: 100;
    color: #F4F4F4;
    line-height: 121.1%;
    font-family: 'monM';
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 20px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    transform: translateY(20px);
    =: 0;
    transition: all .3s;
    opacity: 0;
    visibility: hidden;
}

span.wrap-item-descript {
    font-size: 14px;
    color: #EFEFEF;
    margin-top: 7px;
    padding: 0 20px;
    font-weight: 100;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-family: 'MonR';
    line-height: 150%;
    transform: translateY(20px);
    transition: all .3s;
    opacity: 0;
    visibility: hidden;
}

.home-picture-item .img:hover a .wrap-item {
    background-color: rgb(35 44 65 / 60%);
}

.home-picture-item .img:hover span.wrap-item-descript {
    opacity: 1;
    visibility: visible;
}

.home-picture-item .img:hover h3.wrap-item-title {
    opacity: 1;
    visibility: visible;
}

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

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

.home-picture-item:nth-child(3) .img:nth-child(1) {
    height: 219px;
    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: 450px;
    margin-bottom: 21px;
}

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

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

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

.home-picture-item .btn {
}
/*RS*/
@media(max-width:1023px) {
    .home-picture {
        padding: 60px 0;
    }

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

    .home-pic-grid .p-title-cate {
        font-size: 14px;
        margin-bottom: 11px;
    }

    .home-picture .p-title {
        font-size: 20px;
    }

    .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 {
        padding-bottom: 40px;
        background-size: 100% 100%;
    }

    .home-picture-item .img:hover h3.wrap-item-title, .home-picture-item .img:hover span.wrap-item-descript {
        opacity: 0;
        visibility: hidden;
        font-size: 14px;
    }

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

.home-pic-grid .p-title-cate {
    color: #fff;
}

@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 {
        display: none;
    }
}