.page-template-page-families-v2 #page-body{
    overflow: initial;
}
.is-hidden {
    display: none!important;
}

.families-no-results {
    border-radius: 22px;
    background: #dff6f2;
    box-shadow: 0px 3px 11px rgb(0 0 0 / 16%);
    padding: 36px 20px;
    margin-bottom: 32px;
    font-size: 18px;
    line-height: 1.5em;
    margin: 20px 0px;
}

.families-by-state {
    --flexOrder: 999;
    /* default; only 50 states so we'd never overlap with this value */
    display: flex;
    flex-direction: column;
}

.families-by-state {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 2rem;
}

.families-by-state .state {
    order: var(--flexOrder);
}

.state__name {
    font-size: 35px;
}

.family {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0px 3px 11px rgba(0, 0, 0, 0.16);
    padding: 36px 20px;
    margin-bottom: 30px;
}

.family__name {
    margin: 0;
}

.family__name__link {
    font-family: unset;
}

.family__link {
    color: #e0777d;
}


.family-listing__search,
.family-listing__reset {
    border: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 10px 0;
}

input.family-listing__search {
    border: 1px solid #dddddd;
    border-radius: 25px;
    padding: 15px 15px 15px 20px;
    width: 100%;
    margin-top: 10px;
    outline: none;
    font-size: 14px;
}


.family-listing__reset__btn {
    position: relative;
    font-family: 'Comfortaa', cursive;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3125em;
    color: #fff;
    letter-spacing: 1px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    padding: 15px 50px 15px 50px;
    box-shadow: 0 5px #ce5f65;
    display: block;
    text-align: center;
    background-color: #e0777d;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
}

.family-listing__reset__label {
    display: none;
}

.families-by-state .fx-accordion__headline {
    display: flex;
    justify-content: space-between;
}

.families-by-state .fx-accordion__headline button {
    border: none;
    background: none;
    font-size: 20px;
}

.families-by-state .is-expanded .fx-accordion__headline button {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

@media(min-width:768px) {
    .family-listing-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .family-listing-filters__instructions {
        width: 100%;
    }

    .family-listing-filters aside {
        flex-basis: calc(37.5% - 32px);
        margin-right: 16px;
    }

    .family-listing-filters aside:last-child {
        flex-basis: calc(25% - 32px);
        display: flex;
        justify-content: flex-end;
    }

    .family-listing__search,
    .family-listing__reset {
        margin: 0;
    }

    .state__families {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .family {
        width: calc(50% - 24px);
        margin-bottom: 35px;
        display: flex;
        flex-direction: column;
    }

    .family__link {
        margin-top: auto;
    }

    .state__name {
        font-size: 55px;
    }

    .family-listing {
        margin-top: 0;
    }
}

@media(min-width:1025px) {
    .state__name {
        font-size: 75px;
    }
}

/*Signle Families*/

.family-extra {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0px 3px 11px rgb(0 0 0 / 16%);
    padding: 20px;
    margin-bottom: 36px;
}

.family-extra.is-expanded .family-extra__content {
    display: block;
}

.family-extra__content {
    display: none;
}

.family-extra__headline {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.family-extra__headline__toggle {
    border: none;
    background: none;
    font-size: 18px;
}

.hard-bottom {
    margin-bottom: 0;
}

.person {
    border-radius: 22px;
    background: #dff6f2;
    box-shadow: 0px 3px 11px rgb(0 0 0 / 16%);
    padding: 36px 20px;
    margin-bottom: 32px;
}

.person__name {
    margin: 0;
}

.person__about__headline {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0;
}

.person__about__desc {
    font-family: 'Comfortaa', cursive;
    font-size: 15px;
    line-height: 32px;
    color: #575C55;
    font-weight: normal;
}

.state-toggle {
    color: #575C55
}

.sidebar-state {
    margin-bottom: 10px;
    width: 100%;
}

.sidebar-state .family:last-of-type {
    border-bottom: none;
}

.sidebar-state .state__name h2 {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    line-height: 1em;
}

.sidebar-state .state__name {
    border: none;
    background: #FAF4F2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 16px;
    font-size: 20px;
    align-items: center;
    line-height: 1em;
}

.sidebar-state .family {
    width: 100%;
    margin: 0;
    box-shadow: none;
    padding: 16px;
    border-bottom: 1px solid #EBEBEB;
    border-radius: 0;
}

.sidebar-state .family__name {
    font-size: 15px;
}

.sidebar-state .family__name__link {
    color: #575C55;
}

.sidebar-state.is-expanded .state__name,
.sidebar-state:hover .state__name {
    background: #e0777e;
}

.sidebar-state .family__name__link:hover {
    color: #e0777e
}

.sidebar-state.is-expanded .state__name h2,
.sidebar-state.is-expanded .state__name span,
.sidebar-state:hover .state__name h2,
.sidebar-state:hover .state__name span {
    color: #fff;
}

.sidebar-state.is-expanded .state__name span {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.family-extra.is-expanded .family-extra__headline__toggle{
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

@media(min-width:1025px){
    .family-extra .family-extra__content {
        display: block;
    }
}


/* Family Gallery */

.family-gallery__img {
    max-width: 100%;
    width: auto;
    height: auto;
}

.family-gallery-slider {
    position: relative;
    margin-bottom: 75px;
    margin-top: 60px;
}

.family-gallery-slider .slick-arrow {
    display: flex;
    position: absolute;
    bottom: 0;
}

.family-gallery-slider .slick-track {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.family-gallery-slider .slick-prev {
    left: calc(50% - 70px);
}

.family-gallery-slider .slick-next {
    right: calc(50% - 70px);
}

.family-gallery-slider .slick-arrow.slick-disabled {
    opacity: .7;
    cursor: default;
}

.family-gallery-slider .slick-arrow.slick-disabled:hover {
    background: #00BD9D;
}

.family-gallery-slider .slick-arrow.slick-disabled:active {
    transform: none;
    box-shadow: 0 4px #0aa58b;
}

.family-gallery-slider .slick-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.family-gallery-slider .slick-dots li button {
    outline: none!important;
    background: #B0D2CC;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: none;
}

.family-gallery-slider .slick-dots li button:hover,
.family-gallery-slider .slick-dots li.slick-active button {
    background: #0B715F;
}

.family-gallery-slider .slick-dots li button {
   text-indent: -9999px;
}

.family-gallery-slider:not(.slick-initialized) .family-gallery__img {
    display: none!important;
}

.family-gallery-slider:not(.slick-initialized) .family-gallery__img:first-child {
    display: block!important;
}

/* .family-gallery-slider.slick-initialized .slick-slide { display: block!important; } */

@media (min-width: 768px) {

    .family-gallery__img {
        height: 200px;
        padding: 0 11px;
    }

    .family-gallery-slider:after {
        content: '';
        position: absolute;
        right: 0;
        height: calc(100% - 75px);
        top: 0;
        z-index: 9999;
        width: 10%;
        background: rgb(255,255,255);
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.861782212885154) 100%);
    }

    .family-gallery-slider {
        padding-bottom: 75px;
    }

}
