/*Stop animation on mobile*/
@media only screen and (max-width: 767px) {
    body .wpb_animate_when_almost_visible {
        opacity: 1;
        filter: alpha(opacity=100);
        -webkit-animation: none;
        -moz-animation: none;
        -o-animation: none;
        animation: none;
    }
}

/*header*/

@media only screen and (max-width: 999px) {

    .mobile-menu{margin-bottom: 0 !important}

    .mobile-menu > ul{
        padding-left:0;
        border-top:none !important;
    }

    .mobile-menu > ul li.menu-item{margin-bottom: 0}

    /*.mobile-menu > ul li.menu-item a{*/
    /*    font-family: var(--helvetica);*/
    /*}*/

    .mobile-menu > ul[role="menubar"] > li.menu-item:last-child{border-bottom: none}

    .mobile-menu li.menu-item > a:hover,
    .mobile-menu li[class*="current-menu-"] > a,
    .mobile-menu li[class*="current-menu-"] > .ct-sub-menu-parent > a{
        font-weight: 600;
    }

    /*only on this site*/
}

/*style*/
@media only screen and (max-width: 767px) {
    .all-title br{display:none}

    .all-title.left-line{padding-left: 50px;}

    .all-title.left-line:before{width: 30px;}
}
/*anyfont changes in mobile*/

/*@media only screen and (max-width: 991px) {}*/

@media (max-width: 690px) {
    #footer [data-row*="middle"] [data-column="widget-area-2"] .widget_text:not(.widget_custom_html) p {font-size: 23px;}
}

/*home*/

@media only screen and (max-width: 767px) {
    .home-about {
        padding-top: 70px;
        padding-bottom: 35px;
    }

    .home-about .wpb_single_image {
        padding-right: 25px;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    /*.home-core > .wpb_column{min-height: 430px}*/

    /*.home-core > .wpb_column,*/
    /*.home-core:hover > .wpb_column:not(:hover),*/
    /*.home-core:hover > .wpb_column:hover {*/
    /*    width: 100%;*/
    /*}*/

    /*.home-core > .wpb_column .wpb_text_column:not(.all-title){*/
    /*    transform: translateY(0);*/
    /*    height: auto;*/
    /*    margin-bottom:35px;*/
    /*    visibility: visible;*/
    /*    opacity: 1;*/
    /*    width: 100% !important;*/
    /*}*/

    .home-core > .wpb_column > .vc_column-inner > .wpb_wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    /*.home-core > .wpb_column > .vc_column-inner{background-attachment: fixed;}*/

    .home-project-section::before {
        display: none !important;
    }

    .home-project-title .all-title {
        width: 100%;
        /*padding-left: 15px;*/
        /*padding-right: 15px;*/
        margin-bottom: 25px !important;
    }

    .home-project-title {
        padding-top: 70px;
        padding-bottom: 0;
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }

    .home-project-desc > .wpb_column > .vc_column-inner > .wpb_wrapper {
        margin-left: auto;
        width: 100%;
    }

    .home-project-desc {
        /*padding-bottom: 35px;*/
    }

    .home-project {
        padding-bottom: 35px;
    }
    .mobile-inline br {
        display: none;
    }

}

/*footer*/
@media only screen and (max-width: 1000px) {

    #footer [data-row*="middle"] .ct-container{padding-bottom: 35px}

    #footer [data-row*="middle"] [data-column="widget-area-1"],
    #footer [data-row*="middle"] [data-column="widget-area-2"]{
        width: 100%;
        flex-basis: 100%;
    }

    #footer [data-row*="middle"] .ct-container{
        row-gap: 35px;
    }

    /*#footer [data-row*="middle"] [data-column="widget-area-1"] .widget_media_image{text-align: center;}*/

    #footer [data-row*="middle"] [data-column="widget-area-1"] .widget_text {display: none;}

    #footer [data-row*="middle"] [data-column="widget-area-2"] .widget_text:not(.widget_custom_html){text-align: center;}

    #footer [data-row*="middle"] [data-column="widget-area-2"] .widget_custom_html .custom-html-widget {text-align: center;}

    #footer [data-row*="bottom"]{display: block !important}

    body:not(.page-id-18) #footer [data-row*="bottom"]{
        background: none;
    }
    
    .home-core > .wpb_column{min-height: 430px}

    .home-core > .wpb_column,
    .home-core:hover > .wpb_column:not(:hover),
    .home-core:hover > .wpb_column:hover {
        width: 100%;
    }
    
    .home-core > .wpb_column .wpb_text_column:not(.all-title){
        transform: translateY(0);
        height: auto;
        margin-bottom:35px;
        visibility: visible;
        opacity: 1;
        width: 100% !important;
    }
    
    .home-core > .wpb_column:not(:first-child) > .vc_column-inner {
        justify-content: center !important;
    }

    /*.home-core > .wpb_column > .vc_column-inner > .wpb_wrapper {*/
    /*    padding-left: 0;*/
    /*    padding-right: 0;*/
    /*}*/
    .home-core > .wpb_column > .vc_column-inner{background-attachment: fixed;}
}

@media only screen and (max-width: 690px) {
    #footer [data-row*="middle"] [data-column="widget-area-1"] .widget_media_image img {
        max-height: unset;
        max-width: 255px !important;
    }
}


