body a.fl-button, body .site-inner .fl-builder-content a.fl-button:visited {
    font-family: 'ProximaNova-Extrabld', Arial;
    font-weight: normal;
    border-radius: 50px !important;
    background: #db7803 !important;
    border: 2px solid #db7803 !important;
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
    font-size: 20px !important;
    line-height: 30px !important;
    letter-spacing: 1px;
    padding: 8px 20px !important;
    text-decoration: none;
    text-shadow: none;
}
body a.fl-button:hover {
    background: #fff !important;
    color: #db7803 !important;
}
body.page-template-page-local-case-study-php .portfolio-item a {
    cursor: pointer !important;
}
body.page-template-page-local-case-study-php .thrive-breadcrumb {
    display: block !important;
}
body.page-template-page-local-case-study-php .case-study-main-wrap {
    padding: 0px 0px 20px 0px;
}
body .site-inner .custom_button .fl-module-content a.fl-button {
    border-radius: 8px !important;
}
.subpage-header .wrap {
    padding: 20px 20px 50px 20px !important;
}
body.page-template-page-local-case-study-php .archive-local-case-study .case-s-info h4 {
    display: block !important;font-size: 75px;
}
html body .thrive-breadcrumb.new-breadcrumb p#breadcrumbs span span:nth-child(1) a {
    position: relative;
}
html body .thrive-breadcrumb.new-breadcrumb p#breadcrumbs span span:nth-child(1) a:before {
    background: url(/files/home-icon-1.svg) no-repeat;
    position: absolute;
    content: "";
    left: -15px;
    top: -1px;
    width: 15px;
    height: 15px;
}
body.page-template-page-casestudy-new-layout .portfolio-main #page-heading {
    padding: 20px 0px 20px 0px;
    text-align: center;
}
body.page-template-page-local-case-study-php .archive-local-case-study .case-s-info p {
    display: none !important;
}
body.page-template-page-local-case-study-php .archive-local-case-study .case-s-info h4 sub {
    font-size: 20px;
    font-family: 'ProximaNova-Regular', Arial!important;
    line-height: 28px !important;
    display: block !important; font-weight: 400;
}

body.page-template-page-local-case-study-php .portfolio-item div.overlay>header img {
    transform: translateY(40px) !important;
    transition: 0.6s all ease-in-out;
    opacity: 0;
}

body.page-template-page-local-case-study-php .portfolio-content .portfolio-item:hover header img {
    transform: translateY(0) !important;
    opacity: 1 !important;
}
body.page-template-page-local-case-study-php .portfolio-item div.overlay header img {
    width: auto;
    height: auto;
}

body.page-template-page-local-case-study-php .portfolio-item div.overlay>header img,
body.page-template-page-casestudy-new-layout .portfolio-item div.overlay>header h3 {
    transform: none !important;
    transition: 0.6s all ease-in-out;
    opacity: 0;
}

/*body.page-template-page-local-case-study-php .portfolio-content .portfolio-item {
    max-width: 24% !important;
    width: 24% !important;
    margin: 0 !important;
    padding: 5px !important;
}*/

body.page-template-page-local-case-study-php .portfolio-content .portfolio-item {
    max-width: 24.99% !important;
    width: 25% !important;
    padding: 0 !important;
}
body.page-template-page-local-case-study-php .case-study-thumbnail img { height: 400px; }
.custom-top-content {
    padding: 20px 20px;
    text-align: center;
}

/*body.page-template-page-casestudy-new-layout .case-study-main-wrap {
    padding-left: 20px;
    display: table !important;
    max-width: 100% !important;
    padding-right: 20px;
    margin: 0 auto !important;
}*/
body.page-template-page-local-case-study-php .portfolio-content .portfolio-item header img {
    max-width: 60% !important;
    width: 100%; margin:0 auto;
}
/*body.page-template-page-casestudy-new-layout .case-study-thumbnail {
    border: 1px solid #fff !important;
    position: relative;
}*/
.portfolio-item header{bottom: 10px !important;}
/*body.page-template-page-casestudy-new-layout .portfolio-content .portfolio-item:hover .case-s-info h4 {
    font-family: 'ProximaNova-Regular', Arial !important;
}*/


