.blog-menu {
    margin-bottom: var(--space-5);
}

.blog-menu__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
}


.blog-menu__item--has-image .blog-menu__link.action-button::before {
    background: none;
}

.blog-menu__link {
    background-size: contain;
    background-repeat: no-repeat;
    border-color: transparent !important;
    z-index: 2;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: .5rem !important;
}

.blog-menu__item:not(.current-menu-item) .blog-menu__link {
    background: var(--brand-muted);
}

.blog-menu__item {
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    background: var(--brand-muted);
    flex: 1;
    text-align: center;
}

.blog-menu__item .action-button__label {
    position: relative;
    z-index: 1;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.blog-menu__item:hover .action-button__label {
    color: var(--text);
    transition: all 0.3s ease;
}


.blog-menu__item.current-menu-item {
    background-color: var(--brand);
}

.blog-menu__item.current-menu-item .blog-menu__link {
    color: var(--bg-white)
}

.blog-menu__item img {
    position: absolute;
    opacity: .1;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    left: -.6rem;
    z-index: 1;
}


.blog-menu__item:hover img {
    opacity: .2;
    transition: all 0.3s ease;
}

.blog-menu__item.current-menu-item img {
    opacity: .2;
}


.blog-menu__item.current-menu-item .action-button__label {
    color: var(--bg-white);
}

/* Below 1024: horizontal scroll; script.js keeps .current-menu-item centered. */
@media (max-width: 1024px) {
    .blog-menu__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .blog-menu__list::-webkit-scrollbar {
        display: none;
    }

    .blog-menu__item {
        flex: 0 0 auto;
        text-align: center;
    }

    .blog-menu__link {
        padding: .5rem 1.8rem !important;
    }
}