﻿.top-list-img-home {
    text-align: center;
    position: relative;
}

.w-list-img-home {
    position: relative;
    padding-bottom: 33px;
}

.tree-img-bottom-decor {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
}

.top-list-img-home h6 {
    margin: 0;
    color: #1B0D00;
    text-align: center;
    font-family: 'InterSB';
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 126.188%; /* 45.428px */
    text-transform: uppercase;
    padding-bottom: 8px;
}

.top-list-img-home:after {
    content: "";
    position: absolute;
    background: #B7893C;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    margin: auto;
    width: 182px;
    height: 2px;
}

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

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

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

.tree-img-top-decor {
    position: absolute;
    top: -108px;
    left: 0;
    z-index: -1;
}

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

.tree-img-bottom-decor {
    position: absolute;
    top: -108px;
    right: 0;
    z-index: -1;
}

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

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

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

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

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

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

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

.home-picture-item:nth-child(5) .img:nth-child(1) {
    height: 243px;
    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;
    }

    .tree-img-top-decor img {
        width: 100%;
        height: 100%;
    }

    .tree-img-top-decor {
        width: 25%;
        top: -33px;
    }

    .tree-img-bottom-decor img {
        width: 100%;
        height: 100%;
    }

    .tree-img-bottom-decor {
        width: 25%;
        top: -33px;
    }

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

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

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

    .top-list-img-home h6 {
        font-size: 24px;
    }

    .top-list-img-home:after {
        content: "";
        position: absolute;
        background: #B7893C;
        left: 0;
        bottom: 0;
        right: 0;
        text-align: center;
        margin: auto;
        width: 89px;
        height: 2px;
    }

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