/* local pages header css starts */
body.page-template-page-local-case-study-php section.subpage-header:before { background: url(/wp-content/themes/thrive-agency/images/thrive-local-subheader-image.svg) no-repeat left bottom; background-size: contain; left: 0; }
body.page-template-page-local-case-study-php section.subpage-header:after, body.page-template-thrive-local-services-full-width .subpage-header:before { content: ""; display: block; width: 45%; height: 100%; position: absolute; bottom: 0; z-index: 0; }
body.page-template-page-local-case-study-php section.subpage-header { background: linear-gradient(to bottom, #edf7d3, #fefffb)!important; }
body.page-template-page-local-case-study-php section.subpage-header:after { background: url(/wp-content/themes/thrive-agency/images/thrive-local-subheader-image.svg) no-repeat left bottom; background-size: contain; transform: rotate(180deg); right: 0; left: auto; }
body.page-template-page-local-case-study-php .subpage-header header h1 { padding-top: 0; }
body.page-template-page-local-case-study-php .subpage-header header h1 { padding-top: 0!important; }
body.page-template-page-local-case-study-php .subpage-header .wrap { padding: 80px 20px 70px 20px !important; }
.new-case-study-design .custom-filter-case-study .filter:nth-last-child(1) {
    padding-right: 0;
}
body.page-template-page-local-case-study-php .portfolio-item div.overlay img.local-case-mob-image{display: none;}

body.page-template.page-template-page-local-case-study .portfolio-main .filter {
    padding: 0 10px 20px 0;
}
body.page-template.page-template-page-local-case-study .portfolio-main .filter select { font-size: 17px; padding: 16px 10px 16px 10px; }
body.page-template.page-template-page-local-case-study .portfolio-main #page-heading {
    max-width: 1280px;
}
body.page-template.page-template-page-local-case-study .portfolio-main #page-heading select {
    font-size: 17px;
    padding: 16px 10px 16px 10px;
}

@media(min-width:950px) {
body.page-template-page-local-case-study-php .site-inner {padding-top:100px; }
}

@media(min-width:961px) and (max-width:1180px) {
body.page-template-page-local-case-study-php .subpage-header .wrap { padding: 93px 20px 70px 20px; }
}

@media (min-width:768px) and (max-width:1180px) {
body.page-template-page-local-case-study-php section.subpage-header:after, body.page-template-thrive-local-services-full-width  section.subpage-header:before { width: 55%; }
body.page-template-page-local-case-study-php section.subpage-header:after, body.page-template-thrive-local-services-full-width.page-id-102995  section.subpage-header:before,
body.page-template-page-local-case-study-php section.subpage-header:after, body.page-template-thrive-local-services-full-width.page-id-101895 section.subpage-header:before  { width: 68% !important;  height: 100% !important;}
.page-id-102995 .subpage-header header h1,
.page-id-101895 .subpage-header header h1 {font-size: 36px;}
html body.page-template.page-template-page-local-case-study .portfolio-main #page-heading select{font-size: 14px; padding:12px 7px;}
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
body.page-template-page-local-case-study-php section.subpage-header:after, body.page-template-thrive-local-services-full-width  section.subpage-header:before { width:58%; }
}

@media (min-width: 1024px) and (max-width: 1024px){
	body.page-template-page-casestudy-new-layout .new-case-study-design .custom-filter-case-study .filter:nth-last-child(1) { padding-right: 0 !important; }
}

@media (min-width: 768px) and (max-width: 1180px) {
    body.page-template-page-local-case-study-php section.subpage-header:after,
     body.page-template-page-local-case-study-php section.subpage-header:before, body.page-template-thrive-local-services-full-width.page-id-101895 section.subpage-header:after, body.page-template-thrive-local-services-full-width.page-id-101895 section.subpage-header:before {
        width: 68% !important;height: 100% !important;
    }
    body.page-template-page-local-case-study-php .subpage-header .wrap {padding: 50px 20px 40px !important;}
body.page-template-page-casestudy-new-layout .portfolio-main #page-heading {padding: 20px;}
body.page-template-page-casestudy-new-layout .new-case-study-design .custom-filter-case-study .filter:nth-last-child(1) { padding-right: 1%; }
}

