@media only screen and (max-width: 1024px) {

    #nearby .location-results {
        margin: 60px 0 0;
    }

    div#nearby {
        width: calc(100% + 64px);
        margin: 0 -32px;
        padding: 0 0 70px;
    }

    .menusearch input[type="submit"] {float: none;}

    .call-to-action div {flex-direction: column;}
    .location-footer {flex-direction: column;}

    .question-image.cover {
        display: none;
    }

    .single-locations .top-bg {display: none;}

    .location-why-kidco {flex-direction: column;}

    .why-kidco-image.cover {height: 70vw; flex: inherit;}

    .director-description {margin: 20px 0 0;}

    .slick-prev {
        left: -30px;
    }

    .slick-next {
        right: -30px;
    }

    .centre-information {flex-direction: column;}

    .centre-information .acf-map {height: 400px !important;}

    .location-programs-container {flex-wrap: wrap; justify-content: center;}

    .location-program {flex-basis: 25%;}

    .location-results-list {
        display: none;
    }
    
    .location-results-map {
        min-height: 500px;
    }

    .builder-imagegrid {
        grid-template-columns: 1fr !important;
    }

    .builder-imagegrid .grid-image-container {
        height: 50vw !important;
    }

    .builder-imagecontent {
        flex-direction: column !important;
        align-items: flex-start;
        grid-gap: 20px;
    }

    .width-onehalf .imagecontent-image {
        width: 100%;
        margin: 0 !important;
    }

    span.imagecontent-image {
        margin: 0 !important;
        width: 100% !important;
    }

    .page-category {
        position: absolute;
        top: 0;
        height: 60px;
        display: flex;
        align-items: flex-end;
    }

    div#primary.page-template-home {
        margin: 0 0 -35px;
        display: inline-block;
    }

    .submenu .submenu {
        position: relative !important;
        left: 0 !important;
    }

    .homelink {
        flex-direction: column !important;
        align-items: baseline;
        padding: 0 !important;
    }

    .homelinkimage {
        margin: 0 0 20px !important;
        width: 100%;
        height: 70vw;
    }

    .homelinkcontent {
        padding: 10px 20px 50px;
    }

    .homelinkimage {
        margin-bottom: 20px;
    }

    .page-template-home .call-to-action {
        margin-top: 40px !important;
    }

    .moreinfobuttons {
        position: relative;
        width: 100%;
        transform: none;
        display: inline-flex;
        flex-direction: column;
        bottom: inherit;
        right: 0;
    }

    a.moreinfo {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #612b61;
    }

    .top-bar-right {
        position: relative;
        float: none;
        right: inherit;
        bottom: inherit;
    }

    div#widemenu {
        height: inherit;
    }

    .top-bar-right .dropdown {
        display: none;
    }

    .topright,
    .topright a {
        color: white;
    }

    .topright li:after {
        display: none !important;
    }

    .topright {
        display: none;
    }

    .top-bar-left {
        float: inherit;
        margin: 0 auto;
        display: table;
        width: inherit !important;
    }

    .owl-controls {
        display: none !important;
    }

    .slideheading {
        max-width: 90%;
    }

    .slideheading h2 {
        font-size: 20px;
    }

    .home-testimonials h2,
    .home-testimonials h3,
    .testimonials h2,
    .testimonials h3,
    .testimonials-page p,
    .testimonials-page h3 {
        font-size: 18px;
    }

    .home-testimonials h2:before,
    .testimonials h2:before,
    .testimonials-page p:before {
        display: none;
    }

    .home-testimonials h2:after,
    .testimonials h2:after,
    .testimonials-page p:after {
        display: none;
    }

    .home-testimonials h3,
    .testimonials h3,
    .testimonials-page h3 {
        padding: 0;
    }

    .home-testimonials img {
        position: inherit;
    }

    .home-testimonials div {
        width: 100%;
        -webkit-transform: inherit;
        transform: inherit;
        top: inherit;
    }

    .logos {
        margin-top: 0px;
    }

    .home-button h2 {
        font-size: 20px;
        line-height: 22px;
    }

    .home-button h3 {
        font-size: 16px;
        line-height: 18px;
    }

    #footer li {
        width: 40%;
    }

    .footer-right {
        text-align: inherit;
        margin-top: 15px;
        width: 100%;
        clear: both;
        margin: 0;
        padding: 16px 0 0;
    }

    #footer ul {display: flex; width: 100%; flex-direction: column; margin: 0 0 24px;}

    #footer li {width: 100%;}

    .app {padding: 0 40px 0 0;}

    .socialicons {padding: 0;}

    #footer .menusearch {
        float: none;
        margin-top: 10px;
    }

    .home-testimonials {
        height: inherit;
        flex-direction: column;
    }

    .home-testimonials img {
        margin: 0 auto;
        display: block;
        padding-top: 20px;
    }

    .postthumb {
        margin: 30px auto 0;
    }

    .page-category {
        font-size: 26px;
        line-height: 1;
    }

    .secondimage {
        display: none;
    }

    .ourpeopleimage {
        width: 50%;
        margin: 0 auto;
        display: block;
    }

    .get-started-form,
    #ninja_forms_form_11_cont,
    #ninja_forms_form_12_cont {
        border: 0;
        padding-left: 0;
    }

    .inner p {
        word-break: break-word;
    }

    .call-to-action h2 {
        font-size: 3vw;
        max-width: 60%;
    }

    .call-to-action a {
        font-size: 3vw;
    }

    .bannerimage {
        height: 200px;
    }

    iframe {
        width: 80vw !important;
    }

    .featherlight-iframe .featherlight-content {
        width: 85vw;
    }

    .birthdaybanner {
        height: 120px;
    }

    .birthdaybanner img {
        height: 200px;
        -o-object-fit: cover;
        object-fit: cover;
        width: 100%;
    }

    .featherlight-content {
        width: 80vw;
        height: inherit;
    }

    #career-opportunities,
    #hiring-process,
    #why,
    #meet-the-director,
    .gray-bg {
        display: inline-block;
    }

    #homeslider .owl-item img {
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }

    .imagebox {
        width: 100%;
    }

    .learninginvitation {
        width: 33.33%;
    }
}


