/**
 * @author: Procurios
 * @about:  mmt-mdp-speakers.css
 *          Additional layout settings for the "speakers"-page of the meeting detail page
 */

/**
 * Layout of speaker overview
 */

.mmt-mdp-section-speakers ol,
.mmt-mdp-social-media {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmt-mdp-section-speakers li {
    position: relative;
    margin-bottom: 1em;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 568px) {
    .mmt-mdp-section-speakers li {
        flex-direction: row;
    }
}

.mmt-mdp-social-media-text {
    display: none;
}

.mmt-mdp-section-speakers img {
    float: left;
}

.mmt-mdp-has-image .mmt-mdp-speaker-details {
    position: relative;
}

.mmt-mdp-speaker-details h4 {
    margin: 0;
}

@media screen and (min-width: 720px) {
    .mmt-mdp-speaker-details h4 {
        margin: 0 125px 1.2rem 0;
    }
}

.mmt-mdp-social-media {
    justify-content: flex-start;
    margin: .5rem 0 .75rem;
}

@media screen and (min-width: 720px) {
    .mmt-mdp-social-media {
        position: absolute;
        justify-content: flex-end;
        right: 0;
        top: 0;
        margin-top: 0;
    }
}

.mmt-mdp-social-media li {
    position: static;
    margin: 0 5px 0 0;
    border: 0;
    padding: 0;
}

#content .mmt-mdp-social-media .socialMedia__button {
    width: 36px;
    height: 36px;
    background-size: 36px 36px;
}

.mmt-mdp-social-media .socialMedia__button::before {
    font-size: var(--bodySize);
}

/*
* If more then 1, show speaker in grid
 */
.mmt-mdp-section-speakers--grid ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-hor);
}

.mmt-mdp-section-speakers--grid li {
    transition: all var(--transitionTime--fast) ease-in-out;
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    box-shadow: var(--shadow-subtle);
    border-radius: var(--borderRadius);
    transform: scale(1); /** Creates a new stacking context for image animation */
}

.mmt-mdp-section-speakers--grid li.is-active,
.mmt-mdp-section-speakers--grid li:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.01);
}

.mmt-mdp-section-speakers--grid li.is-active .mmt-mdp-section-speakers__imageWrapper img,
.mmt-mdp-section-speakers--grid li:hover .mmt-mdp-section-speakers__imageWrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.mmt-mdp-section-speakers--grid li.is-active .mmt-mdp-section-speakers__imageWrapper::after {
    transition: all var(--transitionTime) ease-in-out;
    background: var(--primaryColor500);
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 4;
}

/* link */
.mmt-mdp-section-speakers--grid .mmt-mdp-section-speakers-link::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* imagewrapper */
.mmt-mdp-section-speakers__imageWrapper {
    transition: all var(--transitionTime) ease-in-out;
    width: 100%;
    margin: 0 0 var(--columnGutterSmall);
    background-color: var(--clr-img-placeholder);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 120px;
    display: flex;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    position: relative;
    min-width: 216px;
    min-height: 216px;
    vertical-align: middle;
    background: var(--baseLight150);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    box-shadow: var(--shadow-subtle);
    border-radius: var(--borderRadius);
}

@media screen and (min-width: 568px) {
    .mmt-mdp-section-speakers__imageWrapper {
        margin-right: var(--columnGutter);
    }
}

.mmt-mdp-section-speakers__imageWrapper img {
    transition: all var(--transitionTime--slow) ease-in-out;
    transform: scale(1.01);
    opacity: 0.95;
    width: 100%;
    object-fit: cover;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 3;
}

.mmt-mdp-section-speakers--grid .mmt-mdp-section-speakers__imageWrapper {
    margin: 0;
    padding-top: 57.25%;
}

.mmt-mdp-section-speakers--grid .mmt-mdp-section-speakers__imageWrapper::before {
    background: linear-gradient(0, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 100%);
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
}

