/*** Block Frames - For Blocks that need white space around them ***/
.framed_desktop {
    max-width: calc(100% - 120px);
}
@media(max-width: 1399.98px) {
    .framed_desktop {
        max-width: calc(100% - 90px);
    }
}

@media(max-width: 991.98px) {
    .container-padding {
        padding-left: 40px;
        padding-right: 40px;
    }
    .framed_desktop {
        max-width: 100%;
    }
    /*** Add this if you want the frame to happen on mobile too ***/
    .framed_mobile {
        max-width: calc(100% - 80px);
    }
}

@media(max-width: 767.98px) {
    .container-padding {
        padding-left: 30px;
        padding-right: 30px;
    }
    .framed_mobile {
        max-width: calc(100% - 60px);
    }
}

@media(max-width: 575px) {
    .container-padding {
        padding-left: 15px;
        padding-right: 15px;
    }
    .framed_mobile {
        max-width: calc(100% - 30px);
    }
}


/*** Awesome ACF Image Settings ***/
.image-2by3 {
    padding-bottom: 125%;
    position: relative;
    overflow: hidden;
}
.image-4by3 {
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
}
.image-16by9 {
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
}
.image-square {
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.image-square.object > img {

}

.image-2by3 > img,
.image-4by3 > img,
.image-16by9 > img,
.image-square > img,

.image-2by3 > svg,
.image-4by3 > svg,
.image-16by9 > svg,
.image-square > svg,

.image-2by3 > video,
.image-4by3 > video,
.image-16by9 > video,
.image-square > video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-position: center;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    height: 100%;
    width: 100%;
}

/*** Image / Video Contain ***/
.image-2by3.size-contain,
.image-4by3.size-contain,
.image-16by9.size-contain,
.image-square.size-contain {
    padding-bottom: 0 !important; /* important, to override custom padding settings in blocks */
}

.image-2by3.size-contain > img,
.image-4by3.size-contain > img,
.image-16by9.size-contain > img,
.image-square.size-contain > img,

.image-2by3.size-contain > video,
.image-4by3.size-contain > video,
.image-16by9.size-contain > video,
.image-square.size-contain > video {
    position: relative;
    transform: none;
    left: 0;
    top: 0;
    object-fit: unset;
}
/* Care Home Menu */
.page-template-page-care-home-2025 careHomeMenuContainer > .container {
    padding: 0;
}
.page-template-page-care-home-2025 .careHomeMenuContainer {
    background-color: var(--white);
    padding: 30px 0px;
}
.page-template-page-care-home-2025 .careHomeMenuContainer.less-padding {
    padding: 5px 0px;
}
.page-template-page-care-home-2025 ul.care-home-nav {
    display: flex;
     float: unset;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin: 0px -20px;
}
.page-template-page-care-home-2025 ul.care-home-nav > li > a {
    color: var(--text-black);
    font-size: 22px;
    line-height: 27px;
}
.page-template-page-care-home-2025 ul.care-home-nav>li.active a {
    color: var(--brand-accent-1);
}
.page-template-page-care-home-2025 ul.care-home-nav>li.active:after {
    content: '';
    height: 5px;
    width: 100%;
    position: absolute;
    bottom: -30px;
    background-color: var(--brand-accent-1);
    left: 0;
}
.page-template-page-care-home-2025 .careHomeMenuContainer.less-padding ul.care-home-nav>li.active:after {
    bottom: -5px;
}
.page-template-page-care-home-2025 ul.care-home-nav>li {
    position: relative;
    padding-left: 30px;
    /*flex: 1;*/
    margin: 0px 20px;
}
.page-template-page-care-home-2025 ul.care-home-nav>li:before {
    content: '';
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.page-template-page-care-home-2025 ul.care-home-nav>li.living:before {
    background-image: url('../img/care-home-nav/living-with-us.svg');
}
.page-template-page-care-home-2025 ul.care-home-nav>li.facilities:before {
    background-image: url('../img/care-home-nav/facilities.svg');
}
.page-template-page-care-home-2025 ul.care-home-nav>li.care:before {
    background-image: url('../img/care-home-nav/types-of-care.svg');
}
.page-template-page-care-home-2025 ul.care-home-nav>li.location:before {
    background-image: url('../img/care-home-nav/area.svg');
}
.page-template-page-care-home-2025 ul.care-home-nav>li.activities:before {
    background-image: url('../img/care-home-nav/activities.svg');
}
@media(max-width: 1199.98px){
    .page-template-page-care-home-2025 ul.care-home-nav > li > a {
        font-size: 16px;
        line-height: 24px;
    }
    .page-template-page-care-home-2025 ul.care-home-nav>li {
        padding-left: 20px;
    }
    .page-template-page-care-home-2025 ul.care-home-nav>li:before {
        width: 20px;
        height: 20px;
    }
    .page-template-page-care-home-2025 ul.care-home-nav {
        margin: 0px -10px;
    }
    .page-template-page-care-home-2025 ul.care-home-nav>li {
        margin: 0px 10px;
    }
}

/* End Care Home Menu */
.care-home-banner-25 {
    position: relative;
}
.page-template-page-care-home-2025 .collapse.navbar-collapse {
    display: none!important;
}
body.page-template-page-care-home-2025 #menu-main_menu-1 > li.menu-item-3717 a {
    color: #B29453!important;
}
/*.care-home-banner-25 {*/
/*    position: relative;*/
/*    padding-bottom: 39.1%;*/
/*}*/
.care-home-banner-25 .content-holder {
    /*position: absolute;*/
    /*bottom: 120px;*/
    /*left: 0px;*/
    /*right: 0px;*/
    padding: 19% 0px 60px;
}
.care-home-banner-25:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(7, 7, 7, 0) 0%, rgba(7, 7, 7, 0) 50%, rgba(7, 7, 7, 0.5) 100%);
}
.care-home-banner-25 .content-holder .row {
    align-items: end;
    justify-content: space-between;
    max-width: calc(100% - 30px);
    margin: 0 auto;
}
.care-home-banner-25 .content-holder h4:after {
    display: none;
}
.care-home-banner-25 .content-holder h4 span.mhMobile a {
    color: #333!important;
}
.care-home-banner-25 .white_bg {
    padding: 40px;
    background-color: #F2F1EC;
}
.care-home-banner-25 .white_bg div {
    padding: 0px 7.5px;
}
@media(max-width: 1199.98px){
    .care-home-banner-25 .contact-numbers {
        margin-top: 30px;
    }
    .care-home-banner-25 .content-holder {
        padding: 15% 0px 60px;
    }
}
@media(max-width: 575.98px){
    .care-home-banner-25 .content-holder {
        padding: 25% 0px 60px;
    }
    .care-home-banner-25 .white_bg {
        padding: 15px;
        display: block!important;
    }
    .care-home-banner-25 .white_bg div {
        padding: 0;
        margin-bottom: 15px;
    }
    .care-home-banner-25 .white_bg div:last-of-type {
        margin-bottom: 0;
    }
}

