﻿.directory-results {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
}

.directory-result.member {
    flex-basis: 30%;
    flex-grow: 1;
    max-width: calc(33% - 1.333333em);
    position: relative;
    text-align: center
}

.directory-result.member img {
    height: 12.5em !important;
    width: 100%;
    object-fit: contain;
}

.directory-result .chip {
    position: absolute;
    font-size: .9em;
    display: inline-block;
    color: #fff;
    padding: .5em 1em;
    border-radius: 1em/50%;
    line-height: 1;
    font-weight: 500;
}

.directory-result .chip.distance {
    background: var(--brown);
    top: .25em;
    left: .25em;
}

.directory-result .chip.virtual {
    background: var(--green);
    bottom: .25em;
    right: .25em;
}

.directory-result h3 {
    margin-bottom: .25rem;
}

.directory-result h4 {
    color: #777;
    margin-top: 0;
}

.directory-result.speaker {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

.directory-result.speaker .result-image {
    position: relative;
}

.directory-result.speaker img {
    width: 15em;
    height: 15em;
    object-fit: contain;
}

.directory-result.speaker .result-details {
    flex-grow: 1;
}

ul.profile-links {
    list-style: none !important;
    margin-left: 0 !important;
    display: flex;
    font-size: 2em;
    gap: .5em;
    flex-wrap: wrap;
    margin-bottom: .5em !important;
}

.profile-image {
    width: 100%;
    max-height: 20em;
    object-fit: contain;
}

.pre-line {
    white-space: pre-line;
}

.member-profile-page hr {
    width: 20em;
    max-width: 100%;
    height: 2px;
    background: var(--green);
}

@media screen and (max-width: 992px) {
    .directory-result.member {
        flex-basis: 50%;
        max-width: calc(50% - .5em);
    }

    .directory-result.speaker img {
        width: 12.5em;
        height: 12.5em;
    }
}

@media screen and (max-width: 768px) {
    .directory-result.member {
        flex-basis: 100%;
        min-width: none;
        max-width: none;
    }

    .directory-result.speaker {
        flex-direction: column;
        align-items: center;
    }

    .directory-result.speaker h3 {
        text-align: center;
    }

    .directory-result.speaker img {
        width: 100%;
        height: 12.5em;
    }
}