/*!
Theme Name: Elms Website Custom
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others..
*/

html {
    scroll-behavior: smooth;
}

/* .page-id-15 .block-icon_and_description_vertical--icon span.elms-icon {
    display: block;
    margin: 0 auto;
} */

.block-instagram {
    padding-top: 100px;
    padding-bottom: 30px;
}

.block-instagram .elms-title {
    text-align: center;
}

.block-instagram .sbi_follow_btn a {
    background-color: #475670 !important;
    border-radius: 0 !important;
    text-transform: uppercase;
}

.block-instagram .sbi_follow_btn a:hover {
    box-shadow: none !important;
    background-color: #ad3632 !important;
}

.block-instagram .sbi_load_btn {
    background-color: #ad3632 !important;
    border-radius: 0 !important;
    text-transform: uppercase;
}

.block-instagram .sbi_load_btn:hover {
    box-shadow: none !important;
    background-color: #475670 !important;
}

@media (max-width: 768px) {

    .block-instagram .sbi_load_btn,
    .block-instagram .sbi_follow_btn a {
        width: 200px;
    }

    #sb_instagram #sbi_load .sbi_follow_btn {
        margin-left: 0;
    }
}

.block-both_text_columns_2_with_bold_text_on_the_left {
    color: #fff;
}

.block-both_text_columns_2_with_bold_text_on_the_left--left {
    display: block;
}

.block-both_text_columns_2_with_bold_text_on_the_left--title {
    padding-bottom: 20px;
}

.block-both_text_columns_2_with_bold_text_on_the_left--description.elms-description p {
    display: flex;
}

.block-both_text_columns_2_with_bold_text_on_the_left--description.elms-description img {
    width: 200px;
    padding-right: 20px;
    padding-bottom: 20px;
    height: auto;
    align-self: center;
}

.block-both_text_columns_2_with_bold_text_on_the_left--left .elms-description p {
    font-weight: 800;
    font-size: 130%;
}

@media (max-width: 991px) {

    .block-both_text_columns_2_with_bold_text_on_the_left--right .elms-title p,
    .block-both_text_columns_2_with_bold_text_on_the_left--description.elms-description p {
        flex-wrap: wrap;
    }

    .block-both_text_columns_2_with_bold_text_on_the_left--left .elms-description {
        padding-left: 20px;
        padding-top: 20px;
    }

    .amenities-pages .block-both_text_columns_2_with_bold_text_on_the_left--right {
        padding-left: 20px;
    }
}

.block-both_text_columns_2_with_bold_text_on_the_left--left .elms-description {
    padding-right: 30px;
}

.block-both_text_columns_2_with_bold_text_on_the_left--right {
    display: flex;
    align-items: center;
}

.block-both_text_columns_2_with_bold_text_on_the_left--right .elms-title {
    font-size: 150%;
    line-height: 1.4;
}

.block-welcome__pic-wrap {
    align-items: unset;
}

.block-welcome__pic-inner {
    padding: 0 40px;
}

.block-welcome__left {
    padding: 0 40px 0 0;
}

.block-welcome__right {
    display: block;
    padding: 40px 0;
}

.block-welcome__right--menu {
    display: flex;
}

.block-welcome__right--menu img {
    max-width: 14vw;
}

.block-welcome__right--menu a:first-child {
    margin-right: 12px;
}

.block-welcome__right h2 {
    color: #FFF;
    text-align: center;
}

.block-welcome .elms-title {
    font-size: 170%;
}

.afhs-link {
    margin-top: 24px;
    display: block;
}

.afhs-link img {
    max-width: 240px;
    background-color: #FFF;
    margin-left: 160px;
}

@media (max-width: 1200px) {
    .block-welcome__right--menu img {
        max-width: 100px;
    }

    .afhs-link img {
        margin-left: 40px;
        max-width: 180px;
    }
}

@media (max-width: 1440px) {
    .afhs-link img {
        max-width: 180px;
    }
}

@media (max-width: 640px) {
    .afhs-link img {
        margin-left: 0;
    }

    .block-welcome__pic-inner {
        padding: 0;
    }

    .block-welcome__left {
        padding: 0;
    }

    .block-welcome__right {
        padding: 0;
    }
}

.footer-member {
    padding-top: 35px;
}

.footer-member p {
    text-align: center;
}

.footer-member p a {
    font-size: 11px;
    color: #475670;
}

.footer-member p img {
    margin-right: 5px;
    max-width: 24px;
}

.footer .col-three {
    padding-top: 0;
}

.footer-member-logos {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
    transition: all 300ms;
}

.footer-member-logos:hover {
    opacity: 0.8;
    transition: all 300ms;
}

.footer-member-logos img {
    width: 80px;
}

.footer-member-logos img:first-child {
    margin-right: 12px;
}

@media (max-width: 1200px) {
    .footer-member-logos img {
        width: 50%;
    }

    .footer-member p a {
        font-size: 10px;
    }
}

header.header_override {
    background-position: center center;
    background-size: cover;
}

.our-medical-team-pages header.header_override {
    background-size: contain;
    background-position: top left;
    height: 40vw;
}

@media only screen and (max-width: 1024px) {
    .our-medical-team-pages header.header_override {
        height: 55vw;
        max-height: none;
    }
}

