/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/
/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (min-width: 1440px) {
    .custom-container {
        min-width: 1430px;
    }
}

@media only screen and (max-width: 1560px) {
    .hp-welcome .wc-photo img {
        height: 700px;
    }
}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1440px) {
    .section-title h1, .section-title h2 {
        font-size: 53px;
    }

    .hp-welcome .wc-photo img {
        height: 655px;
    }

    .hp-welcome .wc-photo {
        margin-left: calc((1140px - 100vw) / 2);
    }

    .hp-welcome .wc-right {
        padding: 75px 0 0 60px;
    }

    .hp-welcome .wc-title h1 {
        /* font-size: 40px; */
    }

    .hp-welcome .wc-btn {
        margin-top: 34px;
    }

    .hp-cta .cta-title {
        font-size: 32px;
        max-width: 143px;
        line-height: 38px;
        margin-bottom: 15px;
    }

    /*.hp-cta .cta-excerp {
        font-size: 14px;
        line-height: 20px;
    }*/

    .hp-testi .testi-title {
        padding-left: 40px;
    }

    .hp-testi .testi-preview-wrapper {
        padding-left: 80px;
    }

    /*.hp-testi .testi-preview-item p {
        font-size: 14px;
        line-height: 21px;
    }

    .hp-testi .testi-preview-item span {
        font-size: 12px;
        margin-top: 15px;
    }

    .hp-testi .testi-preview-item {
        min-height: 285px;
    }*/

    .hp-testi .testi-img {
        margin-right: calc((1140px - 100vw) / 2);
    }

    .hp-testi .testi-item p, .hp-testi .testi-item span {
        /*font-size: 14px;*/
        /* line-height: 23px; */
    }

    .hp-testi .slick-dots {
        margin-top: 55px;
    }

    .hp-cta .cta-content {
        padding: 30px 30px;
    }
    
    .cv-container > .custom-container {
        max-width: 1200px;
    }
}

