.events {
    background-color: #F3F8FC;
}

.events__inner__section {
    margin: 40px 0 33px 0;
}


/* .events__shortby__and__content {
    max-width: 1091px;
    margin: 0 auto;
} */

.shortby_section {
    display: flex;
    flex-wrap: wrap;
    padding-top: 40px;
}

.shortby_text {
    padding: 0 21px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 17px;
    line-height: 22px;
    color: #1F1F1F;
    font-family: supria-sans, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.shortby_section .selectric {
    border-radius: 29px !important;
    min-width: 348px !important;
    background-color: #fff !important;
    border: 1px solid #707070 !important;
}

.selectric .button {
    display: none !important;
}


/* .attorney .attorney__filters__and__content .attorney_filter .attorney_filter__inner .location_filter .selectric label {
    font-size: 17px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
    color: #1F1F1F !important;
    height: 20px !important;
    padding: 12px 23px 35px 23px !important;
    margin: 0 !important;
    background-image: url('../src/images/Icon feather-chevron-down.png');
    background-repeat: no-repeat;
    background-position: 92% 16px;
    background-size: 22px 14px
} */

.events .selectric .label {
    font-size: 17px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
    color: #1F1F1F !important;
    height: 20px !important;
    padding: 12px 23px 35px 23px !important;
    margin: 0 !important;
    background-image: url('../src/images/Icon feather-chevron-down.png');
    background-repeat: no-repeat;
    background-position: 92% 16px;
    background-size: 22px 14px
}

.selectric-items li.highlighted {
    font-size: 17px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
    color: #1F1F1F !important;
}

.selectric-items li {
    font-size: 17px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
    color: #1F1F1F !important;
    background-color: #fff !important;
    transition: all 0.5s;
}

.selectric-items li.highlighted {
    background: white !important;
    color: #1F1F1F !important;
}

.selectric-items li:hover, .selectric-items li.selected {
    background: #2E406B !important;
    color: #fff !important;
}

.events__inner__wrapper {
    background-color: #fff;
    border-radius: 19px;
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.03);
}

.events__inner__wrapper__content_section {
    margin: 12px 0;
    padding: 32px 32px 32px 32px;
    position: relative;
    transition: all .5s;
}

.events__inner__wrapper__content_section:hover {
    /*box-shadow: 0 0 8px #000;*/
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.3);
    border-radius: 19px;
}

