.safi-search-container {
    width: 100%;

}

.safi-search-bar {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    padding: 20px 30px 10px;
}

.safi-search-bar > .safi-search-field {
    margin-bottom: 10px!important;
    margin-right: 30px;
    padding: 10px 0;
    width: 50%;
}

.so-search-results-layout form#so-filters-form{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.safi-search-bar > .safi-search-field > input {
    background-color: #fff;
    border: 1px solid #bbb;
    padding: 11px;
    color: #4e4e4e;
    border-radius: 5px;
    width: 100%;
}

.safi-search-bar > .safi-search-options {
    color: #fff;
    flex: 1;
    margin-right: 30px;
    margin-bottom: 10px;
}

.safi-search-bar > .safi-search-button {
    margin-bottom: 10px!important;
    padding: 10px 0;
    width: 15%;
}

.safi-search-bar > .safi-search-button > input {
    font-weight: 500;
    color: #fff;
    padding: 0.3em 1em !important;
    font-size: 14px;
    background-color: #7b805e;
    border-width: 6px!important;
    border-color: rgba(123,128,94,0);
    border-radius: 50px;
    font-style: normal;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    width: 100%;
}

.safi-search-bar > .safi-search-button > input:hover {
    background-color: #62684a;
    cursor: pointer;
}

.safi-results-text-welcome {
    text-align: center;
}

.safi-persons-row > .single-person {
    padding: 10px !important;
    display: inline-block;
    width: 30%;
    background-color: #f7f7f7;
    margin: 10px;
}

.safi-persons-row > .single-person > a {
    display: block;
    font-size: 18px!important;
    font-weight: bold;
    padding: 7px 10px !important;
    color: #333;
    background-color: rgba(123,128,94,0.3);
    border-radius: 5px 5px 5px 5px;
}

.safi-single-memorial {
    padding: 10px !important;
    background-color: #f7f7f7;
    margin: 10px;
}

.safi-single-memorial > a {
    display: block;
    font-size: 18px!important;
    font-weight: bold;
    padding: 7px 10px !important;
    color: #333;
    background-color: rgba(123,128,94,0.3);
    border-radius: 5px 5px 5px 5px;
}

.so-filter-box {
    overflow-x: hidden;
    max-height: 300px;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.so-filter-title {
    margin-top: 30px;
    text-align: center;
}

button.so-filter-refine {
    font-size: 18px;
    font-weight: bold;
    display: block;
    text-align: center;
    padding: 5px;
    border-radius: 3px;
    border: 0;
    color: #333333;
}

button.so-filter-refine:hover {
    background: rgba(123,128,94,.15);
}
.so-filters-column {
    width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-right: 20px;
}

.so-search-results-column {
    flex: 1;
}
.so-search-results-column h4 {
    font-size: 24px;
    letter-spacing: -1px;
    font-weight: 800;
}

.so-filters-column-toggle{
    display: none;
}

.so-elements-results-wrapper{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.so-search-results-title {
    display: block;
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.so-search-results-title span.search-phrase {
    color: #ff0000;
}

.so-search-results-count {
    display: block;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: #7b805e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    border-top: solid 1px;
    border-bottom: solid 1px;
    padding: 10px 0;
}
}

.so-elements-results {
    vertical-align: top;
    display: inline-block;
    width: 50%;
    margin: 0px;
}

.so-elements-results-memorials {
    vertical-align: top;
    display: inline-block;
    width: 50%;
    margin: 0 20px;
}

.so-elements-results:first-child {
    margin-left: 50px;
}

.so-elements-content {
    border: 2px solid #7b805e;
    padding: 20px;
    border-radius: 10px;
    background: #fbfbfb;
}

.parish-section {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 40px;
}

.district-section {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
}

.county-section {
    margin-bottom: 20px;
}

.county-name {
    font-weight: bold;
}

.district-name {
    font-weight: bold;
}


/*SAFI SEARCH*/
.safi-search-checkboxes {
    display: inline-flex;
}
.safi-search-checkboxes label {
    display: inline-flex !important;
    min-width: 160px;
    top: 16px;
    position: relative;
    color: #fff;
}
input#posttype1, input#posttype2 {
    position: relative;
    top: 22px;
}
.safi-search-bar {
    display: flex;
    max-width: 1280px !important;
    width: auto !important;
    align-items: center;
    margin-bottom: 10px;
}
.safi-search-bar > .safi-search-button > input {
    padding: 0.2em 1em 0.4em !important;
}
.safi-search-bar > .safi-search-field {
    width: 50.25%;
}

/*END SAFI SEARCH*/



@media only screen and (max-width: 980px) {
    .so-search-results-layout form#so-filters-form{
        flex-direction: column;
    }
    .so-filters-column{
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: 0.5s ease all;
    }
    .so-filters-column-toggle{
        position: relative;
        font-weight: 500;
        color: #fff;
        display: block;
        text-align: center;
        padding: 0.3em 1em !important;
        font-size: 14px;
        background-color: #7b805e;
        border-width: 6px!important;
        border-color: rgba(123,128,94,0);
        border-radius: 50px;
        font-style: normal;
        text-transform: uppercase;
        text-decoration: none;
        letter-spacing: 1px;
        width: 100%;
        margin-bottom: 30px;
    }
    .so-filters-column-toggle span{
        position: absolute;
        top: 50%;
        right: 10px;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        display: none;
    }

    .so-filters-column-toggle.active + form#so-filters-form .so-filters-column{
        max-height: 2000px;
        opacity: 1;
    }
    .so-filters-column-toggle.active span {
        display: block;
    }

}

@media only screen and (max-width: 767px) {
    .safi-search-bar{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-left: 0;
        marggin-right: 0;
    }

    .safi-search-bar > .safi-search-field{
        margin-right: 0;
        width: 100%;
    }

    .safi-search-bar > .safi-search-button{
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .so-elements-results-wrapper{
        flex-direction: column;
    }
    .so-elements-results-memorials{
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    .so-elements-results{
        width: 100%;
        margin-left: 0;
    }
}
