body > section.events-filter {
    z-index: 6;
}

section.events-filter .filter-wrap {
    margin-bottom: 30px;
    padding: 45px 60px;
    background: #ffffff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
}

section.events-filter .filter-title {
    font: 500 17px/1.6em "Poppins", sans-serif;
    color: #003865;
    margin-bottom: 24px;
}

section.events-filter .filter-items {
    display: flex;
    flex-wrap: wrap;
}

section.events-filter .filter-items .date-item {
    margin-right: 40px;
}

section.events-filter .filter-items .date-item:last-child {
    margin-right: 0;
}

section.events-filter .filter-items .date-item label {
    cursor: pointer;
    font: 400 13px/2em "Poppins", sans-serif;
    color: #000000;
    display: flex;
    align-items: center;
    position: relative;
}

section.events-filter .filter-items input[type="checkbox"] + label::before {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 8px;
    border: 2px solid #999999;
    box-sizing: border-box;
    transition: all 0.3s ease-out;
}

section.events-filter
    .filter-items
    input[type="checkbox"]:checked
    + label::before {
    border-color: #8f2140;
}

section.events-filter
    .filter-items
    input[type="checkbox"]:checked
    + label::after {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    background: #8f2140;
    position: absolute;
    top: 8px;
    left: 3px;
}

section.events-filter .filter-items input[type="checkbox"] + label {
    transition: all 0.3s ease-out;
}

section.events-filter .filter-items input[type="checkbox"] + label:hover,
section.events-filter .filter-items input[type="checkbox"]:checked + label {
    text-shadow: 0 1px 1px #8f2140;
    color: #8f2140;
}

section.events-filter .filter-items .date-item input {
    margin-right: 8px;
    display: none;
}

section.events {
    position: relative;
}

section.events .event-wrap {
    margin-bottom: 74px;
}

section.events .event-wrap > div:nth-child(3n + 2) {
    text-align: center;
}

section.events .event-wrap > div:nth-child(3n + 3) {
    text-align: right;
}

section.events .event-wrap a {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    border-radius: 15px;
    width: 100%;
    max-width: 426px;
    text-align: left;
    overflow: hidden;
    margin-bottom: 26px;
    transition: all 0.3s ease-out;
}

section.events .event-wrap a:hover,
section.events .event-wrap a:focus {
    box-shadow: 1px 1px 6px #8f2140;
    opacity: 0.9;
}

section.events .event-item {
    position: relative;
    height: 0;
    padding-top: 100%;
}

section.events .event-item .event-item-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

section.events .event-item-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

section.events .event-wrap a:hover .event-item-date,
section.events .event-wrap a:hover .event-item-title {
    text-shadow: 1px 1px 2px #8f2140;
}

section.events .event-wrap a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0.6;
}

section.events .event-wrap .event-item-meta {
    position: absolute;
    bottom: 16px;
    left: 30px;
    right: 30px;
}

section.events .event-item-date {
    font: 400 14px/2em "Poppins", sans-serif;
    color: #ffffff;
    margin-bottom: 4px;
    transition: all 0.3s ease-out;
}

section.events .event-item-date.past {
    display: none;
}

section.events .event-item-title {
    font: 600 20px/1.8em "Poppins", sans-serif;
    color: #ffffff;
    transition: all 0.3s ease-out;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BACKGROUND */

/* section.events::before {
    content: "";
    display: block;
    position: absolute;
    top: -280px;
    right: 0;
    left: 0;
    height: 1012px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0.52%,
        #e2ecf3 52.08%,
        rgba(255, 255, 255, 0) 100%
    );
} */

body > .section-background {
    position: absolute;
    width: 440px;
    max-width: 60%;
    height: 880px;
    top: 794px;
    left: 0;
    overflow: hidden;
}

body > .section-background::before {
    content: "";
    position: absolute;
    width: 880px;
    height: 880px;
    right: 0;
    top: 0;
    border-radius: 50%;
    background: #f4f7f9;
}

/* MEDIA */

@media only screen and (max-width: 991px) {
    section.events-filter {
        margin-top: 0;
    }

    section.events-filter .filter-wrap {
        padding: 16px 20px;
    }

    section.events-filter .filter-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    section.events-filter .filter-items .date-item label {
        font-size: 12px;
    }

    section.events-filter
        .filter-items
        input[type="checkbox"]:checked
        + label::after {
        top: 7px;
    }

    section.events .event-wrap {
        margin-bottom: 48px;
        text-align: center;
    }

    section.events .event-wrap > div:nth-child(3n + 3) {
        text-align: center;
    }

    h1.entry-title {
        max-width: 100%;
        margin: 0 0 42px 0;
    }

    body > .container > article {
        margin-top: 82px;
    }

    section.events .event-item-date {
        margin: 0;
        font-size: 12px;
    }

    section.events .event-item-title {
        font-size: 18px;
    }

    section.events .event-wrap a {
        margin-bottom: 20px;
    }
}

/* ( < 991 ) */

@media only screen and (max-width: 600px) {
    .admin-bar .page-top-image {
        top: 52px;
    }

    .admin-bar h1.entry-title {
        max-width: 100%;
        margin: 0 0 22px 0;
    }

    body.admin-bar > .container > article {
        margin-top: 74px;
    }
}

/* ( < 600 ) */
