/*
   Mobile overrides for the inherited Memoria theme.
   Loaded after style.css so these rules can fix mobile behavior without rewriting the theme.
*/

html {
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 767px) {
    .ct-navbarMobile {
        min-height: 105px;
        padding-left: 12px;
        padding-right: 64px;
    }

    .ct-navbarMobile .navbar-brand {
        width: 100%;
        height: 70px;
        line-height: 70px;
        padding-left: 0;
        padding-right: 0;
    }

    .ct-navbarMobile .navbar-brand img {
        width: auto;
        max-width: 100%;
        max-height: 70px;
        vertical-align: middle;
    }

    .ct-navbarMobile .navbar-toggle {
        right: 12px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 9px;
    }

    .ct-mobileCall {
        position: absolute;
        top: 24px;
        right: 68px;
        z-index: 2;
        width: 44px;
        height: 44px;
        line-height: 44px;
        text-align: center;
        font-size: 22px;
        color: #ffffff;
    }

    .ct-mobileCall:hover,
    .ct-mobileCall:focus {
        color: #ffffff;
        text-decoration: none;
    }

    .ct-mediaSectionHeader {
        height: 210px !important;
        min-height: 210px;
    }

    .ct-mediaSectionHeader .ct-u-paddingTop40 {
        padding-top: 20px !important;
    }

    .ct-historySection .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ct-historySection li {
        margin-bottom: 12px;
    }

    .ct-historySection a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ct-aboutSection-imageBox img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .ct-menuMobile {
        width: 266px;
        max-width: 266px;
    }

    .ct-menuMobile .ct-menuMobile-navbar li {
        padding-top: 0;
        padding-bottom: 0;
    }

    .ct-menuMobile .ct-menuMobile-navbar li a {
        min-height: 44px;
        padding: 10px 18px 10px 25px;
        line-height: 24px;
    }

    .ct-menuMobile .ct-menuMobile-navbar li a:hover {
        padding: 10px 18px 10px 25px;
    }

    .ct-mediaSectionHeader h3 {
        font-size: 28px;
        line-height: 1.2;
    }

    .ct-historySection {
        padding-top: 35px !important;
        padding-bottom: 45px !important;
    }

    .ct-historySection .ct-u-fontSize24 {
        font-size: 18px !important;
        line-height: 1.65 !important;
        padding-top: 15px !important;
    }

    .ct-historySection ul {
        padding-left: 22px;
        padding-right: 5px;
        text-align: left;
        line-height: 1.55;
    }

    .ct-mainSlider .ct-box header {
        font-size: 32px !important;
        line-height: 1.15;
    }

    .ct-mainSlider .ct-box h5 {
        font-size: 16px !important;
        line-height: 1.45;
    }

    .ct-aboutSection .ct-u-paddingBottom100 {
        padding-bottom: 50px !important;
    }

    .ct-aboutSection .ct-u-paddingTop60 {
        padding-top: 35px !important;
    }

    .ct-aboutSection-imageBox,
    .ct-aboutSection-descriptionBox {
        padding-top: 25px !important;
    }

    .ct-aboutSection-descriptionBox p {
        font-size: 16px;
        line-height: 1.7;
    }

    .ct-iconBoxesSection .ct-iconBoxes {
        margin-bottom: 48px;
    }

    .ct-iconBoxes .ct-iconBoxes-button {
        left: 0 !important;
        right: 0;
        width: 100%;
        transform: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
    }

    .ct-footerBottom {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .ct-mainSlider .ct-box header {
        font-size: 27px !important;
    }

    .btn {
        white-space: normal;
    }
}