.subacute-rehab-pages header.header_override {
    background-position: 50% 40%;
}

.testimonials-pages header.header_override,
.amenities-pages .header_override,
.contact-pages header.header_override,
.contact-pages header.header_override,
.employment-pages .header_override,
.respite-care-pages header.header_override,
.subacute-rehab-pages header.header_override {
    background-size: cover;
}

.our-medical-team-pages header .container .header-text-icon .icon {
    right: 80px;
}

.our-medical-team-pages header .container .header-text-icon .icon img {
    width: 250px;
    height: 181px;
}

@media only screen and (max-width: 1280px) {
    .our-medical-team-pages header .container .header-text-icon .text {
        font-size: 24px;
        padding-right: 5vw;
        margin-bottom: 3vw;
    }
}

@media only screen and (min-width: 1025px) {

    .about-pages header .wrap-header,
    .recreation-pages header .wrap-header {
        background-color: rgba(255, 255, 255, 0.8);
    }
}

.get-in-touch-form {
    max-width: 355px;
}

.block-content_left_and_image_right--link a {
    margin-bottom: 5px;
}

@media only screen and (max-width: 767px) {
    .block-testimonial_slider .block-testimonial_slider-slider__item {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.header_default .social {
    position: absolute;
    top: 45px;
    right: 300px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.header_override .social {
    position: absolute;
    top: 45px;
    right: 255px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.header_override .social path {
    fill: #fff;
}

.header_override .menu-sticky .social path {
    fill: #ad3632;
}

header .social a {
    position: static;
}

header .social.mobile {
    display: none;
}

@media only screen and (max-width: 1200px) {
    .header_default .social {
        top: 70px;
        right: 330px;
    }

    .header_override .social {
        top: 75px;
        right: 330px;
    }

    .header_override .social path {
        fill: #ad3632;
    }
}

@media only screen and (max-width: 1024px) {
    header .social.desktop {
        display: none;
    }

    header .social.mobile {
        display: flex;
        position: static;
        padding: 0 20px;
    }

    header .social.mobile path {
        fill: #fff;
    }
}

.footer-file-link {
    display: block;
    width: fit-content;
    font-size: 10px;
    line-height: 12px;
    font-style: normal;
}

@media (max-width: 640px) {
    .footer-file-link {
        margin: 0 auto;
    }
}

header .header-img .img-tree__small {
    width: 130px;
}

.footer-bottom-logo {
    margin-top: 12px;
    text-align: center;
}

.footer-bottom-logo img {
    max-width: 120px;
}

/* ------------------------------------
   Block: Start Stories
------------------------------------- */

.stories-section {
    position: relative;
    padding: 80px 0;

}

.stories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.stories-item {
    width: calc(50% - 25px);
}

.stories-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.load-more-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.load-more.button.hidden {
    display: none;
}

@media (max-width: 640px) {
    .stories-container {}

    .stories-item {
        width: 100%;

    }
}

/* ------------------------------------
   Block: End Stories
------------------------------------- */

.team-section {
    padding: 80px 0;
}

.team-section .title {
    text-align: center;
    padding-bottom: 40px;
}

.team-members-container {
    display: flex;
    flex-wrap: wrap;
}

.team-member {
    position: relative;
    max-height: 440px;
    overflow: hidden;
    transition: all 300ms;
    width: calc((100% - 48px) / 3);
    margin-bottom: 40px;
}

.team-member:not(:nth-child(3n)) {
    margin-right: 24px;
}

.team-member__inner {
    padding: 20px 14px;
    background-color: rgba(71, 86, 112, 0.5);
    color: #FFF;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 87px;
}

.team-member__name {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 0;
}

.team-member__position {
    font-size: 14px;
    padding-right: 40px;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member:hover .team-member__bio {
    color: #fff;
}

.team-member__bio {
    color: #ad3632;
    font-style: italic;
    position: absolute;
    bottom: 20px;
    right: 24px;
}

.team-member a {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
}

.team-member.with-bio:hover {
    transform: translateY(-16px);
    cursor: pointer;
}

.team-member__position p {
    font-size: 18px;
    line-height: 1.4;
}

@media (max-width: 641px) {
    .team-member:hover .team-member__inner {
        opacity: 1;
    }
}

@media (max-width: 1024px) {

    .team-members-container .cell {
        padding: 20px;
    }

    .team-member__name {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .team-members-container {
        margin: 0;
    }

    .team-member {
        max-width: 420px;
        width: 100%;
        margin: 0 auto 24px !important;
        max-height: initial;
    }

    .team-members-container .cell {
        padding: 20px 0;
    }
}

.bio-popup {
    max-width: 1189px;
    background-color: #475670;
}

.bio-popup__content {
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #FFF;
}

.bio__text {
    max-width: 596px;
    font-style: italic;
    font-size: rem-calc(16);
}

.bio__image img {
    width: 100%;
    margin-bottom: 22px;
    max-height: 350px;
    object-fit: contain;
}

.bio__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bio-popup .fancybox-close-small svg path {
    fill: #FFF;
}

.page-id-1142 header.header_override {
    height: 40vw;
    max-height: none;
    background-size: contain;
    background-position: top left;
}

.pum-container.pum-responsive img {
    width: 100%;
}

.onetap-container-toggle .onetap-toggle {
    z-index: 1000000 !important;
}