
#block-scientificcalendarmorelinksmodals {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

#block-scientificcalendarmorelinksmodals > .text-formatted > p {
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 5;
    width: 100vw;
    height: 2.5rem;
    margin: 0;
}

#block-scientificcalendarmorelinksmodals button.more {
    height: 100%;
    width: fit-content;
    min-width: 300px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: .75rem 1.5rem .75rem .75rem;
    background-color: var(--main_blue);
    font-weight: 500;
    color: #fff;
    font-size: .75rem;
    border: none;
    line-height: .75rem;
    background-image: url(../../assets/icons/icon_plus_w.svg);
    background-size: 1rem;
    background-position: calc(100% - 1.5rem) center;
    background-repeat: no-repeat;
}

#block-scientificcalendarmorelinksmodals > .text-formatted > div { display: none; }

#block-scientificcalendarmorelinksmodals > .text-formatted > div.show {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .3);
    top: 0;
    left: 0;
    z-index: 100;
    position: fixed;
    display: block;
    pointer-events: none;
}

#block-scientificcalendarmorelinksmodals > .text-formatted > div.show + p { pointer-events: none; }

#block-scientificcalendarmorelinksmodals > .text-formatted > div > div {
    background-color: #fff;
    pointer-events: all;
    width: 90%;
    max-width: 450px;
    height: fit-content;
    position: absolute;
    top: 200px;
    max-height: calc(100vh - 230px);
    overflow: scroll;
    scrollbar-width: none;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
}
#block-scientificcalendarmorelinksmodals > .text-formatted > div > div::-webkit-scrollbar { width: 0; }

#block-scientificcalendarmorelinksmodals h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 1rem 0;
    color: #000;
}

#block-scientificcalendarmorelinksmodals h4 {
    font-size: 18px;
    font-weight: 300;
    margin: 2rem 0 .25rem 0;
    padding-top: .5rem;
    border-top: 1px solid var(--border_gray);
    color: var(--text_color);
}

#block-scientificcalendarmorelinksmodals a {
    padding: .5rem 2.25rem .5rem .5rem;
    margin: 1rem 0;
    font-size: 18px;
    font-weight: 500;
    display: block;
    width: 100%;
    border: 1px solid var(--border_gray);
    color: #000;
    background-image: url(/themes/custom/ictp/assets/icons/icon_arrow_right.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - .25rem) center;
    background-size: 1.75rem 1.75rem;
}

#block-scientificcalendarmorelinksmodals button.close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--medium_gray);
    padding: 0;
    background: #fff;
    background-position: center center;
    background-size: 40%;
    background-image: url(../../assets/icons/icon_close.svg);
    background-repeat: no-repeat;
}


@media (min-width: 1024px) {
    #block-scientificcalendarmorelinksmodals > .text-formatted > p {
        top: 80px;
    }
}


@media (min-width: 1200px) {
    #block-scientificcalendarmorelinksmodals {
        width: 100%;
    }
    #block-scientificcalendarmorelinksmodals > .text-formatted > p {
        left: unset;
        right: 5%;
        width: fit-content;
        height: 3rem;
    }
    
    #block-scientificcalendarmorelinksmodals button.more {
        min-width: 350px;
        width: fit-content;
        border-bottom-left-radius: 1.5rem;
        border-bottom-right-radius: 1.5rem;
        padding: 1rem 2rem 1rem 1rem;
        font-size: 1rem;
        line-height: 1rem;
    }

    #block-scientificcalendarmorelinksmodals h4 {
        margin: .25rem 0;
        border-top: none;
        font-size: 24px;
    }

    #block-scientificcalendarmorelinksmodals > .text-formatted > div > div {
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        max-width: 70%;
        border-top: 10px solid var(--main_blue);
        display: grid;
        gap: 0 3rem;
        padding: 3rem;
        grid-template-areas:
            'title title title'
            'participate organize past';
    }
    
    #block-scientificcalendarmorelinksmodals h3 { 
        grid-area: title;
        font-size: 30px;
    }
    #block-scientificcalendarmorelinksmodals > .text-formatted .participate { grid-area: participate; }
    #block-scientificcalendarmorelinksmodals > .text-formatted .organize { 
        grid-area: organize; 
        position: relative;
    }
    #block-scientificcalendarmorelinksmodals > .text-formatted .past { 
        grid-area: past; 
        position: relative;
    }

    #block-scientificcalendarmorelinksmodals > .text-formatted .organize::before,
    #block-scientificcalendarmorelinksmodals > .text-formatted .past::before { 
        content: '';
        height: 100%;
        width: 1px;
        background-color: var(--border_gray);
        left: -1.5rem;
        top: 0;
        position: absolute;
    }
    
    #block-scientificcalendarmorelinksmodals button.close {
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
        opacity: .8;
        top: 3rem;
        right: 3rem;
    }

    #block-scientificcalendarmorelinksmodals a {
        font-size: 20px;
        padding: 1.5rem 3rem 1.5rem 6rem;
        background-position: calc(100% - .5rem) calc(100% - .5rem);
    }
    #block-scientificcalendarmorelinksmodals a.visit { 
        height: calc(100% - 4.5rem);
        padding: 1.5rem 3rem 1.5rem 1.5rem;
    }

    #block-scientificcalendarmorelinksmodals a:hover { cursor: pointer; }

    #block-scientificcalendarmorelinksmodals a span {
        display: block;
        font-size: 18px;
        font-weight: 300;
    }

    #block-scientificcalendarmorelinksmodals a::before {
        content: '';
        height: 5rem;
        width: 5rem;
        position: absolute;
        top: 50%;
        left: .5rem;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center center;
        transform: translateY(-50%);
    }
    
    #block-scientificcalendarmorelinksmodals a.attend::before { background-image: url(../../assets/filigrane/knowmore_attend.svg); }
    #block-scientificcalendarmorelinksmodals a.check::before { background-image: url(../../assets/filigrane/knowmore_check.svg); }
    #block-scientificcalendarmorelinksmodals a.propose::before { background-image: url(../../assets/filigrane/knowmore_propose.svg); }
    #block-scientificcalendarmorelinksmodals a.host::before { background-image: url(../../assets/filigrane/knowmore_host.svg); }
    #block-scientificcalendarmorelinksmodals a.visit::before { 
        background-image: url(../../assets/loghi/logo-ictp-gray.svg); 
        opacity: .5;
        height: 5rem;
        width: 5rem;
        left: 1.5rem;
        top: 70%;
    }
}