a.event_link {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.events__inner__wrapper__content_section__inner {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.events__inner__wrapper__content_section__inner__image {
    background-repeat: no-repeat;
    background-size: cover;
    width: 28.5%;
}

.events__inner__wrapper__content_section__inner__content {
    width: 71.5%;
    padding: 0 0 0 24px;
}

.events__inner__wrapper__content_section__wrapper .title,
.events__inner__wrapper__content_section__inner__content .title {
    font-size: 24px;
    line-height: 36px;
    color: #2E406B;
    margin-bottom: 12px;
    font-family: proxima-nova, sans-serif;
    font-weight: 400;
    font-style: normal;
}

.events__inner__wrapper__content_section__wrapper .date_text,
.events__inner__wrapper__content_section__inner__content .date_text {
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.01px;
    color: #6B1C40;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.events__inner__wrapper__content_section__wrapper .dates,
.events__inner__wrapper__content_section__inner__content .dates {
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.01px;
    color: #1F1F1F;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.events__inner__wrapper__content_section__wrapper .content,
.events__inner__wrapper__content_section__inner__content .content {
    font-size: 16px;
    line-height: 24px;
    color: #6C6C6C;
    margin-bottom: 3px;
    font-family: proxima-nova, sans-serif;
    font-weight: 400;
    font-style: normal;
}

.events__inner__wrapper__content_section__wrapper .event_categories,
.events__inner__wrapper__content_section__inner__content .event_categories {
    display: flex;
    flex-wrap: wrap;
}

.events__inner__wrapper__content_section__wrapper .event_category .term_link,
.events__inner__wrapper__content_section__inner__content .event_category .term_link {
    padding: 8px 12px;
    background-color: #D4EBF7;
    border-radius: 16px;
    color: #00346A;
    font-size: 12px;
    line-height: 15px;
    /* letter-spacing: 0.01px; */
    letter-spacing: 1px;
    margin: 0 12px 0 0;
    text-transform: uppercase;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.events__inner__wrapper__content_section__wrapper .event_categories .event_category .term_link,
.events__inner__wrapper__content_section__inner__content .event_categories .event_category .term_link {
    position: relative;
    z-index: 1;
}

.events__inner .custom_pagination_section {
    padding-bottom: 61px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 -6px;
    list-style: none;
}

ul.pagination {
    margin: 0;
}

li.page-item {
    list-style: none;
    line-height: 0;
    padding: 0 6px;
    margin: 0;
}

li.page-item.active a.scrolltodiv.page-link {
    color: #2E406B;
    transition: all .5s;
    padding: 0;
}

a.page-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

li.page-item.prev {
    padding: 0 6px 0;
}

li.page-item.next {
    padding: 0 6px 0;
}

li.page-item.next .page-link svg path {
    transition: all .5s ease;
}

li.page-item.next .page-link:hover svg path {
    stroke: #6c6c6c;
}

li.page-item.prev .page-link svg path {
    transition: all .5s ease;
}

li.page-item.prev .page-link:hover svg path {
    stroke: #6c6c6c;
}

a.scrolltodiv.page-link {
    font-size: 16px;
    color: #6C6C6C;
    line-height: 24px;
    padding-right: 12px;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
    padding: 0;
}

.page-item.active a.scrolltodiv.page-link:hover {
    color: #6C6C6C;
}

.page-item a.scrolltodiv.page-link:hover {
    color: #2E406B;
}

@media (max-width: 1199px) {

    .events__inner__wrapper__content_section__wrapper .title,
    .events__inner__wrapper__content_section__inner__content .title {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .events__inner__wrapper__content_section {
        padding: 20px 20px 10px 20px;
    }

    .events__inner__wrapper__content_section__inner__content {
        width: 100%;
        padding: 0;
    }

    .events__inner__wrapper__content_section__inner__image {
        width: 100%;
        margin-bottom: 12px;
    }

    .image {
        width: 100%;
    }

    .events__inner__wrapper__content_section__wrapper .event_category,
    .events__inner__wrapper__content_section__inner__content .event_category {
        margin-bottom: 10px;
    }


    .events__inner__wrapper__content_section__wrapper .title,
    .events__inner__wrapper__content_section__inner__content .title {
        font-size: 20px;
    }

    .events__inner__wrapper__content_section__wrapper .content,
    .events__inner__wrapper__content_section__inner__content .content {
        font-size: 14px;
    }
}

body.event_popup_open {
    overflow: hidden;
}

.page-template-template-events .lity {
    background: transparent;
}

.page-template-template-events .lity-content>div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

.event_popup_inner {
    background: #fff;
    box-shadow: 0px 0px 60px rgba(0, 0, 0, 0.22);
    border-radius: 19px;
    max-width: 720px;
    max-height: 600px;
    overflow: hidden;
    border-bottom: 32px solid #FFFFFF;
}

.event_popup_inner::-webkit-scrollbar-thumb {
    background: #000;
}

.event_popup_inner::-webkit-scrollbar {
    width: 0px;
    height: 8px;
    background-color: #aaa;
}

.event_popup_inner .event_popup_top {
    background-color: #2E406B;
    padding: 35px 100px 18px 40px;
    position: relative;
}

.event_popup_inner .event_popup_top .popup_close_icon {
    position: absolute;
    right: 22px;
    top: 20px;
    font-family: supria-sans, sans-serif;
    font-weight: bold;
    line-height: 16px;
    font-size: 13px;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.event_popup_inner .event_popup_top .popup_close_icon svg {
    margin-left: 6px;
}

.page-template-template-events .lity-close {
    display: none;
}

.event_popup_inner .event_popup_top .title {
    font-family: proxima-nova, sans-serif;
    font-weight: normal;
    font-size: 32px;
    line-height: 41px;
    text-align: left;
    color: #fff;
    margin-bottom: 7px;
}

.event_popup_inner .event_popup_top .last_modified {
    font-family: proxima-nova, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-align: left;
    color: #bfbfbf;
}

.event_popup_inner .event_popup_bottom {
    max-height: 390px;
    padding: 28px 40px 42px;
    overflow-y: auto;
    background-color: #FFFFFF;
}

.event_popup_inner .event_popup_bottom .date_info .date_text {
    font-size: 14px;
    line-height: 17px;
    color: #6B1C40;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.1em;
}

.event_popup_inner .event_popup_bottom .date_info .dates,
.event_popup_inner .event_popup_bottom .date_info .dates * {
    font-size: 14px;
    line-height: 17px;
    color: #1F1F1F;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.1em;
}

.event_popup_inner .event_popup_bottom .date_info .dates {
    margin-bottom: 13px;
}

.event_popup_inner .event_popup_bottom .event_categories {
    margin-bottom: 15px;
}

.event_popup_inner .event_popup_bottom .event_gallery {
    max-height: 375px;
    opacity: 0;
    transition: all 0.5s ease;
    position: relative;
    margin-bottom: 25px;
}

.event_popup_inner .event_popup_bottom .event_gallery .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    line-height: 0;
    z-index: 1;
}

.event_popup_inner .event_popup_bottom .event_gallery .slick-arrow.prev {
    left: 12px;
}

.event_popup_inner .event_popup_bottom .event_gallery .slick-arrow.next {
    right: 12px;
}

.event_popup_inner .event_popup_bottom .event_gallery.slick-initialized {
    opacity: 1;
}

.event_popup_inner .event_popup_bottom .event_gallery .gallery_image  .image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.event_popup_inner .event_popup_bottom .event_gallery .gallery_image  .caption {
    font-size: 13px;
    line-height: normal;
    text-transform: uppercase;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #1F1F1F;
    display: block;
    text-align: center;
}

@media (max-width: 767px) {
    .event_popup_inner {
        width: calc(100% - 40px);
        max-width: none;
        max-height: 90vh;
    }

    .event_popup_inner .event_popup_top {
        padding: 15px 100px 18px 20px;
    }

    .event_popup_inner .event_popup_top .title {
        font-size: 24px;
        line-height: 34px;
    }

    .event_popup_inner .event_popup_bottom {
        padding: 20px 20px 30px;
        max-height: 55vh;
    }
}

@media (max-width: 479px) {
    .event_popup_inner .event_popup_top .title {
        font-size: 22px;
        line-height: 1.2;
    }

    .shortby_section {
        flex-direction: column;
        margin-top: 40px;
    }

    .shortby_section .selectric {
        min-width: auto !important;
        width: 100%;
        width: 100%;
        margin-top: 10px;
    }

    .event_popup_inner .event_popup_top {
        padding-right: 50px;
    }

    .event_popup_inner .event_popup_top .popup_close_icon {
        font-size: 0;
    }
}