/**
 * Card
 */

.relationInfo__card {
    width: 100%;
    color: #717171;
}

.relationInfo__photo {
    position: relative;
    width: 100%;
}

.relationInfo__photo {
    background: #f8f8f8;
    background-size: 60%;
    overflow: hidden;
}

.relationInfo__photo img {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
}

.relationInfo__phoneBlock {
    font-size: 0.85em;
    margin: 15px 0 0;
}

.relationInfo__phone {
    display: inline-block;
    text-decoration: none;
    color: #717171;
    line-height: 1.6em;
}

.relationInfo__phone:nth-child(even):before {
    content: '|';
    color: #0c6287;
    font-size: 9px;
    margin: 0 5px 0 0;
    position: relative;
    bottom: 3px;
}

.relationInfo__name {
    text-transform: uppercase;
    font-size: 1em;
}

@media screen and (max-width: 768px) {
    .relationInfo__name {
        margin: 13px 0 0;
    }
}

.relationInfo__link--profile {
    text-decoration: none;
    color: #333;
}

.relationInfo__department {
    font-style: oblique;
    /* font-weight: lighter; */
    font-size: 0.85em;
}

.relationInfo__address {
    font-size: 0.85em;
    line-height: 1.3em;
    word-wrap: break-word;
}

.relationInfo__description {
    margin: 20px 0;
    font-size: 0.8em;
    line-height: 1.3em;
}

/**
 * Relation list
 */

.relationInfoList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.relationInfoList > li {
    position: relative;
    overflow: hidden;
    float: left;
    margin-bottom: 30px;
    width: 100%;
    background-color: #fff;
}

.relationInfoList > li:nth-child(odd) {
    clear: left;
}

.relationInfoList > li:nth-child(even) {
    margin: 0 0 30px;
}

@media screen and (min-width: 768px) {
    .relationInfoList {
        display: flex;
        flex-wrap: wrap;
    }

    .relationInfoList > li {
        width: calc(50% - 30px);
    }

    .relationInfoList > li:nth-child(odd) {
        margin: 0 30px 30px 15px;
    }
}

@media screen and (min-width: 1024px) {
    .relationInfoList > li {
        width: calc(25% - 30px);
        margin: 0 30px 0 0;
    }

    .relationInfoList > li:nth-child(odd),
    .relationInfoList > li:nth-child(even) {
        margin: 0 30px 30px 0;
    }

    .relationInfoList > li:nth-child(4n) {
        clear: left;
        margin: 0;
    }
}