/* Global */
.sg-icon {
    width: 1em;
    display: inline-block;
    font-size: inherit;
    overflow: visible;
    vertical-align: -0.125em;
}

.sg-icon--three-quarters {
    width: .75em;
    vertical-align: baseline;
}

/* Filter Bar */
.sg-events-filter-bar {
    display: flex;
}

input[type=text].sg-events-filter-bar__search {
    width: 100%;
    display: block;
    max-width: 300px;
    font-size: 18px;
    margin-left: auto;
    padding: 10px;
}

/* Group Select */
.sg-events-group-select {
    display: flex;
    justify-content: center;
}

.sg-events-group-select__group-button {
    margin-right: 15px;
    display: block;
    font-size: 20px;
    padding: 15px 30px;
    text-decoration: none;
    transition: .2s color ease, .2s background-color ease;
    cursor: pointer;
}

.sg-events-group-select__group-button:last-child {
    margin-right: 15px;
}

/* Events */
.sg-events {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-family: Helvetica Neue, Helvetica, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

.sg-events .sg-events__event  {
    width: 100%;
    margin-bottom: 30px;
}

.sg-events--list .sg-events__event > article {
    width: 100%;
    /* Allows the events to have the same height when in columns of 2 or more */
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.sg-events--list .sg-events__event-date {
    width: 100%;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.sg-events--list .sg-events__event-day-of-week {
    font-size: 18px;
}

.sg-events--list .sg-events__event-month {
    font-size: 40px;
}

.sg-events--list .sg-events__event-day {
    font-size: 75px;
}

.sg-events--list .sg-events__event-year {
    font-size: 17px;
}

.sg-events--list .sg-events__event-featured-image-wrapper {
    /* Prevent element from shrinking when other elements grow too large */
    flex-shrink: 0;
    position: relative;
    width: calc(100% - 140px);
}

.sg-events--list .sg-events__event-featured-image-wrapper:before {
    padding-top: 100%;
    content: " ";
    display: block;
}

.sg-events--list .sg-events__event-featured-image-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sg-events--list .sg-events__event-featured-image {
    width: 100%;
    height: 100%;
    object-position: 50% 50%;
    object-fit: cover;
    transition: opacity .2s ease;
}

.sg-events--list .sg-events__event-featured-image:hover,
.sg-events--list .sg-events__event-featured-image:focus {
    opacity: .7;
}

.sg-events--list .sg-events__event-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 20px;
}

.sg-events--list .sg-events__event-top-bar {
    font-size: 18px;
}

.sg-events--list .sg-events__event-title-link {
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    color: inherit;
    text-decoration: none;
}

.sg-events--list .sg-events__event-start {
    display: block;
    margin-bottom: 5px;
    font-size: 25px;
}

.sg-events--list .sg-events__event-bottom-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.sg-events--list .sg-events__event-age-restriction {
    font-size: 12px;
    font-style: italic;
}

.sg-events--list .sg-events__event-ticket-link {
    display: block;
    font-size: 20px;
    width: 180px;
    text-align: center;
    padding: 5px;
    text-decoration: none;
    transition: .2s color ease, .2s background-color ease;
}

/* Responsive */
@media (min-width: 768px) {
    .sg-events--list .sg-events__event {
        width: calc(50% - 7.5px);
        margin-right: 15px;
    }

    .sg-events--list .sg-events__event:nth-child(2n) {
        margin-right: 0;
    }

    .sg-events--list .sg-events__event-day-of-week {
        font-size: 22px;
    }

    .sg-events--list .sg-events__event-month {
        font-size: 44px;
        font-weight: 300;
    }

    .sg-events--list .sg-events__event-day {
        font-size: 85px;
        font-weight: 700;
    }

    .sg-events--list .sg-events__event-year {
        font-size: 17px;
    }
}

@media (min-width: 960px) {
    .sg-events--list .sg-events__event {
        width: 100%;
        margin-right: 0;
        flex-wrap: nowrap;
    }

    .sg-events--list .sg-events__event > article {
        flex-wrap: nowrap;
    }

    .sg-events--list .sg-events__event-featured-image-wrapper {
        width: 100%;
        max-width: 20%;
    }
}

/* Colors */
input[type=text].sg-events-filter-bar__search {
    color: #353535;
    border: 1px solid #353535;
}

.sg-events--list .sg-events__event-date {
    background-color: #353535;
    color: #FFFFFF;
}

.sg-events--list .sg-events__event-details {
    background-color: #E4E4E4;
    color: #3C3C3C;
}

.sg-events--list .sg-events__event-title-link {
    color: #353535;
}

.sg-events--list .sg-events__event-top-bar {
    color: #3C3C3C;
}

.sg-events--list .sg-events__event-age-restriction {
    color: #121212;
}

.sg-events--list .sg-events__event-ticket-link {
    background-color: #B74545;
    color: #FFFFFF;
}

.sg-events--list .sg-events__event-ticket-link:hover,
.sg-events--list .sg-events__event-ticket-link:focus {
    background-color: #6F6F6f;
    color: #FFFFFF;
}

.sg-events-group-select__group-button {
    background-color: #353535;
    color: #FFFFFF;
}

.sg-events-group-select__group-button--is-active {
    background-color: #B74545;
    color: #FFFFFF;
}

.sg-events-group-select__group-button:hover,
.sg-events-group-select__group-button:focus {
    background-color: #6F6F6f;
    color: #FFFFFF;
}