@media only screen and (max-width: 650px) {

    .row1,
    .row2 {
        flex-direction: column;
    }
    .row1 img,
    .row2 img {
        margin-bottom: 20px;
    }

    div#locationField {
        flex-direction: column;
    }

    div#locationField form {
        flex-direction: column;
    }

    div#locationField input[type=submit] {
        margin: 10px 0 0 !important;
        padding: 6px;
    }

    span.locate.visible {
        margin: 10px 0 0;
    }
}

@media only screen and (max-width: 512px) {

    .slick-arrow {display: none;}

    .location-gallery-container.slick-initialized.slick-slider {
        padding: 0;
    }

    .form-notice {
        width: 300px;
    }
    
    a.form-notice-message {
        font-size: 16px;
    }
    
    .our-people-section, .three-column-gallery-section, #career-opportunities, #hiring-process, .gray-bg {
        padding: 20px 40px 60px;
        margin: 0 -40px;
    }
    
    .image-align-top .imagecontent-image {
        align-self: flex-start;
    }

    .overlays h3 {
        font-size: 28px;
    }

    .overlays h2 {
        font-size: 17px;
    }

    .overlays h4 {
        font-size: 14px;
    }

    .overlays {
        width: 70%;
    }

    .postthumb {
        width: 80vw;
        height: 80vw;
    }

    .ourpeopleimage {
        width: 80%;
    }

    .postid-194 .page-category,
    .postid-126 .page-category,
    .postid-217 .page-category,
    .postid-279 .page-category,
    .page-id-495 .page-category,
    .postid-677 .page-category {
        font-size: 6vw;
    }

    .call-to-action h2 {
        font-size: 4vw;
        display: block;
        text-align: center;
        margin: 0px auto 10px;
    }

    .columned-image img {
        width: 100%;
    }

    .blog .page-category,
    .single-post .page-category {
        font-size: 30px;
    }

    .single .avatar {
        width: 100%;
        height: 100%;
    }

    .home-button {
        width: 100%;
    }

    .learninginvitation {
        width: 100%;
    }

    .careers-filters {grid-template-columns: repeat(1, 1fr); gap: 0px;}

}