/* Keep the legacy roster widths, but center the last row. */
.artist-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.artist-grid > .artist {
    box-sizing: border-box;
    flex: 0 0 100%;
    min-width: 0;
    padding-inline: 15px;
}

@media (min-width: 992px) {
    .artist-grid--three > .artist {
        flex-basis: calc(100% / 3);
    }

    .artist-grid--two > .artist {
        flex-basis: 50%;
    }
}

/* Roster entries with an Instagram profile but no on-site cover photo yet. */
.artist-grid .artist-profile-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    color: inherit;
}
.artist-grid .artist-profile-badge {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 8px auto;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 2rem;
}
.artist-grid .artist-profile-label {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.artist-grid .artist-profile-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Keep roster avatars square and inside their grid columns at every width. */
#tattoo .artist-grid .roster-avatar,
#piercing .artist-grid .roster-avatar {
    width: min(400px, 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}
