@import url('publicRelationDetail.css');
@import url('publicRelationTopContainer.css');
@import url('publicRelationListFeatured.css');
@import url('publicRelationListSearch.css');

/**
 *  Public Relation list
 */

.relation-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding: 0;
    list-style: none;
}

.relation-list li {
    -ms-flex-preferred-size: 15%;
    flex-basis: 15%;
    display: inline-block;
    margin: 0 auto 2em;
    vertical-align: top;
    text-align: center;
}

.plor-participant {
    width: 144px;
    height: 144px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0,0,0,0.3);
}

.plor-participant:hover:before {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

.plor-participant--hasInfo {
    cursor: pointer;
}

.plor-participant__picture {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 144px;
    height: 144px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
}

.plor-participant:hover .plor-participant__picture::before {
    opacity: .6;
}

.plor-participant__picture img {
    width: 80%;
}

.plor-participant--hasInfo .plor-participant__picture::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    content: '';
    height: 100%;
    width: 100%;
    border-radius: 100%;
    background-color: #1e1e1e;
    opacity: 0;
    transition: opacity .4s cubic-bezier(.165,.84,.44,1);
}

.plor-participant__highlight {
    position: relative;
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #054A8A;
}

.plor-participant__picture + .plor-participant__highlight {
    left: -9999px;
}

.plor-participant__name {
    display: block;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    transition: color .4s cubic-bezier(.165,.84,.44,1);
}

/** Story content **/

.plor-participant__story {
    position: fixed;
    z-index: 5;
    top: 50%;
    left: 50%;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 6em);
    padding: 6em 2em 1em;
    color: #fff;
    opacity: 0;
    background-image: linear-gradient(to right, #0fb4bb, #054a8a);
    visibility: hidden;
    -webkit-transform: translate(-50%, -30%);
    -ms-transform: translate(-50%, -30%);
    transform: translate(-50%, -30%);
    transition: opacity .6s cubic-bezier(.165,.84,.44,1),transform .3s cubic-bezier(.165,.84,.44,1);
}

.plor-participant__fullName {
    max-width: 90%;
    margin-bottom:  1em;
    font-size: 1.5em;
    line-height: 1.2;
    font-family: 'Asap', sans-serif;
    font-weight: 700;
}

.plor-participant__story a {
    text-decoration: none;
    color: #fff;
}

.plor-participant__story p {
    display: block;
}

.plor-participant__bio {
    max-height: calc(100% - 10em);
    overflow: hidden;
    margin-bottom: 2em;
}

.plor-participant__address {
    margin-bottom: 0;
}

.plor-participant__storyImage {
    position: absolute;
    top: calc(-150px / 2);
    left: 0;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 auto;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

.plor-participant__storyImage img {
    width: 80%;
}

.plor-participant__detailViewLink {
    display: block;
}

.plor-participant__detailViewUrl {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.plor-participant__detailViewLink::after {
    content: '\e800';
    font-family: "fontello";
    display: inline-block;
}

/** Open story **/

.plor-participant--openInfo .plor-participant__story {
    opacity: 1;
    -webkit-transform: translate(-50%, -40%);
    -ms-transform: translate(-50%, -40%);
    transform: translate(-50%, -40%);
    transition: opacity .6s cubic-bezier(.165,.84,.44,1),transform .3s cubic-bezier(.165,.84,.44,1);
    visibility: visible;
}

.plor-participant--openInfo::before {
    position: fixed;
    top:  0;
    left: 0;
    z-index: 4;
    width: 100vw;
    height: 100vh;
    display: block;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
    content: '';
}

@media screen and (min-width: 768px) {
    .relation-list li {
        margin: 0 0 2em;
    }

    .plor-participant__story {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        height: 473px;
        width: 473px;
        padding: 2em;
        border-radius: 50%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    .plor-participant__bio {
        max-width: 80%;
    }

    .plor-participant__storyImage {
        top: 5em;
        right: -6em;
        left: auto;
        margin: 0;
    }
}
