.upcoming-events-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 29px 40px;
    padding-bottom: 85px;
}

.upcoming-event-card {
    transition: transform .3s ease-in-out;
    box-shadow: 0px 8px 34px rgba(0, 0, 0, 0.19);
    border-radius: 12px;
    padding: 19px;
    display: flex;
    flex-direction: column;
    max-width: 360px;
    width: 100%;
}

.upcoming-event-card .upcoming-event-card-image {
    height: 188px;
    border-radius: 12px;
    overflow: hidden;
}

.upcoming-event-card .upcoming-event-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.upcoming-event-card .upcoming-event-card-content {
    margin-top: 25px;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.upcoming-event-card .upcoming-event-card-content,
.upcoming-event-card .upcoming-event-card-content * {
    font-family: 'proxima-nova';
}

.upcoming-event-card .upcoming-event-logo {
    justify-content: center;
    display: flex;
}

.upcoming-event-card .upcoming-event-logo,
.upcoming-event-card .upcoming-event-logo img {
    max-height: 40px;
    height: 40px;
    object-fit: contain;
}

.upcoming-event-card .upcoming-event-logo[data-lazyload-parent="yes"] {
    border-radius: 12px;
}

.upcoming-event-card .tagline {
    margin-top: 20px;
    margin-bottom: 13px;
    font-size: 16px;
    font-weight: 700;
    line-height: 23px;
    text-align: center;
}

.upcoming-event-card .upcoming-event-separator {
    height: 1px;
    margin-top: auto;
    background-color: #E6E6E6;
}

.upcoming-event-card .upcoming-event-details-wrapper {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.upcoming-event-card .upcoming-event-details-wrapper .upcoming-event-details-item {
    display: flex;
    flex-direction: row;
    font-size: 16px;
    font-weight: 100;
    line-height: 23px;
    color: #959595;
}

.upcoming-event-card .upcoming-event-details-wrapper .upcoming-event-details-item:not(:last-of-type) {
    margin-bottom: 8px;
}

.upcoming-event-card .upcoming-event-details-wrapper .venue-wrapper {
    min-height: 46px;
}

.upcoming-event-card .upcoming-event-details-wrapper .upcoming-event-details-item .upcoming-event-details-item-icon-wrapper {
    width: 15px;
    min-width: 15px;
    margin-right: 9px;
    display: flex;
    padding-top: 3px;
}

.upcoming-event-card .upcoming-event-details-wrapper .upcoming-event-details-item i {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 15px;
}

.upcoming-event-card .upcoming-event-details-wrapper .upcoming-event-details-item .calendar {
    background-image: url('https://storage.sbcevents.com/assets/homepage-assets/upcoming-events/calendar.svg');
}

.upcoming-event-card .upcoming-event-details-wrapper .upcoming-event-details-item .location {
    background-image: url('https://storage.sbcevents.com/assets/homepage-assets/upcoming-events/map-pin.svg');
}

.upcoming-event-card .upcoming-events-buttons-wrapper {
    display: flex;
    flex-direction: row;
    margin-top: 13px;
    gap: 12px;
}

.upcoming-event-card .upcoming-events-button {
    flex-basis: 50%;
    padding: 8px 5px;
    text-align: center;
    flex-grow: 1;
}

.upcoming-event-card .upcoming-events-button:only-child {
    flex-basis: 100%;
}

.upcoming-event-card .upcoming-events-button.event-button {
    color: #fff;
    background-color: #E7792D;
    background-color: var(--main-event-color);
}

.upcoming-event-card .upcoming-events-button.event-button:hover,
.upcoming-event-card .upcoming-events-button.tickets-button:hover {
    color: #fff;
    background-color: #d86411;
    background-color: var(--main-event-color-hover);
    border-color: #d86411;
    border-color: var(--main-event-color-hover);
}

.view-more-upcoming-events-wrapper {
    display: none;
}

@media screen and (min-width: 1001px) {
    .upcoming-event-card:hover {
        transform: scale(1.02);
    }
}

@media screen and (max-width: 1000px) {

    .upcoming-events-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .upcoming-events-cards-wrapper .upcoming-event-card:nth-of-type(2n + 1) {
        margin-left: auto;
    }

    .upcoming-events-cards-wrapper .upcoming-event-card:nth-of-type(2n) {
        margin-right: auto;
    }

    .upcoming-event-card {
        padding: 17px;
    }

    .upcoming-event-card .upcoming-event-details-wrapper .upcoming-event-details-item:not(:last-of-type) {
        margin-bottom: 7px;
    }

    .upcoming-event-card .upcoming-events-buttons-wrapper {
        gap: 10px;
        margin-top: 15px;
    }
}

@media screen and (max-width: 768px) {
    .upcoming-events-cards-wrapper {
        padding-bottom: 57px;
        row-gap: 23px;
        grid-template-columns: repeat(1, 1fr);
    }

    .upcoming-events-cards-wrapper.show-hidden-events {
        padding-bottom: 85px;
    }

    .upcoming-events-cards-wrapper .upcoming-event-card {
        margin-left: auto;
        margin-right: auto;
    }

    .upcoming-events-cards-wrapper .upcoming-event-card:nth-child(1n + 5) {
        display: none;
    }

    .upcoming-events-cards-wrapper.show-hidden-events .upcoming-event-card:nth-child(1n + 5) {
        display: flex;
    }

    .view-more-upcoming-events-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 43px;
    }

    .view-more-upcoming-events-wrapper a {
        padding: 8px 19px;
    }

    .upcoming-events-cards-wrapper.show-hidden-events .view-more-upcoming-events-wrapper {
        display: none;
    }
}