.event-list {

    & .size {
        @media screen and (max-width: 39.9375em) {
            background-color: pink;
        }

        @media screen and (min-width: 40em) {
            background-color: green;
        }

        @media screen and (min-width: 64em) {
            background-color: red;
        }
    }

    & .content-container {
        padding: 1rem;

        @media screen and (min-width: 40em) {
            padding-top: 2rem;
        }
    }

    & h2 {
        margin: 0 0 3rem;
    }

    & .featured {
        margin-bottom: 2rem;

        & h2 {
            font-size: 1rem;
            margin: 0 0 1rem;
            letter-spacing: 1.5px;
        }

        ul {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: 1fr;
            gap: 1rem;
            margin: 0;
            list-style: none;
            overflow-x: auto;
            padding-bottom: 1rem;

            li {
                display: grid;
                border: 1px solid #cccccc;
                grid-template-columns: 150px 200px;
                align-items: stretch;
                position: relative;
                isolation: isolate;
                max-width: 350px;
                gap: 0;
                grid-template-areas: "thumb details";

                &:focus-within,
                &:hover {
                    border-color: #005596;
                }

                & .content {
                    grid-area: details;
                    display: flex;
                    flex-direction: column;
                    gap: .75rem;
                    padding: 1rem;
                    align-self: center;

                    & h3 {
                        font-size: 1rem;
                        margin: 0;
                        text-transform: none;

                        & a {
                            font-family: "gotham_bold", sans-serif;
                            font-weight: 400;
                            text-decoration: none;
                            text-wrap: balance;

                            &::after {
                                content: '';
                                inset: 0;
                                position: absolute;
                                z-index: 1;
                            }
                        }
                    }

                    & dl {
                        margin: 0;
                        font-size: 90%;

                        & dd {
                            white-space: nowrap;
                        }

                        & .icon {
                            margin-right: .5rem;
                            color: #005596;
                        }
                    }
                    
                }

                & .thumb {
                    grid-area: thumb;
                    position: relative;

                    & img {
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        inset: 0;
                        object-fit: cover;
                    }
                }
            }
        }

    }

    & .toolbar {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;

        & .btn {
            margin: 0;
        }
    }

    & .filters {

        & summary {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            gap: 1rem;
            padding-inline: 1rem;
            border: 1px solid #cacaca;
            background-color: transparent;

            [open] &,
            &:hover {
                background-color: #ededed;
            }
        }

        & .filter-content {
            padding: 1rem;
            border: 1px solid #cacaca;
            border-top-width: 0;
        }

        @media screen and (min-width: 40em) {
            
            & .filter-content {
                display: grid;
                gap: 1rem;
                grid-template-columns: repeat(2, 1fr);
            }

        }

        @media screen and (min-width: 64em) {
                        
            & summary {
                display: none;
            }

            & .filter-content {
                display: flex;
                flex-direction: column;
                padding: 0rem;
                border: none;
            }
        }
    }

    & .filter-view {
        display: flex;
        flex-direction: row;
        gap: 0;
        border-bottom: solid 1px #cacaca;
        margin: 0 0 2rem 0;
        user-select: none;
        overflow: hidden;
        

        & label {
            margin: 0;
            padding: .5rem 1rem;
            border-bottom: 2px solid transparent;
            position: relative;


            &:hover {
                border-bottom-color: #005596;
            }

            @media screen and (min-width: 40em) {
                padding: .5rem 1.5rem;
            }
        }

        & input[type="radio"]:checked + label {
            background-color: #005596;
            color: #ffffff;
        }
    }

    & .events {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin: 0;
        list-style: none;
    }

    & .event article {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: .75rem 2rem;
        grid-template-areas: 
        "date"
        "title"
        "details"
        "teaser";
        isolation: isolate;
        border-bottom: solid 1px #ededed;
        padding: 1rem 0 2rem 0;

        & time {
            grid-area: date;
            align-self: center;
            margin: 0;
            display: flex;
            flex-direction: column;
            font-size: 1rem;
            color: #005596;
            text-transform: uppercase;
            font-family: "gotham_bold", sans-serif;
            letter-spacing: 1.5px;
            align-items: center;
            justify-content: center;
            border: 1px solid #005596;

            & > span {
                padding-inline: .75rem;
            }

            & .month {
                color: #ffffff;
                background-color: #005596;
                text-align: center;
                align-self: normal; 
            }

            & .day {
                color: #2d2d2d;
                font-size: 3rem;
                font-family: "gotham_bold", sans-serif;
                font-weight: 400;
                line-height: 1;

                @media screen and (min-width: 40em) {
                    font-size: 4rem;
                }
            }

            article:focus-within &,
            article:hover & {
                transform: scale(1.05);
            }
            
        }

        & dl {
            grid-area: details;
            align-self: end;
            margin: 0;
            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            gap: 0 1.25rem;
            color: #005596;
            text-transform: uppercase;
            font-family: "gotham_bold", sans-serif;
            letter-spacing: 1.5px;

            & dd {
                white-space: nowrap;
            }

            & .icon {
                margin-right: .25rem;
            }
        }

        & h3 {
            grid-area: title;
            align-self: center;
            margin: 0;
            font-size: 1.5rem;
            line-height: 1;

            & a {
                font-family: "gotham_bold", sans-serif;
                color: #2d2d2d;
                text-decoration: none;

                &:hover,
                &:focus {
                    color: #005596;
                }

                &::after {
                    content: '';
                    inset: 0;
                    position: absolute;
                    z-index: 1;
                }
            }
        }

        & p {
            grid-area: teaser;
            align-self: self-start;
            margin: 0;
        }

        @media screen and (min-width: 40em) {
            grid-template-columns: 1fr 4fr;
            grid-template-rows: auto auto auto;
            gap: .75rem 2rem;
            grid-template-areas: 
            "date details"
            "date title"
            "date teaser";
        }
    }
}

.event-page {
    
    & .content-container {
        padding-top: 0;
    }

    & .runner {
        height: 5rem;
        width: 100%;
        background-color: #005596;
    }

    & .callout {
        margin: -5rem 0 4rem 0;
        padding: 0;
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
        border: 0;

        & .details {
            position: relative;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            container-type: inline-size;

            & dl {
                display: grid;
                grid-auto-flow: column;
                grid-template-rows: repeat(3, auto);
                gap: 1.75rem;

                & dt {
                    font-weight: 900;
                    text-transform: uppercase;
                    font-size: 12px;
                    letter-spacing: 1px;
                    font-family: "Roboto", sans-serif;
                }

            }

            @container (width < 400px) {
                & dl {
                    display: flex;
                    flex-direction: column;
                }
            }

            & .cta {
                margin: 0;
                position: absolute;
                left: 50%;
                top: 100%;
                transform: translate(-50%,-50%);
            }
        }

        & .thumb {
            position: relative;
            min-height: 20rem;

            & img {
                width: 100%;
                height: 100%;
                position: absolute;
                inset: 0;
                object-fit: cover;
            }
        }
    }

    & .contact {
        display: flex;
        flex-direction: column;
        gap: .75rem;

        & .icon {
            margin-right: .5rem;
        }
    }
}

.transition-ease {
    transition: all .25s ease-in-out;
}

@media (prefers-reduced-motion) {
    .transition-ease {
        transition: unset;
        animation: unset;
    }
}