.catitem {
    display: flex;
    align-items: left;
    flex-direction: column;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.catitem:last-of-type {
    border-bottom: none;
}

.catitem .teamlink {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.catitem-member {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 1em;
    font-size: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.teams-category-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.teams-category-container .category-teammembers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1.5rem;
    justify-content: center;
    justify-items: center;
}

.teammember {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
    position: relative;
    border: 1px solid #ddd;
    transition: transform 0.5s ease, box-shadow 0.5s ease;

    max-width: 450px;
    width: 100%;
}

.teammember:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.teammember picture.no-teammember-image {
    background-color: rgb(228, 228, 228);
    border: 1px solid rgb(221, 221, 221);
}

.teammember picture,
.teammember img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.teammember-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}

.teammember span.name {
    text-align: center;
    font-weight: bold;
    padding: 0 10px;
}

.teammember span.title {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 0 10px;
    padding-bottom: 10px;
}

.catitem-member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.catitem-member span {
    font-weight: normal;
}

p.backlink a {
    color: var(--brand-b-bg);
    text-decoration: none;
}

p.backlink a:hover {
    color: var(--brand-b-hilite);
    text-decoration: underline;
}

p.backlink {
    margin: 20px 0;
    font-size: 1.2rem;
}


/* Team Member Page */

.teams-member-container picture {
    float: right;
    padding: 1rem;
}

.teams-member-container picture img {
    max-width: 375px;
    width: 100%;
}

@media (max-width: 600px) {
    .teams-member-container picture {
        float: unset;
    }
}