div#eventFlex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.5rem;
    margin: 1rem 0;
}

div#eventFlex > div#eventList {
    width: 30vw;
    min-width: 260px;
    max-width: 320px;
    align-self: stretch;
    background-color: var(--event-bg);
    border-radius: 1rem;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Sans", "Lucida Grande", Arial, sans-serif;
    border-right: 0.2rem solid var(--nav-button-bg);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 2rem;
    overflow-y: scroll;
    height: auto;
    max-height: 100vh;
}

p#eventLinkNarrow,
#eventDetails > p.eln:first-of-type,
#eventDetails > p.eln:last-of-type {
    display: none;
}

div#eventFlex > div#eventDetails {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Sans", "Lucida Grande", Arial, sans-serif;
    width: 66%;
    align-self: stretch;
    min-width: 260px;
    background-color: #ffe;
}

div#eventFlex > div#eventDetails p {
    margin-left: 0.5rem;
}

div#eventFlex > div#eventDetails h2 {
    font-family: Helvetica, sans-serif;
    font-size: 2rem;
    margin: 0 auto 0.5rem;
    background-color: #eeff90;
    padding:0.4rem 0.2rem;
    border-top-right-radius: 1rem;
}

div#eventFlex > div#eventList a.event
{
    margin: 0;
    text-align: left;
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
    display: block;
}

div#eventFlex > div#eventList a.event:focus,
div#eventFlex > div#eventList a.event:hover {
    cursor: pointer;
}

div#eventFlex > div#eventList a.event > span {
    display: inline-block;
    background-image: url('/images/event-star-2.png');
    /*background-image: url('/images/event-star.png');*/
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    text-align: center;
    color: #36f;
    font-size: 1.2rem;
    min-width: 35px;
    min-height: 35px;
    line-height: 35px;
    padding: 1rem;
    font-weight: bold;
}

div#eventFlex > div#eventList a.event {
    text-decoration: none;
}
div#eventFlex > div#eventList > h2 {
    margin-top: 0.25rem;
    font-size: 2.1rem;
    border-bottom: 2px solid var(--nav-button-bg);
    font-family: 'Aptos', 'Noto Sans', sans-serif;
}

div#eventFlex > div#eventList h3:nth-child(odd)~a.event:nth-child(odd),
div#eventFlex > div#eventList h3:nth-child(even)~a.event:nth-child(even),
div#eventFlex > div#eventList h3:nth-child(even)~h3:nth-child(odd)~a.event:nth-child(odd) {
    background-color: rgba(220,250,220,0.5);
}


div#eventFlex > div#eventList h3:nth-child(odd)~a.event:nth-child(even),
div#eventFlex > div#eventList h3:nth-child(odd)~h3:nth-child(even)~a.event:nth-child(odd),
div#eventFlex > div#eventList h3:nth-child(even)~h3:nth-child(odd)~a.event:nth-child(even) {
    background-color: var(--event-bg);
}


div#eventFlex > div#eventList > h3 {
    font-size: 1.65rem;
    border-bottom: 2px solid var(--nav-button-bg);
    background-color: var(--event-bg);
    position: sticky;
    top:0;
    font-family: 'Aptos', 'Noto Sans', sans-serif;
}


div#eventFlex > div#eventDetails figure {
    width: 550px;
    max-width: 90%;
    margin: auto;
}
div#eventFlex > div#eventDetails figure img {
    width: 100%;
    height: auto;
}

div#eventFlex div#eventList a.event.highlighted {
    background-color: var(--burntOrange-highlight) !important;
}

p.smallCentre {
    font-size: 90%;
    font-size: 90%;
    text-align: center;
}
p.smallCentre span#eventURLLink {
    display: inline-block;
    border-bottom: 1px solid green;
    padding: 5px;
    border-right: 1px solid green;
    border-bottom-right-radius: 0.5rem;
    background-color: #eee;
    border-top-left-radius: 0.5rem;
    max-width: 500px;
}
p.smallCentre span#eventURLLink:not(.copyClass):hover,
p.smallCentre span#eventURLLink:not(.copyClass):focus {
    cursor: pointer;
}
p.smallCentre span#eventURLLink.copyClass {
    font-weight: bold;
    color: var(--burntOrange-highlight);
    font-size: 1.2rem;
    text-align: center;
    background-color: var(--event-bg) ;
}


/*****************************************************************************************
 * MEDIA QUERIES (big down to small)
 *****************************************************************************************/

@media screen and (max-width: 840px) {
    main article.contentText {
        width: 95vw;
    }
    p.smallCentre span#eventURLLink {
        display: block;
        max-width: 80vw;
        margin: auto;
    }

}

@media screen and (max-width: 580px) {
    p#eventLinkNarrow,
    #eventDetails > p.eln:first-of-type,
    #eventDetails > p.eln:last-of-type {
        text-align: center;
        display: block;
    }

    #eventDetails > p.eln:first-of-type {
        padding: 1.25rem 0.5rem;
        margin: 0;
        background-color: #fff;
    }
    div#eventFlex {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    div#eventFlex > div#eventList {
        width: 90%;
        min-width: 90%;
        max-width: 90%;
        align-self: stretch;
        background-color: var(--event-bg);
        border-radius: 1rem;
        border-right: none;
        font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Sans", "Lucida Grande", Arial, sans-serif;
        margin: auto;
    }
    div#eventFlex > div#eventDetails {
        font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Sans", "Lucida Grande", Arial, sans-serif;
        width: 100%;
        align-self: stretch;
        min-width: 260px;
    }

    div#eventFlex > div#eventDetails h2 {
        border-top-left-radius: 1rem;
    }
}

@media screen and (max-width: 420px) {
    div#eventFlex > div#eventList {
        width: 96%;
        min-width: 96%;
        max-width: 96%;
    }
}