/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */
@media only screen and (max-width: 1199px) {
    .section-title h1, .section-title h2 {
        font-size: 42px;
    }

    .section-title small {
        font-size: 17px;
        /*margin-bottom: 16px;*/
    }

    .main-header .mh-logo img {
        max-width: 230px;
    }

    .main-header.scrolled .mh-logo img {
        max-width: 175px;
    }

    .hp-welcome .wc-photo {
        margin-left: calc((940px - 100vw) / 2);
    }

    .hp-welcome .wc-title h1 {
        font-size: 40px;
    }

    .hp-fp .fp-details p {
        font-size: 15px;
        line-height: 13px;
    }

    .hp-fp a:hover .fp-price {
        top: -23px;
    }

    .hp-fp a:hover .fp-link {
        bottom: -30px;
    }

    .hp-fp a:hover .fp-details-holder {
        padding: 54px 0 60px;
    }

    .hp-cta .cta-title {
        font-size: 20px;
        line-height: 24px;
        max-width: 85px;
    }

    .hp-cta .cta-img {
        width: 46.26%;
    }

    .hp-cta .cta-content {
        width: 53.74%;
    }

    .hp-cta .cta-content {
        width: 53.74%;
        padding: 22px 20px;
    }

    .hp-cta .cta-excerp {
        font-size: 11px;
        line-height: 17px;
    }

    .hp-cta .cta-btn {
        padding: 11px 10.5px;
        margin-top: 15px;
    }

    .hp-cta .cta-btn span {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .hp-testi .testi-title {
        padding-left: 20px;
    }

    .hp-testi .testi-title-accent::after {
        right: calc(100% + 15px);
    }

    .hp-testi .testi-preview-wrapper {
        padding-left: 37px;
    }

    .hp-testi .testi-left {
        padding-right: 40px;
    }

    .hp-testi .testi-slider-wrap {
        padding-left: 45px;
        padding-right: 65px;
    }

    .hp-testi .testi-item p, .hp-testi .testi-item span {
        font-size: 12px;
        line-height: 25px;
    }

    .hp-testi .slick-dots {
        margin-top: 35px;
    }

    .hp-testi .testi-img {
        margin-right: calc((940px - 100vw) / 2);
    }

    .hp-testi .testi-quote {
        max-width: 71px;
    }

    .hp-testi .testi-slider-wrap {
        margin-top: -35px;
    }

    .main-footer .mf-contact {
        font-size: 12px;
        padding-left: 26px;
    }

    .main-footer .mf-address .ai-font-location-c {
        font-size: 21px;
        top: 7px;
    }

    .main-footer .mf-address {
        /* margin-top: -13px; */
    }

    .main-footer .mf-contact-col:nth-child(3) {
        margin-right: 35px;
    }

    .main-footer .mf-contact-col {
        margin-right: 15px;
    }

    .sb-contact-info .sb-contact {
        padding-left: 22px;
        font-size: 13px;
    }

    .sb-cta .cta-title {
        font-size: 25px;
    }

    .sb-cta .cta-btn {
        padding: 14px 19.5px;
    }

    #content .entry-title, #content .archive-title {
        font-size: 40px;
    }

    #nav>li {
        margin-right: 35px;
    }

    .mh-left {
        width: 35%;
    }

    .main-header .mh-right {
        width: 75%;
    }

    .mf-logo {
        max-width: 400px;
    }

    .main-header .mh-contact li, #nav a {
        font-size: 14px;
    }

    .hp-welcome .wc-text {
        font-size: 14px;
        line-height: 23px;
    }

    .hp-sl .sl-details {
        font-size: 20px;
    }

    .hp-sl .sl-details p {
        font-size: 14px;
    }

    .hp-git .git-text p {
        font-size: 14px;
    }

    .main-footer .mf-copyright p {
        font-size: 12px;
    }

    .main-footer .footernav a {
        font-size: 14px;
    }

    body .main-footer .mf-smi span.dre {
        padding-top: 16px!important;
        font-size: 13px!important;
    }

    .main-footer .mf-disc p {
        font-size: 12px;
    }

    #bm-nav>li>a {
        font-size: 15px;
    }

    .hp-cta .cta-img canvas {
        min-height: 300px;
    }

    .hp-welcome .wc-photo img {
        height: 580px;
    }

    .cv-inner p {
        font-size: 14px;
    }
    
    .cv-inner h2 {
        font-size: 22px;
    }
    
    .cv-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cv-container > .custom-container {
        max-width: 1024px;
    }

}

