/*   
Theme Name: Optimum Painting and Decorating
Theme URI: http://www.paulfitz.com.au
Author: Paul Fitzgerald
Author URI: http://www.paulfitz.com.au
Version: 1.0
*/



/* And here begins the WordPress fun.
-------------------------------------------------------------------------------*/

.mapiframe {
    width: 100%;
    max-width: 800px;
    min-height: 600px;
}

.kingsoft {
    background: none !important;
    padding: 20px 30px !important;
}
.content {
    float: left;
    max-width: 780px;
    width: 100%;
}

.su-column-inner li{
    font-weight: 300;
}

.su-row {
    margin: 40px auto;
    width: 70%;
}

.blogposts {
    width: 100%;
    height: auto;
}

.kingsoft .post {
    background-color: #fff2eb;
    overflow: hidden;
    margin-bottom: 20px;
}
.post .entry-header {
    background-color: #fff2eb;
    padding: 20px 40px;
}
.post h2.entry-title {
    font-size: 32px;
    font-weight: 400;
}
.post h2.entry-title a, .entry-footer span a {
    color: #333;
    text-decoration: none;
}
.post h2.entry-title a:hover, .entry-footer span a:hover {
    color: rgba(51, 51, 51, 0.7);
    text-decoration: none;
}
.post .entry-content {
    background-color: #fff2eb;
    padding: 0 40px 20px;
    font-size: 16px;
}
.entry-content a {}
.entry-content a:hover {}
.entry-footer {
    background-color: #59a2d4;
    color: rgba(51, 51, 51, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    padding: 40px;
    margin-bottom: 0;
    margin-top: 0;
}
.entry-footer span {
    display: inline-block;
    margin: 0 10px;
}
.single .post h2.entry-title {
    padding: 40px 40px 0;
}
.single .entry-content {
    padding: 40px;
}
#respond {
    padding: 20px;
    background: #fff2eb;
}
#meta {}
.postmetadata {}

#sidebar {
    background: #fff2eb;
    float: right;
    padding: 20px;
    width: 320px;
}
#sidebar .widget {
    display: block;
    margin: 0 0 20px;
    overflow: hidden;
    width: 100%;
}
#sidebar .widget-title {
    margin-bottom: 10px;
}
#sidebar table {
    width: 100%;
}
#sidebar li {
    list-style: none;
    font-weight: 300;
}

#sidebar a {
    color: #222;
    text-decoration: none;
}
#sidebar a:hover {
    color: #59a2d4;
    text-decoration: none;
}
.navgation {}
.next-posts {}
.prev-posts {}

#searchform {}
#s {}
#searchsubmt {}
    
