.author-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0;
    grid-row-gap: 1rem;
    align-items: center;
    justify-content: center;

    @media print, screen and (min-width: 40em) {
       grid-template-columns: repeat(2, 1fr);
    }

    @media print, screen and (min-width: 64em) {
       grid-template-columns: repeat(3, 1fr);
    }

    > div {
        border-bottom: solid 2px #E5E5E5;
    }

    > div:nth-last-child(1)
    {
            border-color: transparent;
    }

    @media print, screen and (min-width: 40em) {
        > div:nth-last-child(1),
        > div:nth-last-child(2):nth-child(2n + 1)
        {
                border-color: transparent;
        }
    }

    @media print, screen and (min-width: 64em) {
        > div:nth-last-child(1),
        > div:nth-last-child(2):not(:nth-child(3n + 3)),
        > div:nth-last-child(3):nth-child(3n + 1)
        {
                border-color: transparent;
        }
    }

    .author-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1.75rem;

        @media print, screen and (min-width: 64em) {
            padding: 3rem 1.75rem;
        }

        .position {
            text-align: center;
        }
    }

    .avatar {
        margin-bottom: 1rem;

         @media print, screen and (min-width: 64em) {
            height: 275px;
            width: 275px;
            object-fit: contain;
        }
    }

    .avatar img {
        margin-bottom: 0;
    }
}