/*!
 * community.css
 * Org logo and group-photo styling for the Community Leadership section.
 * Loaded after theme-modern.css.
 */

/* Logo sits inline with the role heading rather than as a photo-sized block.
   object-fit: contain keeps a square mark square inside the circle, and the
   white backing stops a transparent PNG from picking up the card colour. */
.org-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: .6rem;
}

.org-logo {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 3px;
}

.org-head h4,
.resume .org-head h4 { margin: 0 0 .25rem !important; }

.org-head h5,
.resume .org-head h5 { margin: 0 !important; }

/* Group photo sits at the foot of the card, full bleed to the padding. */
.org-photo {
    margin: 1.1rem 0 0;
}

.org-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--c-border);
}

.org-photo figcaption {
    padding-top: .5rem;
    font-size: .8rem;
    color: var(--c-text-muted);
}

@media (max-width: 400px) {
    .org-head { gap: .7rem; }
    .org-logo { flex-basis: 46px; width: 46px; height: 46px; }
}
