﻿.home-picture {
    padding-top: 50px;
    padding-bottom: 85px;
}

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

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

.img-top-item-home a img {
    display: block;
    border-radius: 8px;
}

.top-two-img-h {
    display: grid;
    grid-auto-rows: minmax(min-content, max-content);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
}

.top-list-img-home {
    display: flex;
    flex-direction: row-reverse;
}

.r-img-list-home {
    width: 33%;
    margin-right: 18px;
}

.l-img-list-home {
    flex: 1 1 0;
    /* margin-right: 18px; */
}

.b-one-img-h {
    margin-top: 18px;
    display: grid;
    grid-auto-rows: minmax(min-content, max-content);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
}

.img-b-item-home a img {
    display: block;
    border-radius: 8px;
}

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

.img-top-r-item-home a img {
    display: block;
    border-radius: 8px;
}

.img-top-r-item-home {
    width: 100%;
    height: 465px;
}

.img-top-item-home {
    width: 100%;
    height: 223px;
}

    .img-top-item-home a, .img-top-r-item-home a {
        position: relative;
    }

.img-b-item-home {
    height: 223px;
}

.home-picture-item .img a {
    display: block;
    width: 100%;
    height: 100%;
}

.home-picture-item .img:nth-child(1) {
    width: 30%;
}

.home-picture-item .img:nth-child(2) {
    width: 29%;
    margin: 0 18px;
}

.home-picture-item .img:nth-child(3) {
    flex: 1 1 0;
}

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

.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;
}

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

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

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

.home-picture .p-title-tops {
    font-size: 30px;
    font-weight: 700;
    text-align: left;
    color: var(--default-color-1);
    font-family: 'Montserrat-Bold';
    margin: 0;
}

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

.home-picture-item {
    display: flex;
    margin-top: 18px;
}

    .home-picture-item .img {
        display: block;
        overflow: hidden;
        position: relative;
        width: 100%;
        height: 223px;
        border-radius: 8px;
    }

        .home-picture-item .img a img {
            display: block;
            transition: all .3s;
            width: 100%;
            height: 100%;
        }

        .img-top-r-item-home a::before, .img-top-item-home a::before, .home-picture-item .img::before, .img-b-item-home a::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;
        }

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

.b-one-img-h:hover .img-b-item-home a::before, .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);
}

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

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

    .home-picture-item .img:nth-child(1) {
        width: 25%;
    }

    .home-picture-item .img:nth-child(2) {
        width: 29%;
        margin: 0 8px;
    }

    .home-picture-item .img {
        height: 90px;
    }

    .img-top-item-home {
        height: 90px;
    }

    .img-b-item-home {
        height: 100px;
    }

    .img-top-r-item-home {
        height: 198px;
    }

    .top-two-img-h {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 8px;
        row-gap: 8px;
    }

    .b-one-img-h {
        margin-top: 8px;
    }

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

    .home-picture .btn {
        margin-top: 15px;
    }

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

    .home-picture-item {
        margin-top: 8px;
    }

    .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: 25px;
    }

    .l-img-list-home {
    }

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

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

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

    .home-picture {
        padding-bottom: 44px;
        margin-top: 25px;
    }
}
