
body.page-template-template-home #events {
    padding: 2em 0;
}

#events {
    padding: 0 0 2em;
    position: relative;
    background: var(--ltgrey);
}
#events.list {
    background: #FFFFFF;
    max-width: 60em;
    margin: auto;
}
#events h4 {
	text-align: center;
	color: var(--blue);
}
#events p a {
    color: var(--blue);
}



#events_filter {
    margin: 1em auto 2em;
    padding: 1em 0 2em;
    border-bottom: 1px solid #CFCFCF;
}
#events_filter form {
    display: grid;
    grid-auto-flow: row;
    grid-gap: 2em;
}
#events_filter .filter-section {
    box-sizing: border-box;
}
#events_filter .filter-section:first-of-type:not(.brand),
#events_filter .filter-section:first-of-type:not(.brand) ~ span {
    display: none;
}
#event_filter span {
    display: none;
}
#events_filter .filter-section .filter-date {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
}

#events_filter select {
    width: auto;
    display: inline-block;
    height: 2.5em;
    font-size: 1em;
    padding: 0 2em 0 1em;
    background: #FAFAFA url('../images/arrow.png') no-repeat;
    background-size: 24px 12px;
	background-position: 100% 60%;
    border: 0;
    border-bottom: 2px solid #4D85B2;
    border-radius: 0;
    width: 100%;
    appearance: none;
	-moz-appearance: none; /* Firefox */
	-webkit-appearance: none; /* Safari and Chrome */
	-ms-appearance: none;
/* 	Sizing fix */
	-webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -khtml-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
#events_filter select:disabled {
    border-bottom: 2px solid transparent;
    background: #FFF;
    color: var(--black);
    display: none;
}


/* Pagination */
#events .pagination h2 {
    visibility: hidden;
}

#events .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 12px;
}

#events .nav-links .page-numbers {
    background-color: #FFFFFF;
    border: 0.25em solid #265E8B;
    text-align: center;
    color: #265E8B;
    font-size: 1em;
    padding: 1em 1.2em;
    margin: 0.8em;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
}
#events .nav-links .current,
#events .nav-links .page-numbers:hover {
    background-color: #265E8B;
    color: #FFFFFF;
}


/* Home Page */
.event-home {
    margin: 1em 0;
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
    grid-gap: 2em;
}
.event-home p.excerpt {
    display: none;
}
.event-home .item {
    background: #FFFFFF;
    /* display: grid;
    grid-template-columns: 0% auto;
    grid-gap: 0; */
}


.event-list .item {
    /* display: grid;
    grid-template-columns: 0% auto;
    grid-gap: 0; */
    background: #FAFAFA;
    margin: 0 0 1rem;
}

.item .event-image {
    position: relative;
    display: none;
}
.item .event-image img {
    width: 100%;
    height: auto;
    border: none;
    margin: 0;
    padding: 0;
    float: none;
}



.event p.excerpt {
    display: none;
}

.event-list .event-title {
    min-height: inherit;
}
.event-list a.read-more {
    display: none;
}

.item .event-info {
    padding: 1rem;
}
.item .event-info h2 {
    line-height: 1.4;
    font-size: 1.2em;
    font-weight: 600;
}
.item .event-info h5 {
    font-size: 1em;
}
.item .event-info h2 a,
.item .event-info h5 a {
    color: #0A0A0A;
    text-decoration: none;
}
.item .event-info h5 {
    margin: 4px 0;
    font-weight: 400;
}
.item .event-info h5 i {
    font-size: 0.9em;
    color: #00A3E0;
    margin-right: 5px;
}
.item .event-info h5 a,
.item .event-info h5 span {
    font-size: 0.9em;
    text-transform: uppercase;
}
.item .event-info a:hover {
    text-decoration: underline;
}
.item .event-time p.time {
    color: #9D2235;
    font-weight: 400;
}
.item .event-time p.rsvp a {
    color: #003865;
    font-weight: 400;
}


#events ul.school-levels {
    position: absolute;
    bottom: 8px;
    right: 5px;
    margin: 0;
}



/* Single Post */
div.events .entry-title {
    max-width: 100%;
}

div.events .event-details {
    display: grid;
    grid-auto-flow: row;
}
div.events .event-image img {
    border: none;
    float: none;
    margin: 0 0 2em;
    padding: 0;
    max-width: 100%;
    width: 100%;
}
div.events .stratford-button {
    display: block;
    padding: 1em 0;
}

.event-details .event-image a.stratford-button {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: var(--blue);
    color: #FFF;
    border-radius: 0px;
    z-index: 999;
}

/*
#event_map {
    height: 300px;
    width: 100%;
    margin: 0 0 2em;
}*/

@media only screen and ( min-width: 768px ) {
    
    /* Home Page */
    .event-home {
        margin: 1em 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        align-items: center;
        /* grid-template-columns: repeat(3, 1fr);
        grid-gap: 1em;
        justify-content: space-around; */
    }
    .event-home .item {
        background: #FFFFFF;
        width: 31%;
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: min-content;
        grid-gap: 0;
    }
    .event-home .event-info {
        padding: 1em;
    }
    
    .event-list .item {
        display: grid;
        grid-template-columns: 33% auto;
        grid-gap: 1rem;
    }
    .item .event-image {
        position: relative;
        display: block;
    }
    .item .event-info h2 {
        font-size: 1.3rem;
    }
    div.events .event-details {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: auto minmax( auto, 400px );
        grid-gap: 5em;
    }
    
    .event-details .event-image a.stratford-button {
        position: static;
        border-radius: 4px;
        background: #fff;
        color: var(--blue);
    }
    
    #events .nav-links {
        font-size: 14px;
    }
}

@media only screen and ( min-width: 960px ) {
    
    #events_filter form {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        grid-gap: 1em;
        text-align: center;
        justify-content: center;
    }
    #event_filter span {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .event-home {
        /* grid-gap: 2em; */
    }
    
    .item .event-info h2 {
        font-size: 1.5rem;
    }
    
    .event-list p.excerpt {
        display: block;
    }
    
    #events .nav-links {
        font-size: 16px;
    }
}

@media only screen and ( min-width: 1184px ) {
    
    
}



