.search,
.blog,
.archive{
    .archive-wrapper{
        padding-top: 15vh;
        padding-bottom: 90px; 
		.archive-main{
			display:flex;
		}
    } 
    h2.text-center {
        text-align: center;
        font-size: 22px;
        font-weight: 400;
        color: #fff;
        text-transform: uppercase;
        position: relative;
        letter-spacing: 10px;
        word-spacing: 5px;
        margin-bottom: 30px;
    }
    .item-cm-tax .title-box h3 {
        margin-bottom:0;
    }
    .button-download{
        display: flex;
        margin-bottom: 25px;
        gap: 25px;
        justify-content: space-between;
        align-items: center;
        a.catalogue {
            display: inline-block;
            font-weight: 500;
            text-transform: uppercase;
            font-family: $barlow-font;
            background: $primary-color;
            color: $white-color;
            padding: 13px 30px;
            margin: 0;
            position: relative;
            font-size: 16px;
            letter-spacing: 3px;
            border: 1px solid transparent;
            line-height: 1.5;
            border-radius: .25rem;
            width: 50%;
            text-align: center;
            overflow: hidden;
            span {
                position: relative;
                z-index: 2;
            }
            &:after {
                content: '';
                width: 0;
                height: 100%;
                position: absolute;
                bottom: 0;
                left: 100%;
                z-index: 1;
                background: #fff;
                color: #000;
                -webkit-transition: all 0.3s ease;
                transition: all 0.3s ease;
            }
            &:hover:after {
                width: 100%;
                left: 0;
                -webkit-transition: width 0.3s ease;
                transition: width 0.3s ease;
            }
            &:hover span{
                color:#000;
            }
        }
        a.davani-catalog {
            font-weight: 500;
            font-family: $barlow-font;
            text-transform: uppercase;
            background: transparent;
            color: $white-color;
            padding: 12px 24px;
            margin: 0;
            position: relative;
            font-size: 16px;
            letter-spacing: 3px;
            border: 1px solid $primary-color;
            line-height: 1.5;
            border-radius: .25rem;
            width: 50%;
            text-align: center;
            overflow: hidden;
            span {
                position: relative;
                z-index: 2;
            }
            &:after {
                content: '';
                width: 0;
                height: 100%;
                position: absolute;
                bottom: 0;
                left: 100%;
                z-index: 1;
                -webkit-transition: all 0.3s ease;
                transition: all 0.3s ease;
                background: $primary-color;
            }
            &:hover:after {
                width: 100%;
                left: 0;
                -webkit-transition: width 0.3s ease;
                transition: width 0.3s ease;
            }
            &:hover span{
                color:#fff;
            }
        }

        @media screen and (max-width: $break-lg) {
            flex-direction: column;
            a.catalogue {
                width: 100%;
            }
            a.davani-catalog {
                width: 100%;
            }
        }
    }
    .posts{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 30px;
        .post-item{
            margin-bottom: 30px;
            .post-item-thumb{
                line-height: 0;
                position: relative;
                overflow: hidden;
                padding-bottom: 66%;
                margin-bottom: 20px;
                img{
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    max-height: none;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    -webkit-transition: all .5s;
                    transition: all .5s;
                }
                &:hover{
                    img{
                        transform: scale(1.09, 1.09);
                        transition: all 1s ease;
                    }
                }
            }
            .post-item-date{
                margin-top: 0px;
                font-size: 13px;
                letter-spacing: 1px;
                text-transform: uppercase;
                margin-bottom: 5px;
            }
            .post-item-title{
                color: #fff;
                font-size: 22px;
                margin-bottom: 15px;
                font-weight: 500;
                letter-spacing: 2px;
                text-transform: uppercase;
            }
        }
        @media screen and (max-width: $break-lg) {
            grid-gap: 20px;
        }
        @media screen and (max-width: $break-md) {
            grid-template-columns: 1fr;
        }
    }
    &.post-type-archive-stone-product{
        form.form-search-stone{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            gap: 20px;
            @media (max-width: $break-md - 0.02){
                flex-wrap: wrap;
                .item-search{
                    width: 100%;
                }
            }
            select {
                border-radius: 0;
                min-width: 130px;
                color:#999;
                &:focus{
                    outline: none;
                }
            }
            input[type="text"]{
                border-radius:0;
                
            }
            input[type="text"]::placeholder {
              color:#999;
            }
            button {
                background: transparent !important;
                border: 1px solid $primary-color !important;
                font-weight: 300;
                text-transform: uppercase;
                color: $white-color !important;
                padding: 13px 30px !important;
                letter-spacing: 3px;
                cursor: pointer;
                border-radius: 0 !important;
                line-height: 20px;
                position: relative;
                &:hover{
                    &:after{
                        width: 100%;
                        left: 0;
                        -webkit-transition: width 0.3s ease;
                        transition: width 0.3s ease;
                    }
                }
                &:after{
                    content: "";
                    width: 0;
                    height: 100%;
                    position: absolute;
                    bottom: 0;
                    left: 100%;
                    z-index: -1;
                    background: $primary-color;
                    color: $white-color;
                    -webkit-transition: all 0.3s ease;
                    transition: all 0.3s ease;
                }
            }
        }
        .pagination {
            justify-content: center;
            gap: 15px;
        }
    }
}


nav.pagination{
    margin-top: 50px;
    .screen-reader-text{
        display: none;
    }
    .nav-links{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
        .page-numbers{
            width: 38px;
            height: 38px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: $secondary-bg-color;
            color: #000;
            transition: all 0.3s;
            &:hover{
                color: #fff;
                background-color: $primary-color;
            }
            &.current{
                color: #fff;
                background-color: $primary-color;
            }
        }
    }
}