section.upcoming-events {
    margin: 0 auto;
    padding-top: 28px;
    background-color: var(--white);
    position: relative;
    z-index: 2;
}
section.upcoming-events .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
section.upcoming-events .container .section-heading {
    text-transform: uppercase;
}
section.upcoming-events .container a {
    text-decoration: none;
    font-weight: 700;
}
section.upcoming-events .container::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--light-grey);
    margin-top: 15px;
}
section.upcoming-events .events-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    padding: 15px 0;
    position: relative;
}

section.upcoming-events::after {
    content: '';
    display: block;
    height: 100%;
    width: calc(5vw + 5%);
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), var(--white) 90%);
    position: absolute;
    bottom: 0;
    right: 0;
    pointer-events: none;
    z-index: 3;
}

section.upcoming-events .events-scroll::-webkit-scrollbar { display: none; }
section.upcoming-events .events-scroll .event {
    width: 390px;
    max-width: calc((92.5vw - 35px) / 3);
    min-width: 300px;
    padding: 22px 0 40px;
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 27px;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(0);
    opacity: 1;
    /* transition: 0.5s; */
    box-shadow: 0px 0px 15px 0px rgba(141, 150, 167, 0.20);
}

section.upcoming-events .events-scroll .event.slide-in {
    left: 0;
    opacity: 1;
    transform: translateY(0);
}
section.upcoming-events .events-scroll .event.slide-in:nth-child(2) { transition-delay: 0.2s; }
section.upcoming-events .events-scroll .event.slide-in:nth-child(3) { transition-delay: 0.4s; }

section.upcoming-events .events-scroll .event.slide-in.slide-in-ready {
    /* left: 100vw; */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0 !important;
}

section.upcoming-events .events-scroll .event:hover {
    transition: 0.2s;
    box-shadow: 0px 0px 15px 0px rgba(141, 150, 167, 0.475);
}
section.upcoming-events .events-scroll .event:not(:nth-child(3)) {
    margin-right: 35px;
}
/* math sux */
section.upcoming-events .events-scroll .event:first-child { margin-left: calc(((100vw - var(--container-max-width)) / 2)); }

@media (max-width: 1458px) {
    section.upcoming-events .events-scroll .event:first-child { margin-left: 7.5vw; }
    section.upcoming-events .events-scroll {
        padding-right: 7.5%;
    }
}
.editor-styles-wrapper section.upcoming-events .events-scroll .event:first-child { margin-left: 0 !important; }
.editor-styles-wrapper section.upcoming-events .events-scroll {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: var(--container-max-width);
    width: var(--container-width);
    margin: 0 auto;
}


/* section.upcoming-events .events-scroll .event:nth-child(3) {
    margin-right: 7.5%;
} */
section.upcoming-events .events-scroll time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    padding: 0 7.5%;
    margin-bottom: 8px;
    display: block;
}
section.upcoming-events .events-scroll h3 {
    font-family: var(--rubik);
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0 7.5%;
    margin-bottom: 8px;
}
section.upcoming-events .events-scroll .event-excerpt {
    font-family: var(--merriweather);
    color: var(--black);
    font-size: 1rem;
    padding: 0 7.5%;
    margin-bottom: 10px;
}
section.upcoming-events .events-scroll .learn-more {
    position: absolute;
    left: 7.5%;
    width: 85%;
    bottom: 20px;
    font-family: var(--rubik);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    display: block;
    margin-top: 10px;
}


@media (max-width: 721px) {
    section.upcoming-events {
        padding-top: 60px;
    }
    section.upcoming-events .container {
        margin-bottom: 6px;
    }
    section.upcoming-events .events-scroll .event {
        left: 0 !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}