<style>
    .branding,
    .branding .header__nav > div:last-child:before,
    .branding .header__nav__stick,
    .branding .header .mb-header__open,
    .branding .header > .container-fluid {
        background: <?php echo get_term_meta($termid,'bgcolor',1); ?>;
    }
    <?php if(strlen(get_term_meta($termid,'bgcolor',1)) >= 7): ?>
    .branding .read-more-wrap {
        background: -moz-linear-gradient(top,  <?php echo hex2rgba(get_term_meta($termid,'bgcolor',1), 0); ?> 0%, <?php echo hex2rgba(get_term_meta($termid,'bgcolor',1), 1); ?> 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  <?php echo hex2rgba(get_term_meta($termid,'bgcolor',1), 0); ?> 0%,<?php echo hex2rgba(get_term_meta($termid,'bgcolor',1), 1); ?> 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom,  <?php echo hex2rgba(get_term_meta($termid,'bgcolor',1), 0); ?> 0%,<?php echo hex2rgba(get_term_meta($termid,'bgcolor',1), 1); ?> 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00<?php echo str_replace('#', '', get_term_meta($termid,'bgcolor',1)); ?>', endColorstr='<?php echo get_term_meta($termid,'bgcolor',1); ?>',GradientType=0 ); /* IE6-9 */
    }
    <?php endif; ?>
    @media screen and (min-width: 992px) {
        .branding .header__widgets > .container-fluid > .row:before {
            background-image: url(<?php echo $taxImages->tax_logo_taxonomy_image_url( $termid, NULL, TRUE, 'bg_left' ); ?>);
        }
        .branding .header__widgets > .container-fluid > .row:after {
            background-image: url(<?php echo $taxImages->tax_logo_taxonomy_image_url( $termid, NULL, TRUE, 'bg_right' ); ?>);
        }
        .branding {
            background: <?php echo get_term_meta($termid,'bgcolor',1); ?> url(<?php echo $taxImages->tax_logo_taxonomy_image_url( $termid, NULL, TRUE, 'bg_top' ); ?>) no-repeat 50% 0%;
        }
    }
</style>
