@media (min-width: 992px) {
    .with-ai-cont.large-template-p {   
        justify-content: center;
    }
    
    .large-template-p .like-cont {
        display: none;
    }
}


@media (max-width: 1799.98px){
    .template-filter-content{
        padding-inline: 0;
    }
    .template-category-preview .mx-65 {
        margin-inline: 0;
    }
    .grid-sizer, .template-form {
        /* width: calc(16.9% - 30px); */
        width: calc(19.2% - 30px);
    }
}

@media (max-width: 1699.98px) {
    .filter-content {       
        grid-template-columns: repeat(4, 1fr);
    }
    .filter-box{
        padding: 10px 0 0px;
    }
    .profile-image-cont{
        width: 35px;
        min-width: 35px;
        max-width: 35px;
        height: 35px;
        min-height: 35px;
        max-height: 35px;
    }

    /* .grid-sizer, .template-form{
        width: calc(20% - 25px);
    } */

}

@media (max-width: 1600.98px){
    /* .grid-sizer, .template-form {
        width: calc(17.1% - 28px);
    } */
    /* .template-filter-content {
        padding-inline: 65px;
    }
    .template-category-preview .mx-65 {
        margin-inline: 65px;
    } */
}

@media (max-width: 1599.98px) {
    .template-mng-switch label{
        line-height: 36px;
    }

    .profile-image-cont{
        width: 35px;
        min-width: 35px;
        max-width: 35px;
        height: 35px;
        min-height: 35px;
        max-height: 35px;
    }

    .profile-filter-name{
        font-size: 12px;
        margin-bottom: 0px;
    }
    .f-icon{
        width: 14px;
        height: 14px;
    }

}
@media (max-width: 1499.98px) {
    .template-list-content {
        -webkit-column-gap: 15px;
        -moz-column-gap: 15px;
        column-gap: 15px;
        -moz-column-gap: 15px;
        -webkit-column-gap: 15px;
    }
    /* .template-form {       
        margin-bottom: 15px;
    }

    .grid-sizer, .template-form {
        width: calc(20% - 22px);
    } */

    .grid-sizer, .template-form{
        width: calc(19.5% - 25px);
    }
    /* .template-image-preview {        
        border-radius: 25px;
    } */
    .tmp-badge-block {       
        max-width: calc(100% - 85px);
    }
    .template-title-badge {       
        width: 50%;
    }

}

@media (max-width: 1399.98px){
    .profile-image-cont {
        width: 32px;
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
    }
    .profile-filter-name{
        font-size: 11px;
    }
    .filter-creator{
        font-size: 9px;
    }
}

@media (max-width: 1359.98px){
    /* .grid-sizer, .template-form {
        width: calc(17.5% - 28px);
    } */
    .grid-sizer, .template-form{
        /* width: calc(25.3% - 25px); */
    }
}

@media (max-width: 1199.98px){
    /* .template-filter-content {
        padding-inline: 40px;
    }
    .template-category-preview .mx-65 {
        margin-inline: 40px;
    } */

    .grid-sizer, .template-form {
        width: calc(19.8% - 25px);
    }

    .template-form {
        margin-bottom: 25px;
    }
}

@media (max-width: 1080.98px){
    .grid-sizer, .template-form {
        width: calc(25.4% - 25px);
    }
    .h-smile-svg {
        width: 70px;
    }
    .cmq-test{
        font-size: 12px;
    }
    .template-form {
        margin-bottom: 20px;
    }
    
    .cm-qoute-msg-box{
        width: calc(70% - 25px);
    }
    .create-template-project .filter-image-preview{
        border-radius: 12px;
    }
}

@media (max-width: 991.98px){
    
    /* .grid-sizer, .template-form {
        width: calc(22.2% - 30px);
    } */

    .template-mng-switch{
        border: 0;
    }

    /* .template-filter-content {
        padding-inline: 25px;
    }
    .template-category-preview .mx-65 {
        margin-inline: 25px;
    } */

}

