/* ============================================================
   UH single author page. Loaded by author.hbs only.
   Scoped to .uh-author-hero: tag.hbs shares .column-layout-grid.
   ============================================================ */

@media (min-width: 992px) {
    /* Ordered, not reordered in the markup: the mobile stack hides this
       column and shows #author-mobile-image instead. */
    .uh-author-hero .column-layout-grid {
        grid-template-columns: clamp(200px, 20vw, 320px) 1fr;
    }

    .uh-author-hero .author-center-column {
        order: -1;
    }

    .uh-author-hero .text-card-paragraph {
        max-width: none;
    }
}

@media (max-width: 991px) {
    #author-mobile-image .small-card-image-wrapper {
        aspect-ratio: 1 / 1;
    }
}

.section-heading + .uh-card-grid {
    margin-top: clamp(16px, 1.6vw, 28px);
}

@media (max-width: 991px) {
    .uh-author-hero .left-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto auto;
        column-gap: 20px;
        row-gap: 20px;
        align-items: start;
    }

    .uh-author-hero .left-column > * {
        grid-column: 1 / -1;
    }

    .uh-author-hero #author-mobile-image {
        grid-column: 1;
        grid-row: 1 / span 3;
        margin-top: 0;
        margin-bottom: 0;
    }

    .uh-author-hero .text-card {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        align-items: flex-start;
        padding: 0;
        border: 0;
    }

    .uh-author-hero #author-socials {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        width: auto;
        border: 0;
        padding: 0;
    }

    .uh-author-hero #author-socials > span {
        display: none;
    }

    .uh-author-hero #author-socials .socials {
        justify-content: flex-start;
    }

    .uh-author-hero #number-of-articles {
        display: flex;
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        width: auto;
        border: 0;
        padding: 0;
    }

    .uh-author-hero #number-of-articles > span:first-child {
        display: none;
    }

    .author-work-grid-section .section-heading {
        display: none;
    }
}