/* iPad(portrait) | Galaxy Tab 4(portrait)  */
@media only screen and (max-width: 991px) {
    .mh-left {
        width: 100%!important;
        max-width: 480px;
    }

    .main-header {
        position: relative;
        margin-top: 52px;
        background: var(--primary-color);
    }

    .main-header .mh-inner {
        display: block;
        text-align: center;
    }

    .hp-welcome {
        padding: 45px 0 30px;
    }

    .hp-welcome .wc-left, .hp-welcome .wc-right {
        width: 100%;
    }

    .hp-welcome .wc-photo {
        margin: 0 auto;
        max-width: 400px;
    }

    .hp-welcome .wc-right {
        padding: 0;
        text-align: center;
        margin-top: 30px;
    }

    .hp-cta {
        padding: 60px 0;
    }

    .hp-cta .cta-inner {
        margin: 0;
    }

    .hp-cta .cta-item {
        display: block;
        width: 100%;
        padding: 0;
        max-width: 280px;
        margin: 0 auto 40px;
    }

    .hp-cta .cta-item:last-child {
        margin-bottom: 0 !important;
    }

    .hp-cta .cta-img, .hp-cta .cta-content {
        width: 100%;
    }

    .hp-cta .cta-content {
        text-align: center;
    }

    .hp-cta .cta-title {
        max-width: unset;
        font-size: 30px;
    }

    .hp-sl .sl-box-list {
        display: block;
    }

    .hp-sl .sl-box {
        width: 50%;
        display: inline-block;
        vertical-align: middle;
        -webkit-box-ordinal-group: 1 !important;
        -ms-flex-order: 0 !important;
        order: 0 !important;
    }

    .hp-sl .sl-box-list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .hp-testi {
        padding: 20px 0 60px;
    }

    .hp-testi .testi-img {
        margin: 0 auto;
    }

    .hp-testi .testi-title-accent::after {
        display: none;
    }

    .hp-testi .testi-left, .hp-testi .testi-right {
        width: 100%;
        padding: 0;
    }

    .hp-testi .testi-title {
        padding: 0;
        text-align: center;
    }

    .hp-testi .testi-preview-wrapper {
        display: none;
    }

    .hp-testi .testi-slider-wrap {
        padding: 0;
        margin: 40px 0 0;
        text-align: center;
    }

    .hp-testi .testi-quote {
        margin: 0 auto 35px;
    }

    .main-footer .mf-contact-col {
        display: block;
        max-width: unset;
        margin: 0;
    }

    .main-footer .mf-bottom {
        text-align: center;
    }

    .main-footer .mf-contact {
        padding: 0;
    }

    .main-footer .mf-contact span {
        position: relative;
        margin: 0 0 14px;
        display: block;
    }

    .main-footer .mf-contact-col:nth-child(3) {
        margin-right: 0;
    }

    .main-footer .mf-address {
        margin: 0;
        line-height: 23px;
    }

    .main-footer .mf-smi {
        margin-top: 20px;
    }

    .main-footer .mf-sitemap {
        padding: 0;
        margin-top: 40px;
    }

    .main-footer .footernav li {
        display: block;
        width: 100%;
    }

    .main-footer .mf-brokerage, .main-footer .mf-copyright {
        text-align: center;
    }

    .main-footer .mf-brokerage {
        margin-top: 25px;
    }

    .hp-git .git-wrapper {
        margin: 0;
    }

    /* The following are used on inner pages. Please edit carefully. */
    .inner {
        width: 100%;
    }

    #content-sidebar, #content-full {
        width: 100%;
    }

    .outer {
        width: 100%;
        min-width: 100%;
    }

    #content-sidebar #content {
        width: 100%;
    }

    .ipbs-flex, .ipbs-flex:nth-child(even) {
        flex-direction: column;
    }

    .ipbs-text {
        text-align: center;
        margin: 20px 0;
    }

    .hp-welcome .wc-photo img {
        height: auto;
    }

    .hp-welcome .wc-title {
        margin-bottom: 30px;
    }
    
    .hp-welcome .wc-title h1 {
        font-size: 35px;
    }

    .cv-item {
        display: block;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }
    
    .cv-item:not(:last-child) {
        margin-bottom: 40px;
    }
    
    .cv-inner {
        text-align: center;
    }
    
    .cv-inner img {
        margin: 0 auto 20px;
    }

    .post-page-contact-us #content .contact-cta .ip-cta-list {
        display: flex;
        justify-content: center;
        flex-flow: row wrap;
        flex-direction: column;
        align-items: center;
    }
    .post-page-contact-us #content .contact-cta.ip-cta .ip-cta-list div {
        width: 290px;
    }

    .hp-testi .testi-preview-item a::before {
        display: none;
    }
    .hp-testi .testi-preview-item a {
        padding: 0 15px;
    }
}

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */
@media only screen and (max-width: 767px) {
    .ip-banner .container {
        width: 100%;
    }

    .hp-fp .fp-slider {
        max-width: 400px;
        margin: 0 auto;
    }

    .hp-sl .sl-box {
        width: 100%;
    }

    .hp-sl .sl-box:nth-child(6) {
        margin-top: 60px;
    }

    #content .entry-title, #content .archive-title {
        font-size: 35px;
    }
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */
@media only screen and (max-width: 480px) {
    .hp-testi .testi-title h2 {
        font-size: 36px;
    }

    .hp-git .git-field-row {
        display: block;
    }

    .hp-git .git-field-sm {
        width: 100%;
    }

    #content .entry-title, #content .archive-title {
        font-size: 30px;
    }
}
