/*
 * Kevin Mitchell website
 * Mobile compatibility fixes
 * Original Elegance theme preserved
 */

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

    /* Reset fixed desktop dimensions */

    html, body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    .center,
    #main,
    #footer,
    #featured,
    div.orbit-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Header */

    #header {
        padding: 15px 0 25px;
    }

    #main {
        padding: 10px 15px 20px;
        margin-bottom: 10px;
    }

    #header h1 {
        float: none;
        text-align: center;
    }

    #logo {
        float: none;
    }

    /* Navigation */

    #navigation {
        float: none;
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    #navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    #navigation ul li {
        float: none;
    }

    #navigation ul ul {
        display: none;
    }

    /* Main content */

    #content {
        padding: 20px 15px;
    }

    #primary-content {
        float: none;
        width: 100% !important;
        max-width: 100%;
        padding: 0;
    }

    #secondary-content {
        display: none;
    }

    /* Banner */

    #banner {
        max-width: 100%;
        background-size: cover;
    }

    /* Footer */

    #footer {
        padding: 20px 15px;
    }

    /* Images and embedded content */

    img,
    video,
    iframe {
        max-width: 100%;
    }

}

/* Smaller phones */

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

    #navigation ul a {
        padding: 8px 6px;
        font-size: 12px;
    }

    #header h1 {
        font-size: 22px;
    }

}