@media (min-width: 100px) and (max-width: 767px) {
    body.page-template-page-local-case-study-php section.subpage-header:after,
     body.page-template-page-local-case-study-php section.subpage-header:before {
        background: url(/wp-content/themes/thrive-agency/images/thrivelocal-subheadermobile.svg) no-repeat left bottom;
    }
    body.page-template-page-local-case-study-php .case-study-main-wrap div#page-heading {
    padding: 30px 20px;
}
body.page-template-page-local-case-study-php .case-study-main-wrap {
    padding: 0;}
}


@media screen and (min-width: 1024px) and (max-width: 1366px){
	body.page-template-page-local-case-study-php .case-study-thumbnail img {
    height: 352px;
}
body.page-template-page-local-case-study-php .archive-local-case-study .case-s-info h4 {
    font-size: 47px;
}
}

@media screen and (min-width: 1025px) and (max-width: 1280px){
    html body.page-template.page-template-page-local-case-study .portfolio-main #page-heading {
    max-width: 95% !important;}
}

@media screen and (min-width: 1024px) and (max-width: 1024px){
    body.page-template-page-local-case-study-php .case-study-thumbnail img {
        height: 300px;
    }
}

@media screen and (min-width: 821px) and (max-width: 1023px) {
	    body.page-template-page-local-case-study-php .archive-local-case-study .case-s-info h4 {
   font-size: 50px !important;
}
}

@media screen and (min-width: 768px) and (max-width: 960px) {
	body.page-template-page-local-case-study-php .case-study-thumbnail img {
    height: 350px;
}
body.page-template-page-local-case-study-php .portfolio-content .portfolio-item {
        max-width: 50% !important;
        width: 100% !important;
    }
 
}

@media screen and (max-width: 960px){
	body.page-template-page-local-case-study-php .portfolio-item div.overlay>header {
        display: block !important;
    }
	body.page-template-page-local-case-study-php .portfolio-item div.overlay>header img, body.page-template-page-casestudy-new-layout .portfolio-item div.overlay>header h3 {
    transform: none !important;
    transition: 0.6s all ease-in-out;
    opacity: 1;
    position: relative;   
    display: flex;
    justify-content: center;
    margin: 0 auto !important;
    display: table !important;
}
/*body.page-template-page-local-case-study-php .portfolio-item div.overlay>header img {
    height: 70px;
    width: 100%;
    object-fit: contain;
    top: 80%;
}*/
body.page-template-page-local-case-study-php .portfolio-item div.overlay>header img {
    display: none !important;
}
body.page-template-page-casestudy-new-layout .portfolio-item div.overlay>header h3 {
    top: auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
}
body.page-template-page-local-case-study-php .portfolio-item div.overlay img.local-case-mob-image {
    width: auto !important;
    height: auto;
    margin: 0 auto;
    display: table !important;
    position: absolute;
    transition: 0.6s all ease-in-out;
    object-fit: contain;
    top: auto;
    bottom:32px;left: 0;right: 0;
}
}

@media only screen and (max-width: 767px) {
       body.page-template-page-local-case-study-php .portfolio-content .portfolio-item {
        max-width: 100% !important;
        width: 100% !important;
    }


      body.page-template-page-local-case-study-php  .case-s-info {
        transform: none;
        z-index: 99;
        left: 0;
        text-align: center;
        width: 100%;
        padding: 0 18px;
        bottom: 34%;
        top: inherit;

        }
body.page-template-page-local-case-study-php .archive-local-case-study .case-s-info h4 {font-size: 70px;}

}/*body.page-template-page-casestudy-new-layout .portfolio-item div.overlay>header img {
    width: 55%;
    height: auto !important;
    object-fit: contain;
    bottom: 0 !important;
}*/

@media (min-width: 769px) and (max-width: 960px){
body.page-id-111712.page-template-page-casestudy-new-layout .portfolio-item div.overlay>header h3{display: block !important;}
}
@media only screen and (min-width: 768px) and (max-width: 960px) {
    body.page-template.page-template-page-local-case-study .portfolio-main .filter {width: 50%;padding: 0 1% 15px; }
}