.mmt-mdp-section-speakers--grid .mmt-mdp-has-image .mmt-mdp-speaker-details {
    margin-left: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--innerPaddingSmall);
    display: flex;
    align-items: flex-end;
}

.mmt-mdp-section-speakers--grid .mmt-mdp-has-image .mmt-mdp-speaker-details h4 {
    text-shadow: var(--txtShadow);
    color: var(--baseLight100);
    margin: 0;
}

.mmt-mdp-section-speakers--grid .mmt-mdp-speaker-bio {
    display: none;
}

#content .mmt-mdp-section-speakers--grid .mmt-mdp-social-media {
    top: var(--innerPaddingSmall);
    right: var(--innerPaddingSmall);
    z-index: 3;
}

#content .mmt-mdp-section-speakers--grid .socialMedia__item {
    box-shadow: none;
}

#content .mmt-mdp-section-speakers--grid .socialMedia__item:hover {
    transform: scale(1.05);
}

#content .mmt-mdp-section-speakers--grid .socialMedia__button {
    color: var(--baseLight100);
    background-image: url('/ui/kortom/images/bg-polygon-stroke--white.svg');
}

#content .mmt-mdp-section-speakers--grid .socialMedia__button:hover::before {
    color: var(--baseLight200);
}

/* modal */
.mmt-mdp-social-media {
    display: none;
}

.modal .mmt-mdp-social-media {
    display: block;
    position: static;
    margin-bottom: 0;
}

.modal .socialMedia__button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: var(--primaryColor500);
    background-image: url('/ui/kortom/images/bg-polygon-stroke--blue.svg');
    background-size: 40px 40px;
    background-repeat: no-repeat;
}

.modal .socialMedia__button .icon {
    font-size: 1rem;
}

.modal-speakers .modal-title {
    flex-direction: row;
}

.modal .modal-title .mmt-mdp-social-media {
    transition: opacity var(--transitionTime) ease-in-out;
    border-left: 1px solid var(--clr-brdr-medium);
    margin-bottom: 0;
    margin-left: var(--innerPaddingSmall);
    padding-left: var(--innerPaddingSmall);
    display: none;
    opacity: 0;
}

.modal-speakers .modal-title .mmt-mdp-social-media {
    opacity: 1;
}

.modal .modal-body {
    display: flex;
    flex-direction: column;
}

.modal .modal-body .mmt-mdp-social-media {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--rowGutter);
}

.modal .modal-body .mmt-mdp-section-speakers__imageWrapper {
    transform: all var(--transitionTime) ease-in-out;
}

.modal .modal-body .mmt-mdp-section-speakers__imageWrapper img {
    opacity: 1;
    transform: scale(1);
}

@media screen and (min-width: 568px) {
    .modal .modal-title .mmt-mdp-social-media {
        display: flex;
    }

    .modal .modal-body {
        flex-direction: row;
    }

    .modal .modal-body .mmt-mdp-social-media {
        display: none;
    }

    .modal .modal-body .mmt-mdp-section-speakers__imageWrapper {
        min-width: 160px;
        max-width: 160px;
        min-height: 160px;
    }
}


@media screen and (min-width: 720px) {
    .mmt-mdp-section-speakers--grid ol {
        display: grid;
        grid-template-columns: var(--tileGrid-fit);
        grid-gap: var(--gap-grid);
    }

    .modal .mmt-mdp-social-media {
        position: static;
    }

    .modal-body {
        font-size: var(--bodySize-optimized-for-reading);
        line-height: var(--lnHeight-md);
    }

    .modal .modal-body .mmt-mdp-section-speakers__imageWrapper {
        min-width: 240px;
        max-width: 240px;
        min-height: 240px;
    }

}

/*
@media screen and (min-width: 1200px) {
    .modal .modal-body .mmt-mdp-section-speakers__imageWrapper {
        min-width: 320px;
        max-width: 320px;
        min-height: 320px;
    }
}
*/
