/* Category and tag navigation strips. */
.ace-subcat-shell {
    position: relative;
}

.ace-subcat-list {
    margin: 0;
    padding: 0;
}

.ace-subcat-shell .ace-subcat-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.ace-subcat-shell .ace-subcat-list::-webkit-scrollbar {
    display: none;
}

.ace-tag-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.ace-tag-strip::-webkit-scrollbar {
    display: none;
}

.ace-tag-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.25rem;
    margin-right: 0.25rem;
}

.ace-tag-clear:hover {
    color: #dc3545;
}

.ace-tag-clear i {
    line-height: 1;
}

.ace-subcat-shell::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.ace-subcat-item {
    flex: 0 0 auto;
}

.ace-subcat-btn {
    white-space: nowrap;
    border-radius: 999px;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
}

@media (min-width: 992px) {
    .ace-tag-strip {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .ace-subcat-shell .ace-subcat-list {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .ace-subcat-shell::after {
        content: none;
    }

    .ace-subcat-shell {
        justify-content: center;
    }
}
