/**
* Mod_relation: Public relation list
*/

/* relation icons */
.relationList__image:before, .relationList__keywords__item:before, .relationList__detailPageUrl:after {
    font-family: "EESPA-icons-2022";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    text-decoration: none;
    text-transform: none
}

.relationList {
    list-style: none;
    padding: 0;
    display: -ms-flexbox;
    display: flex;
    margin: var(--eespa-spacer-xxxl) 0 var(--eespa-spacer-xl);
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-direction: column;
    flex-direction: column
}

.relationList > li {
    list-style-image: none
}

.relationList > li::before {
    background: none
}

.relationList + .relationList {
    padding-top: 0
}

@media (min-width: 48em) {
    .relationList {
        -ms-flex-direction: row;
        flex-direction: row
    }
}

.relationList__item {
    transition: box-shadow .25s cubic-bezier(0, 0, 0.3, 1), transform .25s cubic-bezier(0, 0, 0.3, 1);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-bottom: var(--eespa-spacer-xxl);
    position: relative;
    box-shadow: var(--boxShadow);
    max-width: 100%;
    border-radius: 0;
    cursor: pointer;
    border-bottom: 5px solid var(--eespa-tertiary);
}

.relationList__item:hover {
    box-shadow: var(--eespa-shadow-hover);
    transform: translateY(-5px);
}

.relationList__item:hover .relationList__image img {
    transform: scale(1.02);
    opacity: 1
}

.relationList__item:hover .relationList__image::before {
    font-size: calc(var(--eespa-txtSize-2) + .25rem);
    /* color: var(--eespa-clr-link-hover) */
}

.relationList__item:hover .relationList__name {
    color: var(--eespa-clr-link-hover)
}

@media (min-width: 48em) {
    .relationList__item {
        margin-right: var(--eespa-spacer-reg);
        -ms-flex: 0 0 calc((100% - var(--eespa-spacer-reg) * (2 - 1)) / 2);
        flex: 0 0 calc((100% - var(--eespa-spacer-reg) * (2 - 1)) / 2);
        max-width: calc((100% - var(--eespa-spacer-reg) * (2 - 1)) / 2)
    }

    .relationList__item:nth-child(2n), .relationList__item:last-child {
        margin-right: 0
    }

    .relationList__item:nth-child(2n) {
        margin-right: 0
    }
}

@media (min-width: 62em) {
    .relationList__item {
        margin-right: var(--eespa-spacer-reg);
        -ms-flex: 0 0 calc((100% - var(--eespa-spacer-reg) * (3 - 1)) / 3);
        flex: 0 0 calc((100% - var(--eespa-spacer-reg) * (3 - 1)) / 3);
        max-width: calc((100% - var(--eespa-spacer-reg) * (3 - 1)) / 3)
    }

    .relationList__item:nth-child(3n), .relationList__item:last-child {
        margin-right: 0
    }

    .relationList__item:nth-child(2n) {
        margin-right: var(--eespa-spacer-reg)
    }

    .relationList__item:nth-child(3n) {
        margin-right: 0
    }
}

@media (min-width: 75em) {
    .relationList__item {
        margin-right: var(--eespa-spacer-reg);
        -ms-flex: 0 0 calc((100% - var(--eespa-spacer-reg) * (4 - 1)) / 4);
        flex: 0 0 calc((100% - var(--eespa-spacer-reg) * (4 - 1)) / 4);
        max-width: calc((100% - var(--eespa-spacer-reg) * (4 - 1)) / 4)
    }

    .relationList__item:nth-child(4n), .relationList__item:last-child {
        margin-right: 0
    }

    .relationList__item:nth-child(2n), .relationList__item:nth-child(3n) {
        margin-right: var(--eespa-spacer-reg)
    }

    .relationList__item:nth-child(4n) {
        margin-right: 0
    }
}