@media (max-width: 811.98px){
    .gutter-sizer {
        width: 2.5%;
    }
    .grid-sizer, .template-form {
        width: calc(26.3% - 25px);
    }
    .template-form {
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .filter-content {       
        grid-template-columns: repeat(1, 1fr);
    }
    .template-filter-content {
        margin: 0;
        /* padding-left: 15px;
        padding-right: 15px; */
        padding-inline: 0;
        flex-direction: column;
        row-gap: 20px;
        min-height: 0px; 
    }
    .template-input-on-off {       
        padding-right: 0;
        border-right: none;      
        margin-right: 0;
    }
    .template-filter-tag-name {
        width: 100%;
    }
    .template-slider-section {       
        padding: 20px;
        padding-right: 0;
    }
    /* .filter-content {
        padding: 0 10px;
    } */
    .template-slider-ul.owl-carousel .owl-prev, 
    .template-slider-ul.owl-carousel .owl-next {       
        width: 38px;
        height: 38px;
    }
    .template-slider-ul.owl-carousel .owl-prev span, 
    .template-slider-ul.owl-carousel .owl-next span {       
        font-size: 28px;
        line-height: 14px;
    }
    /* .template-slider-ul .owl-prev {
        left: -41px;
    }   
    .template-slider-ul .owl-next {
        right: -41px;
    }  */
    /* .template-slider-li {       
        padding: 9px;
    } */
    .template-image-preview {      
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 11px;
    }
    .filter-wrp {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .template-filter-ul {       
        column-gap: 15px;
    }
    .template-input-on-off {       
        min-width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 10px;
    }

    .template-form {               
        margin-bottom: 3.2%;       
    }
    .grid-sizer,
    .template-form {
        width: 46%;
    }
    .gutter-sizer { width: 25px; }

    .template-slider-ul.owl-carousel .owl-stage{
        /* margin-left: -40px; */
        /* padding: 0 !important; */
    }
    

    /* .template-list-content {      
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
        -webkit-column-gap: 10px;
        -moz-column-gap: 10px;
        column-gap: 10px;
        -moz-column-gap: 10px;
        -webkit-column-gap: 10px;
    }
    .template-form {       
        margin-bottom: 10px;
    } */
    
    .template-list-switch{
        position: relative;
        left: 0;
        top: unset;
        transform: none;
        width: 100%;
        /* margin-bottom: 20px;
        order: 1; */
        /* background-color: var(--color-bg-new);
        padding-top: 5px;
        padding-inline: 5px; */
        margin-bottom: 25px;
        margin-inline: auto;
    }

    .template-filter-content + .cm-gray-box{
        border: 0;
    }

    .template-mng-switch{
        width: 100%;
        border-radius: 50px;
        border-left: 0;
        border-right: 0;
    }

    .template-filter-content .cm-box-heading{
        /* order: 2; */
        margin-bottom: 10px;
    }

    .template-filter-content .icon-with-text-switch {
        padding: 12px 0;
    }

    .template-category-preview{
        padding-bottom: 0;
    }

    .template-category-preview .mx-65 {
        margin-inline: 0;
        padding-right: 25px;
        padding-bottom: 10px;
    }

    .grid-sizer, .template-form {
        /* width: calc(52% - 25px); */
        width: calc(52% - 20px);
    }

    .template-form {
        margin-bottom: 20px;
    }

    .filter-box {
        padding: 8px 0 0;
        column-gap: 6px;
    }

    /* .template-filter-content .box-heading {
        padding-inline: 25px;
    } */

    /* .template-mng-switch label{
        width: 25% !important;
    } */

    /* .template-mng-switch label.label-section,
    .template-mng-switch input:nth-of-type(1):checked~.switch-wrapper{
        width: 20%;
    } */

    .template-slider-li.active .template-image-preview:before{
        width: 20px;
        height: 20px;
        right: -4px;
    }
    .with-user-template-wrp {
        padding: 10px 20px;
    }
    .template-image-preview {       
        background-color: var(--color-input-bg);
    }

}

@media (max-width: 575.98px) {
    /* .template-list-content {      
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;      
    } */

    .template-back-cont {
        background-image: url(../../../../../images/heading-bg/head-bg-template_mobile.png);
    }
    .template-title-badge {
        width: 100%;
        grid-gap: 10px;
        display: none;
    }
    .temp-cat-select, 
    .template-list-switch {
        display: none;
    }
    .tmp-badge-block {
        max-width: 100%;
    }

    .template-name {
        position: relative;
        opacity: 1;
        font-size: 10px;
        top: unset;
        left: unset;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transform: none;
    }

    .template-slider-li .template-name{
        top: 4px;
    }

    .category-template .template-name{
        color: var(--color-secndary);
    }

    .template-slider-li:not(.active) .template-image-preview::before{
        top: 45%;
        height: calc(100% - 30px);
    }

}

@media (max-width: 378.98px) {
    .c-gap-13 {
        column-gap: 4px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    /* .filter-content {
        padding: 0 20px;
    }
    .grid-sizer, 
    .template-form {
        width: 23.1%;
    }
    .template-form {      
        margin-bottom: 15px;
    }
    .gutter-sizer {
        width: 18px;
    } */
    /* .template-list-content {      
        -webkit-column-count: 4;
        -moz-column-count: 4;
        column-count: 4;      
    } */
    .template-slider-section {      
        padding: 35px 40px;
    }
    /* .template-image-preview {      
        height: 175px;
    } */
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* .filter-content {       
        grid-template-columns: repeat(3, 1fr);
        padding: 0 40px;
    }    */
    /* .gutter-sizer {
        width: 25px;
    } */
    /* .template-form {      
        margin-bottom: 20px;
    }    */
}

@media (max-width: 374.98px){
    .profile-image-cont {
        width: 28px;
        min-width: 28px;
        max-width: 28px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
    }
    .f-icon {
        width: 12px;
        height: 12px;
    }
    .profile-filter-name {
        font-size: 9px;
    }
    .filter-creator {
        font-size: 8px;
    }
}