.event-list {

    & .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: #d51525;
                }

                & .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: #d51525;
                        }
                    }
                    
                }

                & .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: #d51525;
            }

            @media screen and (min-width: 40em) {
                padding: .5rem 1.5rem;
            }
        }

        & input[type="radio"]:checked + label {
            background-color: #d51525;
            color: #ffffff;
        }
    }

    & .events {
        display: flex;
        flex-direction: column;
        gap: .25rem;
        margin: 0;
        list-style: none;

        @media screen and (min-width: 40em) {
            gap: 2rem;
        }
    }
    
    & .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: none;
                pointer-events: none;
                flex-direction: column;
                font-size: 1rem;
                color: #d51525;
                text-transform: uppercase;
                font-family: "gotham_bold", sans-serif;
                letter-spacing: 1.5px;
                align-items: center;
                justify-content: center;
                border: 1px solid #d51525;
                position: absolute;
                top: -8rem;
                left: 0;
                width: 100%;
    
                & > span {
                    padding-inline: .75rem;
                }
    
                & .month {
                    color: #ffffff;
                    background-color: #d51525;
                    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;
                    }
                }
    
                @media screen and (min-width: 40em) {
                    display: flex;
                    pointer-events: all;
                    position: unset;
                    inset: unset;
                    
                    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: #d51525;
                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: #d51525;
                    }
    
                    &::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";
            }
        }
        
        .day + &:not(.sr-only):not([style*="display:none"]) article,
        .day + &[style*="display:none"] + &:not(.sr-only):not([style*="display:none"]) article {
            margin-top: 9em;
            & time {
                display: flex;
            }
            @media screen and (min-width: 40em) {
                margin-top: unset;
            }
        }
    }
}

.event-page {
    
    & .content-container {
        padding-top: 0;
    }

    & .runner {
        height: 5rem;
        width: 100%;
        background-color: #d51525;
    }

    & .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-template-rows: repeat(3, auto);
                grid-auto-columns: minmax(0, 1fr);
                justify-content: start;
                grid-auto-flow: column;
                width: 100%;
                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;
    }
}