.events_archive {
    overflow: hidden;
}

.events_archive .hero {
    background: url(../img/bg/hero.webp) no-repeat 0 50%;
    background-size: cover;
    font-family: var(--font-secondary);
    padding-top: 75px;
    padding-bottom: 100px;
    color: #fff;
}

.events_archive .hero .page_title h1 {
    font-family: var(--wp--custom--font-primary);
}

.events_archive .hero .container {
    position: relative;
}

.events_archive .hero .events_icon {
    position: absolute;
    width: 36px;
    height: 36px;
    top: -25px;
    right: 0;
}

.events_archive .hero .events_icon::before,
.events_archive .hero .events_icon::after {
    position: absolute;
    display: block;
    background: #fff;
    content: '';
    width: 50%;
    height: 50%;
}

.events_archive .hero .events_icon::before {
    top: 0;
    right: 0;
}

.events_archive .hero .events_icon::after {
    left: 0;
    bottom: 0;
}

.events_archive .page_title {
    padding: 0 100px 30px 0;
    max-width: 920px;
    box-sizing: content-box;
}

.events_archive .page_title * {
    display: inline-block;
    font-size: 51px;
    font-weight: normal;
    line-height: 1.23;
    margin: 0;
}

.events_archive .page_description {
    font-size: 18px;
    line-height: 1.66;
    max-width: 920px;
}

.events_archive .events {
    padding-top: 50px;
    /*padding-bottom: 120px;*/
    padding-bottom: var(--wp--style--block-gap);
}

.events_archive .events_filters {
    display: flex;
    padding-bottom: 52px;
}

.events_archive .filter_item .nice-select {
    min-width: 256px;
}

.events_archive .events_list {
    display: flex;
    flex-wrap: wrap;
    margin: -40px -50px;
}

.events_archive .events_list .event_item {
    font-family: var(--font-secondary);
    width: 33.33%;
    padding: 40px 50px;
}

.events_archive .events_list .event_item a {
    position: relative;
    display: block;
    text-decoration: none;
    height: 100%;
}

.events_archive .event_item .event_image {
    filter: grayscale(100%);
    padding-bottom: 18px;
}

.events_archive .event_item .event_image img {
    aspect-ratio: 80 / 47;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.events_archive .event_item .event_date {
    font-size: 13px;
    line-height: 1.23;
    padding-bottom: 7px;
    opacity: 0.66;
}

.events_archive .event_item .event_title {
    font-size: 26px;
    line-height: 1.23;
}

.events_archive .event_item .event_tags {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.events_archive .events_more {
    max-width: 470px;
    margin: 0 auto;
    padding-top: 100px;
    display: none;
}

.events_archive .events_more.active {
    display: block;
}

.events_archive .events_more a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--text-black);
    height: 42px;
    transition: all ease-in-out 0.2s;
    font-family: var(--wp--custom--font-secondary);
}

.events_archive .events_more a:hover {
    background: var(--text-black);
    color: #fff;
}

.events_archive .events_more a svg {
    width: 15px;
    height: auto;
    margin-left: 10px;
}

@media (max-width: 1200px) {
    .events_archive .events_list {
        margin: -25px;
    }

    .events_archive .events_list .event_item {
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .events_archive .events_list .event_item {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .events_archive .page_title * {
        font-size: 42px;
    }

    .events_archive .event_item .event_title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .events_archive .hero {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .events_archive .hero .events_icon {
        width: 20px;
        height: 20px;
        top: 5px;
    }

    .events_archive .page_title {
        padding-right: 50px;
    }

    .events_archive .page_title * {
        font-size: 30px;
    }

    .events_archive .events {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .events_archive .filter_item {
        width: 100%;
    }

    .events_archive .filter_item .nice-select {
        width: 100%;
    }

    .events_archive .events_list .event_item {
        width: 100%;
    }

    .events_archive .events_more {
        padding-top: 50px;
    }
}