ol.commentlist {list-style: none;}
ol.commentlist li {}
ol.commentlist li.alt {}
ol.commentlist li.bypostauthor {}
ol.commentlist li.byuser {}
ol.commentlist li.comment-author-admin {}
ol.commentlist li.comment {border-bottom: 1px dotted #666; padding: 10px;}
ol.commentlist li.comment div.comment-author {}
ol.commentlist li.comment div.vcard {}
ol.commentlist li.comment div.vcard cite.fn {font-style: normal;}
ol.commentlist li.comment div.vcard cite.fn a.url {}
ol.commentlist li.comment div.vcard img.avatar {float:right; margin: 0 0 10px 10px;}
ol.commentlist li.comment div.vcard img.avatar-32 {}
ol.commentlist li.comment div.vcard img.photo {}
ol.commentlist li.comment div.vcard span.says {}
ol.commentlist li.comment div.commentmetadata {}
ol.commentlist li.comment div.comment-meta {font-size: 10px;}
ol.commentlist li.comment div.comment-meta a {color: #ccc;}
ol.commentlist li.comment p {}
ol.commentlist li.comment ul {}
ol.commentlist li.comment div.reply {font-size: 11px;}
ol.commentlist li.comment div.reply a {font-weight: bold;}
ol.commentlist li.comment ul.children {list-style: none; margin: 10px 0 0;}
ol.commentlist li.comment ul.children li {}
ol.commentlist li.comment ul.children li.alt {}
ol.commentlist li.comment ul.children li.bypostauthor {}
ol.commentlist li.comment ul.children li.byuser {}
ol.commentlist li.comment ul.children li.comment {}
ol.commentlist li.comment ul.children li.comment-author-admin {}
ol.commentlist li.comment ul.children li.depth-2 {border-left: 5px solid #555; margin: 0 0 10px 10px;}
ol.commentlist li.comment ul.children li.depth-3 {border-left: 5px solid #999; margin: 0 0 10px 10px;}
ol.commentlist li.comment ul.children li.depth-4 {border-left: 5px solid #bbb; margin: 0 0 10px 10px;}
ol.commentlist li.comment ul.children li.depth-5 {}
ol.commentlist li.comment ul.children li.odd {}
ol.commentlist li.even {background: #fff;}
ol.commentlist li.odd {background: #f6f6f6;}
ol.commentlist li.parent {border-left: 5px solid #111;}
ol.commentlist li.thread-alt {}
ol.commentlist li.thread-even {}
ol.commentlist li.thread-odd {}

/* WordPress Gallery STUFF */

/**.gallery {
   margin: auto;
}*/

.gallery-item {
    float: left;
    text-align: center;
    display: block;
    width: 25%;
    height: auto;
    }

.gallery-icon img {
    border: 4px solid #FFF;
    }

.gallery-caption {
    color: black;
    font-family: 'Source Sans Pro', sans-serif;
    padding: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    margin: 0;
    display: none;
}


/**
 * Galleries (from twentythirteen)
 * ----------------------------------------------------------------------------
 */

.gallery {
    margin-bottom: 20px;
    margin-left: -4px;
}

.gallery-item {
    float: left;
    margin: 0 0 4px 0;
    overflow: hidden;
    position: relative;
}

.gallery-columns-1.gallery-size-medium,
.gallery-columns-1.gallery-size-thumbnail,
.gallery-columns-2.gallery-size-thumbnail,
.gallery-columns-3.gallery-size-thumbnail {
    display: table;
    margin: 0 auto 20px;
}

.gallery-columns-1 .gallery-item,
.gallery-columns-2 .gallery-item,
.gallery-columns-3 .gallery-item {
    text-align: center;
}

.gallery-columns-4 .gallery-item {
    max-width: 23%;
    max-width: -webkit-calc(25% - 4px);
    max-width:         calc(25% - 4px);
}

.gallery-columns-5 .gallery-item {
    max-width: 19%;
    max-width: -webkit-calc(20% - 4px);
    max-width:         calc(20% - 4px);
}

.gallery-columns-6 .gallery-item {
    max-width: 15%;
    max-width: -webkit-calc(16.7% - 4px);
    max-width:         calc(16.7% - 4px);
}

.gallery-columns-7 .gallery-item {
    max-width: 13%;
    max-width: -webkit-calc(14.28% - 4px);
    max-width:         calc(14.28% - 4px);
}

.gallery-columns-8 .gallery-item {
    max-width: 11%;
    max-width: -webkit-calc(12.5% - 4px);
    max-width:         calc(12.5% - 4px);
}

.gallery-columns-9 .gallery-item {
    max-width: 9%;
    max-width: -webkit-calc(11.1% - 4px);
    max-width:         calc(11.1% - 4px);
}

.gallery-columns-1 .gallery-item:nth-of-type(1n),
.gallery-columns-2 .gallery-item:nth-of-type(2n),
.gallery-columns-3 .gallery-item:nth-of-type(3n),
.gallery-columns-4 .gallery-item:nth-of-type(4n),
.gallery-columns-5 .gallery-item:nth-of-type(5n),
.gallery-columns-6 .gallery-item:nth-of-type(6n),
.gallery-columns-7 .gallery-item:nth-of-type(7n),
.gallery-columns-8 .gallery-item:nth-of-type(8n),
.gallery-columns-9 .gallery-item:nth-of-type(9n) {
    margin-right: 0;
}

.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1),
.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) {
    clear: left;
}

.gallery-caption {
    background-color: rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    max-height: 50%;
    opacity: 0;
    padding: 2px 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: left;
    -webkit-transition: opacity 400ms ease;
    transition:         opacity 400ms ease;
    width: 100%;
}

.gallery-caption:before {
    box-shadow: 0 -10px 15px #000 inset;
    content: "";
    height: 100%;
    min-height: 49px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
    display: none;
}

/* Clearing floats */
.gallery:after {
    clear: both;
}

.gallery:before,
.gallery:after {
    content: "";
    display: table;
}

/* Contact form 7 */

.wpcf7 input.wpcf7-text { width: 95%; }
.wpcf7 .wpcf7-textarea { width: 95%; }
.wpcf7-submit {
    display: block;
    width: 120px;
    padding: 0 auto;
    min-height: 40px;
    text-align: center;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    background: url('images/bg-button.png') 0px -5px repeat-x #59a2d4 ;
    border: 0;
}

/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    font-family: 'Source Sans Pro', sans-serif;
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


html {
    background: url('images/bg-main-pattern.png') top center repeat #0c263f;
}

/* ======================== HEADER STUFF ===========================*/

#header {
    margin: 0;
    padding: 0;
    background: url('images/bg-header.png') repeat;
}

#header-content-wrapper {
    max-width: 1280px;
    min-height: 146px;
    margin: 0 auto;
    padding: 0 40px;
}

h1#logo {
    margin: 28px 0 0 0;
    float: left;
    color: white;
    display: block;
    width: 295px;
    height: 92px;
    background-image: url('images/optimum-painting-logo.png');
    /* height: 110px;
    background-image: url('/wp-content/uploads/2017/05/Logo.png');*/
    background-repeat: no-repeat;
    background-size: 68%;
}

.contact-details {
    float:right;
    color: white;
    font-size: 16px;
    font-weight: 300;
    margin-top: 40px;
}

.contact-details-icon {
    margin: -6px 14px 0 0;
}

.phone-number {
    font-size: 44px;
    font-weight: 300;
    color: #59a2d4;
    margin-top: -4px;
}

/* ==========================================================================
   AUTHOR MAIN TYPE STYLES
   ========================================================================== */

p {
    color: black;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}

h2 {
    margin: 0;
    padding: 0;
    font-size: 30px;
    line-height: 32px;
    font-weight: 300;
    color: #59a2d4;
}

h3 {
    margin: 0;
    padding: 0;
    color: #59a2d4;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 20px;

}



/* ======================== NAVIGATION STUFF ============================*/

#main-nav-wrapper {
    margin-top: 0;
    min-height: 41px;
    background-color: #59a2d4;
    border-bottom: 1px solid #8cbfe1;
}

#main-nav { max-width: 1280px; margin: 0 auto; font-size: 18px; font-weight: 200px; }

ul.menu {
    margin: 0 auto;
    padding: 0 40px;
    list-style-type: none;
    max-width: 1280px;
}

ul.menu li {
    float: left;
    min-width: 15%;
}

ul.menu li a {
    display: block;
    min-height: 40px;
    text-align: center;
    padding: 0 15px;
    line-height: 40px;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 18px;
    font-weight: 200; 
    border-right: 1px solid #85cdff;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    }

ul.menu li:last-child a {
    border-right: 0;
}

nav a:hover, nav a:active {  
    background-color: #87cfff;  
}

nav li.current-menu-item, nav li.current-menu-item:hover, nav li.current-menu-item:active {  
    background-color: #5295c3;  
}

nav a#pull {  
    display: none;
    font-family: 'Source Sans Pro', sans-serif;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 40px;
    padding-top: 2px;
}

/* ============================= MAIN CONTENT STUFF =============================*/

.main-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============== Homepage feature ==============*/
.homepage-feature {
    margin-top: 0;
    padding-top: 20px;
    background: url('images/bg-homepage-feature.jpg') top center no-repeat;
}
.homepage-feature h1 { color: white; font-size: 40px; line-height: 40px;font-weight: normal; font-weight: 200;}
.homepage-feature h2 { color: #59a2d4; font-size: 19px; font-weight: 300; }
.homepage-feature p, .content-wrapper p { color: #59a2d4; font-size: 16px; font-weight: 300; }


.homepage-feature-image-wrapper {
    float: left;
    width: 50%;
}

.homepage-feature-image {
    margin-top: 0px;
    -moz-box-shadow:    0px 0px 6px 2px #0a2a47;
    -webkit-box-shadow: 0px 0px 6px 2px #0a2a47;
    box-shadow:         0px 0px 6px 2px #0a2a47;
    width: 100%;
    height: auto;
}

.homepage-feature-content-wrapper {
    float: right;
    width: 50%;
}

.homepage-feature-content {
    padding: 30px 40px 0 40px;
}

/* =============== Homepage modules ==============*/

.homepage-modules-wrapper {
    margin-top: 20px;
    padding: 0;
}

.service-module-wrapper {
    float: left;
    width: 25%;
}

.service-module {
    padding: 20px;
    background: #fff2eb;
    border-right: 1px solid #f2e8df; 
}

.service-module img {
    float: left;
    margin-right: 10px;
    width: 50px;
    height: 50px;
}

.service-module h3 {
    margin-top: 7px;
    font-size: 23px;
    line-height: 25px;
}

.service-module h4 {
    margin: 20px 0;
    color: black;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

/*  ===== CONTENT WRAPPER ======== */

.content-wrapper {
     margin-top: 20px;
     padding: 20px;
     background: #fff2eb;
     overflow: hidden;
}

.content-wrapper p { color: black; margin-bottom: 20px; }
.content-wrapper h1 { color: #59a3d4; font-weight: 200;}
.content-wrapper h2 { color: #000; font-size: 20px; font-weight: 300; }
.content-wrapper h3 { margin-bottom: 0px; }

.intro-image-wrapper {
    float: left;
    width: 50%;
}

.content-intro-image {
    margin-top: 0px;
    width: 100%;
    height: auto;
}

.intro-content-wrapper {
    float: right;
    width: 50%;
    margin-bottom: 40px;
}

.intro-content {
    padding: 30px 20px 0 60px;
}


.module-wrapper {
    float: left;
    margin: 20px 0 10px;
    border-bottom: 1px solid #d4c9c3;
}

.module-wrapper p {
    font-size: 16px;
}


.module img {
    float: right;
    margin: 0 0 20px 40px;
    width: 400px;
    height: 300px;
    min-height: 130px;
    border: 5px solid white;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    background: #d2d2d2;
}

.service-description {
    overflow: hidden;
    /* height: 60px; */
    margin-bottom: 20px;
}
/*
.service-description-closed {
    overflow: hidden;
    height: 60px;
    margin-bottom: 20px;
}
*/
.service-description-open {
    height: auto;
}


/* ============================= FOOTER =============================*/

footer {
    color: white;
    margin: 14px auto;
    text-align: center;
    max-width: 1280px;
    font-size: 11px;
    font-weight: 300;
    margin-bottom: 50px;
}

/* ==========================================================================
   AUTHOR BUTTON STYLES
   ========================================================================== */

a.button-large {
    display: block;
    max-width: 470px;
    margin: 30px auto 0;
    padding: 12px 30px 0 30px;
    /* float: right; */
    /* width: 389px; */
    min-height: 35px;
    text-align: center;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    background: url('images/bg-button.png') repeat-x #59a2d4;
    -moz-box-shadow: 0px 0px 6px 2px #071c30;
    -webkit-box-shadow: 0px 0px 6px 2px #071c30;
    box-shadow: 0px 0px 6px 2px #071c30;
}

.intro-content a.button-large {
    -moz-box-shadow: 0px 0px 6px 2px #d5cac4;
    -webkit-box-shadow: 0px 0px 6px 2px #d5cac4;
    box-shadow: 0px 0px 6px 2px #d5cac4;
}

.button-small {
    display: block;
    width: 148px;
    height: 27px;
    background: url('images/bg-button.png') center center repeat-x #59a2d4;
    margin: 0 auto 20px;
    padding-top: 9px;
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

.button-small:hover, a.button-large:hover {
    background: #87cfff;
}

.more-info {
    background: url('images/arrow.png') center right no-repeat;
    background-size: 11px auto;
    width: 100%;
    position: relative;
    padding-right: 40px;
}

.less-info {
    background: url('images/arrow-up.png') center right no-repeat;
    background-size: 11px auto;
    width: 100%;
    position: relative;
    padding-right: 40px;
}

.arrow {
    margin-left: 0 !important;
    margin-bottom: 30px !important;
}






/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1280px) and (min-width: 1025px) {

    .content {
        width: 100%;
        max-width: 764px;
    }
}

@media only screen and (max-width: 1024px) and (min-width: 961px) {

    .kingsoft {
        padding: 0 !important;
    }
    .kingsoft .gallery-icon img {
        border: 4px solid #fff;
        height: 90%;
        width: 90%;
    }
    .main-content-wrapper,
    .intro-content {
        padding: 0 20px !important;
    }
    .content {
        width: 100%;
        max-width: 640px !important;
    }
    #sidebar {
        width: 260px !important;
    }
    .service-module {
        padding: 15px;
    }
    .service-module h3 {
        font-size: 18px;
    }
    .service-module h4 {
        font-size: 14px;
    }

    .homepage-feature h1,
    .content-wrapper h1 {
        font-size: 24px;
        line-height: 32px;
        margin-top: 0;
    }

    .homepage-feature h2,
    .content-wrapper h2 {
        font-size: 16px;
    }
}


@media only screen and (max-width: 960px) {

    .kingsoft {
        padding: 0 !important;
    }

    .kingsoft .gallery-icon img {
        border: 4px solid #fff;
        height: 90%;
        width: 90%;
    }

    .intro-content {
        padding: 0 20px !important;
    }

    .homepage-feature h1,
    .content-wrapper h1 {
        font-size: 24px;
        line-height: 32px;
        margin-top: 0;
    }

    .homepage-feature h2,
    .content-wrapper h2 {
        font-size: 16px;
    }

    .content,
    #sidebar {
        max-width: none;
        width: auto;
        float: none;
    }
    #sidebar {
        margin-top: 20px;
    }

    h1#logo {
        margin-left: 20px;
    }

    .contact-details {
        padding-right: 20px;
    }

    ul.menu {
        width: 100%;
        padding: 0;
    }



    ul.menu li:last-child a {
        border-bottom: 0;
    }

    .homepage-feature {
        padding-right: 20px;
        padding-left: 20px;
    }

    .homepage-feature-content {
        padding: 0px 20px 0 20px;
    }

    .service-module-wrapper {
    width: 50%;
    }

    .service-module {
        padding: 20px;
        margin: 10px;
        border-right: none;
        text-align: center;
    }

    .service-module img {
        float: none;
    }

    .homepage-modules-wrapper {
    margin-top: 20px;
    padding: 10px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    }

}

@media only screen and (max-width: 770px) {

    .homepage-feature {
        padding-left: 0;
        padding-right: 0;
    }

    .homepage-feature h1 {
        font-size: 24px;
        line-height: 32px;
        margin-top: 0;
    }

    .homepage-feature h2 {
        font-size: 16px;
    }

    .service-module h3 {
        font-size: 16px;
    }

    .service-module h4 {
        font-size: 14px;
    }

    .mapiframe {
        width: 100%;
        max-width: 800px;
        min-height: 350px;
    }

    h1#logo {
    float: none;
    margin: 60px auto 28px;
    padding-left: 0px;
    }

    .contact-details {
        float: none;
        margin: 0 auto 20px;
        text-align: center;
        max-width: 960px;
        padding-right: 0px;
    }

    nav {
        border-bottom: 0;
    }
    nav ul {
        display: none;
        height: auto;
    }
    nav a#pull {
        display: block;
        background-color: #5092bf;
        padding-left: 20px;
    }
    nav a#pull:after {
        content:"";
        background: url('images/nav-icon.png') no-repeat;
        width: 20px;
        height: 20px;
        display: inline-block;
        float: right;
        margin: 8px 20px 0 0;
    }

    #main-nav-wrapper {
        position: absolute;
        top: 0px;
        right: 0px;
        width: 100%;
        z-index: 999999;
    }

    ul.menu li {
        width: 100%; 
    }

    ul.menu li a {
        width: 100%; 
        border-bottom: 1px solid #85cdff;
        min-height: 36px;
    }

    .gallery-item {
        width: 33%;
    }

    /* Contact form 7 */

    .wpcf7 input.wpcf7-text { width: 100%; }
    .wpcf7 .wpcf7-textarea { width: 100%; }

}
@media only screen and (max-width: 667px) {
	.module img {
		width: 100%;
		margin: 0 0 20px;
		height: auto;
	}
}
@media only screen and (max-width: 660px) {

    .homepage-feature-image-wrapper, .intro-image-wrapper {
        float: none;
        width: 100%;
    }

    .homepage-feature-image, .content-intro-image {
        margin-bottom: 20px;
    }

    .homepage-feature-content-wrapper, .intro-content-wrapper {
        float: none;
        width: 100%;
    }

    .homepage-feature-content, .intro-content {
        padding: 0 20px 0 20px;
        margin: 0;
    }


}


@media only screen and (max-width: 480px) {
    #page-wrapper {
        overflow: hidden;
    }
    h1#logo {
        margin-top: 60px;
        width: 100%;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .service-module-wrapper {
    width: 100%;
    }

    .module-wrapper {
        float: none;
        margin: 0;
        padding: 0;
    }

    .module img {
        float: none;
        width: 100%;
        margin: 20px 0;
        padding: 0;
    }

    .arrow {
        margin-left: auto !important; 
    }

    .gallery-item {
        width: 50%;
    }

}

@media only screen and (max-width: 420px) {

    html #wpadminbar {
        display: none;
    }
    #header-content-wrapper, 
    .main-content-wrapper {
        padding: 0;
    }
    .post .entry-content {
        padding: 0 10px 20px !important;
    }
    .gallery-item {
        width: 100%;
    }
    .post .gallery {
        margin-left: 0;
    }
}



@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) { 
    
    h1#logo {
        background: url('images/optimum-painting-logo@2x.png') center no-repeat;
        background-size: 295px 92px;
        background-size: 250px;
        margin: 60px auto 20px auto;
        height: 140px;
    }
    
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
