/*
 * The Author Central — Portfolio-only centered alignment
 *
 * This is an intentional exception to the site-wide left-alignment standard.
 * The rules are scoped to #tacxPortfolioShowcase so no other section is changed.
 */

/* Portfolio eyebrow, heading, and introductory copy. */
html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__head {
    text-align: center !important;
}

html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__head h2,
html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__head p {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Keep all portfolio category filters centered, including on mobile. */
html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__tabs {
    justify-content: center !important;
    text-align: center !important;
}

/* Center each book title and its category/genre caption. */
html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__meta,
html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__meta h3,
html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__meta p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Carousel navigation and portfolio action buttons stay centered. */
html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__controls,
html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__ctas {
    justify-content: center !important;
}

/* On narrow screens, wrap category buttons into centered rows instead of
   leaving a left-aligned horizontal strip. */
@media (max-width: 767px) {
    html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__tabs {
        justify-content: center !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }

    html body #tacxPortfolioShowcase.tacx-portfolio-showcase .tacx-portfolio-showcase__tab {
        flex: 0 0 auto;
    }
}