.relationList__header {
    /*border-top-left-radius: var(--eespa-brdr-radius);
    border-top-right-radius: var(--eespa-brdr-radius);*/
    background: var(--eespa-clr-bg-body);
    height: 96px;
    width: 100%;
    min-height: calc(100px + 2rem);
    padding-top: 2rem;
    flex: 0 0 100px;
    justify-content: center;
    align-items: center;
    display: flex;
    background: linear-gradient(180deg, var(--eespa-clr-theme-light) calc(50% + 1rem), #ffffff calc(50% + 1rem));
}

.relationList__nameAndFunction {
    min-height: var(--eespa-spacer-xxxl)
}

.relationList__mainActivity, .relationList__function {
    display: inline-block;
    color: var(--eespa-clr-txt-meta);
    font-size: var(--eespa-txtSize-6);
    margin-bottom: var(--eespa-spacer);
    line-height: var(--eespa-lnHeight-sm)
}

.relationList__details {
    border-bottom-left-radius: var(--eespa-brdr-radius);
    border-bottom-right-radius: var(--eespa-brdr-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 0 var(--eespa-spacer-md) var(--eespa-spacer-lg);
    background: var(--eespa-clr-bg-body)
}

.relationList__details > a {
    text-decoration: none
}

.relationList__details > a:hover {
    color: var(--eespa-clr-link-hover)
}

.relationList__details .relationList-employee__firstName {
    display: none
}

@media (min-width: 48em) {
    .relationList__details {
        width: 100%
    }

    .relationList__details::after {
        display: none
    }
}

.relationList__name {
    transition: all .25s ease-in-out;
    display: none;
    color: var(--eespa-clr-txt-body);
    margin-bottom: var(--eespa-spacer-xs);
    font-size: var(--eespa-txtSize-5);
    font-weight: var(--eespa-txt-bold);
    line-height: var(--eespa-lnHeight-sm)
}

.--marketplace .relationList__name {
    display: block;
}

.relationList__image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--eespa-spacer-sm);
    position: relative;
    /* top: 42px; */
    /* left: var(--eespa-spacer-md); */
    z-index: 3;
    width: calc(100% - 3rem);
    min-height: 100px;
    margin: 0 0 var(--eespa-spacer-xs);
    border-radius: 0;
    /* overflow: hidden; */
    vertical-align: middle;
    background: var(--eespa-clr-theme-light);
    border: 4px solid var(--eespa-clr-brdr-white);
}

.relationList__image::before {
    content: "\e012";
    transition: font-size .75s cubic-bezier(0, 0, 0.3, 1);
    font-size: var(--eespa-txtSize-2);
    color: var(--eespa-clr-theme);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    /*border: 1px solid var(--eespa-clr-theme-brdr);
    padding: var(--eespa-spacer-md);
    border-radius: 50%;
    width: 80px;
    height: 80px;*/

}

.relationList__image img {
    transition: transform .75s cubic-bezier(0, 0, 0.3, 1), opacity .75s cubic-bezier(0, 0, 0.3, 1);
    display: block;
    width: 100%;
    max-width: calc(100% - 1.5rem);
    max-height: calc(100% - 1.5rem);
    -o-object-fit: contain;
    object-fit: contain;
    opacity: .95;
    height: auto;
    position: absolute;
    z-index: 3
}

.relationList__image .relationList__image__background {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--eespa-clr-bg-body)
}

.relationList__image::before {
    /*transition: font-size .75s cubic-bezier(0, 0, 0.3, 1);
    font-size: var(--eespa-txtSize-3);
    color: var(--eespa-clr-theme);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1*/
}

.relationList__keywords {
    margin-top: var(--eespa-spacer-xxs)
}

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

.relationList__keywords__list > li {
    list-style-image: none
}

.relationList__keywords__list > li::before {
    background: none
}

.relationList__keywords__item {
    transition: all .25s ease-in-out;
    font-size: var(--eespa-txtSize-8);
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-weight: var(--eespa-txt-regular);
    color: var(--eespa-clr-txt-body);
    padding: var(--eespa-spacer-xs) var(--eespa-spacer-sm);
    line-height: var(--eespa-lnHeight-xxs);
    background-color: var(--eespa-clr-theme-light);
    border-radius: var(--eespa-btn-brdr-radius-xs);
    border: none;
    min-height: var(--eespa-btn-xs-height);
    margin-right: var(--eespa-spacer-xxs);
    margin-bottom: var(--eespa-spacer-xxs);
    text-decoration: none;
    display: inline-block;
    cursor: inherit
}

.relationList__keywords__item:before {
    content: "\e035"
}

.relationList__keywords__item::before {
    transition: all .25s ease-in-out;
    opacity: 0.8;
    display: inline-block;
    margin-right: var(--eespa-spacer-xs)
}

.relationList__keywords__item:hover {
    color: var(--eespa-clr-txt-dark) !important;
    background-color: var(--eespa-clr-theme-light-hover);
    cursor: pointer
}

.relationList__keywords__item > a {
    text-decoration: none
}

.relationList__keywords__item:last-child {
    margin-right: 0
}

.relationList__keywords__item:hover {
    cursor: default
}

.relationList__businessdescription {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    line-height: var(--eespa-lnHeight-sm);
    color: var(--eespa-clr-theme);
}

.relationList__detailPageUrl {
    transition: color .25s cubic-bezier(0, 0, 0.3, 1);
    text-decoration: none;
    font-weight: var(--eespa-txt-semibold);
    color: var(--eespa-clr-theme);
    text-align: center;
    width: 100%;
}

.relationList__detailPageUrl:hover {
    color: var(--eespa-clr-link-hover);
}

.relationList__detailPageUrl::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
}
