/* ============================================================
   CUSTOM MEGA MENU
   ============================================================ */

.custom-mega-menu {
    position: absolute;

    top: calc(100% + 12px);

    left: 0;

    width: 844px;
    max-width: 90vw;

    background: #000000;

    z-index: 9999999;

    display: none;

    border-radius: 8px;

    border: 2px solid #4D4D4D;

    box-shadow: 8px 8px 24px 0px rgba(0, 0, 0, 0.4);
}


/* ============================================================
   LINKS
   ============================================================ */

.custom-mega-menu a {
    color: var(--primary-white) !important;

    display: block;

    font-family: var(--font_chiswick);

    font-size: var(--font_size-32) !important;

    font-weight: var(--font_weight_300);

    letter-spacing: 0.32px !important;
}


/* ============================================================
   PARENT MENU ITEM
   ============================================================ */

.menu-item.has-custom-mega-menu {
    position: relative;
}


/* ============================================================
   HOVER BRIDGE
   ============================================================ */

.menu-item.has-custom-mega-menu::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;
    height: 20px;

    z-index: 9999998;
}


/* ============================================================
   OPEN
   ============================================================ */

.menu-item.has-custom-mega-menu:hover > .custom-mega-menu {
    display: block;
}


/* ============================================================
   WRAPPER
   ============================================================ */

.custom-mega-menu__wrapper {
    display: grid;

    grid-template-columns:
        1.07fr
        1fr
        1fr;

    column-gap: 24px;

    min-height: 214px;
}


/* ============================================================
   LEFT — IMAGE
   ============================================================ */

.custom-mega-menu__left {
    position: relative;

    overflow: hidden;

    border-radius: 8px 0 0 8px;

    min-width: 0;
}


.custom-mega-menu__image {
    position: absolute;

    inset: 0;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


.custom-mega-menu__image.is-active {
    opacity: 1;

    visibility: visible;
}


.custom-mega-menu__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ============================================================
   CENTER — MENU ITEMS
   ============================================================ */

.custom-mega-menu__center {
    display: flex;

    flex-direction: column;

    justify-content: center;

    /*
     * IMPORTANT:
     * Do NOT use width: max-content.
     *
     * The center column must maintain a fixed grid width
     * so the right column never moves.
     */

    width: 100%;

    min-width: 0;
}


.custom-mega-menu__category {
    display: block;

    width: max-content;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.custom-mega-menu__category:hover,
.custom-mega-menu__category.is-active {
    opacity: 1;
}


.custom-mega-menu__category:not(.is-active) {
    opacity: 1;
}


/* ============================================================
   RIGHT — DYNAMIC CONTENT
   ============================================================ */

.custom-mega-menu__right {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    width: 100%;

    min-width: 0;

    text-align: left;

    overflow: hidden;
}


/* ============================================================
   RIGHT — CONTENT
   ============================================================ */

.custom-mega-menu__content {
    width: 100%;

    max-width: 60%;

    text-align: left;

    opacity: 1;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.custom-mega-menu__content.is-active {
    opacity: 1;

    visibility: visible;
}


/* ============================================================
   RIGHT — DESCRIPTION
   ============================================================ */

.custom-mega-menu__description {
    width: 100%;

    max-width: 100%;

    text-align: left;

    overflow-wrap: break-word;
}


.custom-mega-menu__description p {
    display: block;

    width: 100%;

    max-width: 100%;

    margin: 0;

    color: var(--primary-white) !important;

    font-size: var(--font_size-14) !important;

    font-style: normal;

    font-weight: 600;

    line-height: 164.286% !important;

    letter-spacing: 1.4px;

    text-align: left;

    text-transform: var(--text_uppercase);

    -webkit-font-smoothing: antialiased;

    font-stretch: normal !important;

    font-synthesis: none !important;

    white-space: normal;

    overflow-wrap: break-word;

    word-break: normal;
}

.custom-mega-menu a.is-active {
    color: var(--metallic-royal-gold) !important;
}

.has-custom-mega-menu.is-active > a {
    color: var(--metallic-royal-gold) !important;
}