/*
Theme Name: The HUB
Theme URI: https://thehub.it/
Author: Spore.media
Author URI: https://spore.media
Description: 
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thehub
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


/* li.wp-block-navigation-item.current-menu-item {
    background: var(--wp--preset--color--red);
    color:  var(--wp--preset--color--white);
} */

li.wp-block-navigation-item ul a:hover {
    color: var(--wp--preset--color--yellow);
}

span.enfasi {
    font-size: 1.75em;
    font-family: var(--wp--preset--font-family--untitled-serif);
    line-height: 0.8;
}

/* TEAM BANNER */
.wp-block-columns.thehub-team-member .wp-block-column:nth-child(1) {
    order: 1;
}

.wp-block-columns.thehub-team-member .wp-block-column:nth-child(2) {
    order: 2;
}

.wp-block-columns.thehub-team-member .wp-block-column:nth-child(3) {
    order: 3;
}

@media (max-width: 782px) {
    .wp-block-columns.thehub-team-member .wp-block-column:nth-child(1) {
        order: 1;
    }

    .wp-block-columns.thehub-team-member .wp-block-column:nth-child(2) {
        order: 3;
    }

    .wp-block-columns.thehub-team-member .wp-block-column:nth-child(3) {
        order: 2;
    }
}


/* TEAM COLUMN */
.thehub-team-member-column>.wp-block-group:nth-child(1) {
    order: 1;
}

.thehub-team-member-column>.wp-block-group:nth-child(2) {
    order: 2;
}

@media (max-width: 782px) {
    .thehub-team-member-column>.wp-block-group:nth-child(1) {
        order: 2;
    }

    .thehub-team-member-column>.wp-block-group:nth-child(2) {
        order: 1;
    }
}


/* MAIN HEADER MENU */
@media (min-width: 782px) {
    .thehub-header-menu .wp-block-navigation>.wp-block-navigation-item {
        padding: 0.5em;
    }

    .thehub-header-menu .wp-block-navigation>.wp-block-navigation-item.current-menu-item,
    .thehub-header-menu .wp-block-navigation>.wp-block-navigation-item.current-menu-ancestor,
    .thehub-header-menu .wp-block-navigation>.wp-block-navigation-item:hover {
        color: var(--wp--preset--color--magenta);
    }

    .thehub-header-menu li.wp-block-navigation-item.has-child.open-on-hover-click.wp-block-navigation-submenu:hover {
        background: var(--wp--preset--color--red);
        color: var(--wp--preset--color--white);
    }

    /* .wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content {
    font-weight: 700;
} */

    .thehub-header-menu .wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content:hover {
        color: var(--wp--preset--color--yellow);
    }

    .thehub-logo-container {
        /* width: calc((100% - var(--wp--preset--spacing--50)) / 2); */
        width: calc(50% - var(--wp--preset--spacing--50));
        overflow: hidden;
    }
}

.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu,
.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container {
    gap: 0;
}

.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container {
    padding-left: var(--wp--preset--spacing--110);
}

.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation-overlay-close svg {
    width: 48px;
    height: 48px;
}