#portfolio_menu span i,
.mobile_portfolio_menu-toggle span i {
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    -ms-transition: -ms-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
}

#portfolio_menu span i,
.mobile_portfolio_menu-toggle span i {
    transform: rotate(90deg) !important;
    -webkit-transform: rotate(90deg) !important;
    -moz-transform: rotate(90deg) !important;
}

.dropdown-portfolio-content {
    display: none;
    position: absolute;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

body.taxonomy-sbc_portfolio-category .term-description-wrap {
    display: none;
}

@media screen and (min-width: 1000px) {
    .dropdown-item {
        float: left;
        overflow: hidden;
    }
    .dropdown-item .dropbtn {
        font-size: 16px;
        border: none;
        outline: none;
        color: white;
        padding: 14px 16px;
        background-color: inherit;
        font: inherit;
        margin: 0;
    }
    .dropdown-portfolio-content {
        display: none;
        flex-wrap: wrap;
        justify-content: flex-start;
        position: fixed !important;
        width: 100% !important;
        left: 0;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
        overflow: visible;
        background: #fff;
        max-width: 1164px;
        left: 0;
        right: 0;
        margin: 0 auto !important;
        padding: 20px 50px !important;
    }
    #portfolio_menu:hover .dropdown-portfolio-content {
        display: flex;
    }
    .dropdown-portfolio-content.row {
        margin: 40px 40px 0;
    }
    .dropdown-portfolio-content.row .column a {
        line-height: 24px;
    }
    .dropdown-item:hover .dropdown-item-content {
        display: block;
    }
    /* Create three equal columns that floats next to each other */
    .dropdown-portfolio-content .column {
        float: left !important;
        width: 20% !important;
        padding: 10px !important;
        height: 100% !important;
        margin-bottom: 40px !important;
    }
    .dropdown-portfolio-content .column a {
        float: none;
        color: black;
        padding: 16px;
        text-decoration: none;
        display: block;
        text-align: left;
        width: 100%;
        line-height: normal !important;
    }
    .dropdown-portfolio-content.row:after {
        content: '';
        display: table;
        clear: both;
    }
    .mobile_portfolio_menu_arrow {
        display: none;
    }
    .dropdown-portfolio-content .column.sub_menu {
        display: block;
    }
    .dropdown-portfolio-content .column i {
        display: none;
    }
    .dropdown-portfolio-content .underline_title {
        display: block;
        margin: 10px 0;
        max-width: 180px;
    }
    .mobile_portfolio_menu-toggle {
        display: none;
        cursor: pointer;
    }

    #portfolio_menu:hover > div span i {
        transform: rotate(-90deg) !important;
        -webkit-transform: rotate(-90deg) !important;
        -moz-transform: rotate(-90deg) !important;
    }

    .dropdown-portfolio-content .sub_menu {
        display: block;
    }
}

@media screen and (min-width: 1001px) {
    #portfolio_menu:hover .dropdown-portfolio-content {
        display: flex;
    }
    .dropdown-portfolio-content {
        display: none;
    }
}
@media screen and (max-width: 1000px) {
    .dropdown-portfolio-content {
        box-shadow: none !important;
    }
    .dropdown-portfolio-content .underline_title {
        display: none;
    }
    .dropdown-portfolio-content .column {
        height: auto;
    }
    .dropdown-portfolio-content .column .sub_menu {
        display: none;
    }
    .mobile_portfolio_menu-toggle a,
    .mobile_portfolio_menu-toggle h3,
    .mobile_portfolio_menu-toggle a span,
    .mobile_portfolio_menu-toggle > span.mobile_portfolio_menu_arrow i {
        color: white;
        color: var(--main-nav-color) !important;
    }
    .mobile_portfolio_menu-toggle a,
    .mobile_portfolio_menu-toggle h3,
    .mobile_portfolio_menu-toggle a span {
        font-size: 13px;
    }

    .mobile_portfolio_menu-toggle a {
        pointer-events: none;
    }

    #portfolio_menu .is-active span i,
    .mobile_portfolio_menu-toggle.is-active span i {
        transform: rotate(-90deg) !important;
        -webkit-transform: rotate(-90deg) !important;
        -moz-transform: rotate(-90deg) !important;
    }

    .mobile_portfolio_menu-toggle > span.mobile_portfolio_menu_arrow i {
        font-size: 20px;
    }
    .mobile_portfolio_menu-toggle > span.mobile_portfolio_menu_arrow {
        cursor: pointer;
        display: inline-block;
        float: right;
        height: 46px;
        line-height: 46px;
        margin: 0;
        padding: 0 10px 0 0;
        position: absolute;
        top: 0;
        right: 0;
        text-align: right;
        width: 50px;
        z-index: 9000;
        -webkit-tap-highlight-color: transparent;
    }
    .dropdown-portfolio-content.sub_menu {
        display: none;
    }
}