/*About*/
@media only screen and (max-width: 767px) {
    .about-main {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .about-main > .wpb_column > .vc_column-inner > .wpb_wrapper {
        -webkit-columns: 1;
        -moz-columns: 1;
        columns: 1;
    }

    .about-content-section {
        padding-top: 70px !important;
    }

    .about-content-left .wpb_single_image{
        padding-left: 25px;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    .about-content-right .wpb_single_image {
        padding-right: 25px;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .about-content-right {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }

    .about-content {padding-bottom: 35px;}

    .about-industry-section {
        padding-top: 70px !important;
    }

    .about-industry-title {
        padding-bottom: 0;
    }

    .about-industry {
        --grid-num-col: 3;
        grid-gap: 0 var(--grid-col-gap);
    }

    .about-industry-desc {padding-bottom: 35px;}
}

@media only screen and (max-width: 479px) {
    .about-industry {
        --grid-num-col: 2;
    }
}

/*Service*/
@media only screen and (max-width: 767px) {
    .service-main {
        padding-top: 35px;
        padding-bottom: 35px;
        margin-bottom: 70px;
    }

    .service-list {
        padding-top: 0;
        padding-bottom: 35px;
        background: none !important;
    }

    .service-list > .wpb_column > .vc_column-inner{
        padding-top:0 !important;
    }

    .service-list.full-right-img-row .wpb_single_image{
        margin-right: -15px;
    }

    .service-list.full-right-img-row .wpb_single_image figure {
        padding-left: 15px;
    }

    .service-list.full-left-img-row .wpb_single_image{
        margin-left: -15px;
    }

    .service-list.full-left-img-row .wpb_single_image figure {
        padding-right: 15px;
    }
}

/*project*/
@media only screen and (max-width: 767px) {
    .project-main {
        padding-top: 70px;
        padding-bottom: 0;
    }
}

/*contact*/
@media only screen and (max-width: 767px) {
    .contact-main .company-logo img{
        width: auto;
        max-height: 50px;
    }

    .contact-main .company-name{font-size: 20px}
    .phone-number > .wpb_wrapper > *{font-size: 20px}
/*    .contact-info .wpb_text_column > .wpb_wrapper *{font-size: 20px}*/

    .contact-info .info-heading{font-size: 14px}

    .contact-main > .wpb_column:nth-child(2) > .vc_column-inner > .wpb_wrapper {
        grid-template-columns: 100%;
    }

    .contact-main > .wpb_column:nth-child(2) > .vc_column-inner > .wpb_wrapper :nth-child(5),
    .contact-main > .wpb_column:nth-child(2) > .vc_column-inner > .wpb_wrapper :nth-child(6) {
        grid-column: unset;
    }

    .contact-main {
        padding-top: 70px;
        padding-bottom: 35px;
    }

    .contact-form {
        padding-top: 35px;
        padding-bottom: 35px;
    }
}

/*Product page*/
@media only screen and (max-width: 767px) {

    .product-tabs-row {
        padding-top: 70px;
        padding-bottom: 15px;
    }

    .product-cat-tabs .vc_tta-panel-heading {
        background: none !important;
        border: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.5) !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .product-cat-tabs .vc_tta-panel-heading .vc_tta-panel-title a {
        color: var(--black) !important;
        font-weight: 300;
        font-size: 20px;
        text-align: left;
        padding: 20px 0 !important;
    }

    .product-cat-tabs .vc_tta-panel-heading .vc_tta-panel-title:hover a,
    .product-cat-tabs .vc_tta-panels-container .vc_active .vc_tta-panel-heading .vc_tta-panel-title a{
        color: var(--orange) !important;
    }
}

/*woocomerce*/
@media only screen and (max-width: 999.98px) {
    .woocommerce.single-product  div.woocommerce-product-gallery{margin-bottom: 20px}

    .woocommerce.single-product .product-entry-wrapper > .entry-summary {padding-left: 0;}

    .woocommerce.single-product article section.related {margin-top: 70px;}

    .woocommerce ul.products{
        --shop-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
.product-cat-tabs .vc_tta-panel-body{margin-bottom: 35px}

    .woocommerce .ct-container-full {
        padding-top: 70px;
        padding-bottom: 50px;
    }
}

@media only screen and (max-width: 479px) {
    .woocommerce ul.products{
        --shop-columns: repeat(1, minmax(0, 1fr));
    }

    .woocommerce ul.products li.product .ct-image-container img{
        /*aspect-ratio: 2/1 !important;*/
        /*object-fit: co;*/
        object-position: center;
    }
}

/*cf7*/
@media only screen and (max-width: 767px) {
    .contact-form .form {grid-template-columns: 100%;}

    .contact-form .form #msg, .contact-form .form #company-name {grid-column: 1/2;}
}

/*justify*/
@media only screen and (max-width: 767px) {
    .home-about .wpb_text_column:not(.all-title),
    .home-core > .wpb_column .wpb_text_column:not(.all-title),
    .about-content .wpb_text_column:not(.all-title),
    .project-main .wpb_text_column:not(.all-title){
        text-align: justify;
    }

    /*.service-main .wpb_text_column:not(.all-title) p[style="text-align: center;"]{*/
    /*    text-align: justify !important;*/
    /*    text-align-last: center;*/
    /*}*/
}