:root {
    --item-width: 400px;
    --poster-height: 0px;
}

.poster-height {
    top: var(--poster-height);
}

.event {
    text-align: center;
    width: 100%;
    transition: 0.3s;
    position: relative;
}

.event > div:first-child {
    position: relative;
}

.event > div:first-child > img, .event > a:first-child > img {
    width: var(--item-width);
}

.event > div:first-child > div {
    cursor: pointer;
}

.event > div:nth-child(2) {
    background-color: var(--main-color);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    width: var(--item-width);
    max-height: fit-content;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    transition: 0.3s;
}

.event .info>img {
    width: 70px;
    margin-top: -60px;
}

.event .info > div {
    text-align: left;
    padding: 10px 20px;
}

.event .info > div:last-child div > p {
    margin-left: 20px;
    color: var(--font-light);
    font-weight: bold;
    font-size: 13px;
}

.event .info > div:last-child div .images-list {
    padding: 10px;
}

.member-picture {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 50%;
}

.event .info > div:last-child div .images-list > a > li, .event .info > div:last-child div .images-list > li {
    min-width: 35px;
    height: 35px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
}

.member-popup {
    position: absolute;
    background-color: var(--main-color);
    z-index: 1;
    border: 1px solid var(--font-light);
    border-radius: 10px;
    bottom: 50px;
    left: -5px;
}

.member-popup > ul {
    display: flex;
    align-items: center;
    padding: 10px;
    column-gap: 10px;
    white-space: nowrap;
}

.member-popup > ul > li:first-child {
    min-width: 80px;
    height: 80px;
}

.member-popup > ul > li:nth-child(2) > div:first-child {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.member-popup > ul > li:nth-child(2) > div:nth-child(2) {
    font-size: 12px;
    color: gray;
}

.member-popup > div {
    background-color: var(--main-color);
    width: 15px;
    height: 15px;
    position: absolute;
    bottom: -9px;
    transform: rotate(45deg);
    border-bottom: 1px solid var(--font-light);
    border-right: 1px solid var(--font-light);
    left: 15px;
}

.dark-filter {
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.7;
    position: absolute;
    top: 0;
}

.event .poster-text {
    position: absolute;
    top: 0;
    text-align: left;
    padding: 25px;
    pointer-events: none;
}

.event .poster-text > p:first-child {
    color: white;
    font-size: 45px;
    font-weight: bold;
}

.event .poster-text > p:nth-child(2) {
    color: #a5a5a5;
    font-size: 25px;
    margin-top: -5px;
}

.event .poster-text > p:nth-child(3) {
    color: #a5a5a5;
    font-size: 13px;
    margin-top: 15px;
}

.event-sessions {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(285px,1fr));
    column-gap: 15px;
}

.event-sessions > li {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
    border: 1px solid var(--border);
}

.event-sessions > li > ul {
    border-left: 4px solid #fa7777;
    padding-left: 15px;
}

.event-sessions > li > ul > li:first-child {
    font-size: 17px;
    color: gray;
}

.event-sessions > li > ul > li:nth-child(2) {
    font-size: 20px;
    font-weight: bold;
    color: var(--font-bold);
}

.event-sessions > li > ul > li:nth-child(3) {
    font-size: 18px;
    font-weight: bold;
    color: var(--font-bold);
}

.event-sessions > li > ul > li:nth-child(4) {
    font-size: 18px;
    margin-top: 20px;
}

.event-photos-credit, .event-photos-empty {
    margin-top: 20px;
    color: var(--font-light);
    text-align: center;
}

.event-team-photo {
    margin-top: 50px;
}

.event-team-photo > img {
    width: 100%;
    max-width: 600px;
    border-radius: 6px;
    margin: auto;
}

.event-team-photo img.photo-expand {
    cursor: pointer;
}

.event-team-photo img.photo-expand:hover {
    filter: brightness(0.9);
}

@media only screen and (max-width: 450px) {
    :root {
        --item-width: 90%;
    }
    
    .event > div:first-child > div {
        display: none;
    }

    .event > div:first-child > img, .event > a:first-child > img {
        margin: auto;
    }
}