/* modals */
.modal2025 .modal-dialog {
    max-width: 1800px;
    width: calc(100% - 60px);
    margin: 20px auto;
}
.modal2025 .content-row {
    margin: 0px -15px;
    margin-top: 60px;
}
.modal2025 .content-row .content-repeat {
    padding: 0px 15px;
}
.modal2025 .content-row .content-repeat .image-16by9 {
    margin-bottom: 30px;
}
.modal2025 .content-row .content-repeat p.h4style {
    margin-bottom: 10px;
}
.modal2025 .modal-header {
    padding: 20px;
    border: 0;
}
.modal2025 .modal-header button {
    background-image: url('../img/close-modal.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 1;
    margin-top: 0px;
    margin-right: 0px;
}
.modal2025 .modal-content {
    border-radius: 0px;
    border: 0px;
}
.modal2025 .modal-body {
    padding: 100px 0px 120px;
}
.modal2025 .modal-body p.h2style {
    padding: 0px 80px;
}
.modal2025 .full-image {
    margin-top: 60px;
}
@media(max-width: 1199.98px){
    .modal2025 .modal-body {
        padding: 80px 0px 100px;
    }
    .modal2025 .modal-body p.h2style {
        padding: 0px 60px;
    }
}
@media(max-width: 991.98px){
    .modal2025 .modal-body {
        padding: 60px 0px;
    }
    .modal2025 .modal-body p.h2style {
        padding: 0px;
    }
}
@media(max-width: 767.98px){
    .modal2025 .content-row {
        margin-top: 30px;
    }
    .modal2025 .full-image {
        margin-top: 30px;
    }
    .modal2025 .modal-body {
        padding: 30px 0px;
    }
    .modal2025 .modal-dialog {
        width: calc(100% - 30px);
    }
    .modal2025 .content-row .content-repeat .image-16by9 {
        margin-bottom: 15px;
    }
    .modal2025 .content-row .content-repeat {
        margin-bottom: 30px;
    }
    .modal2025 .content-row .content-repeat:last-of-type {
        margin-bottom: 0px;
    }
}
.block {
    overflow-x: hidden;
}
.single div#careHomeMenuContainer {
    display: none;
}
.care-home-banner-25 h2.h1style:after {
    display: none;
}