/*  
Theme Name: Tradesman
Author: Aerin
Author URI: https://aerin.co.uk/
Description: Showcase portfolio theme for tradespeople
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, grid-layout, custom-background,custom-colors, custom-header, custom-menu, editor-style, featured-images, footer-widgets, theme-options, threaded-comments
Theme URI: http://onepage.aerin.co.uk/
Text Domain: aerinone

This theme, like WordPress, is licensed under the GPL. Play with it and discover the flexibility of WordPress themes.
*/

/***** RESET EVERYTHING *****/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, font, ins, kbd, q, s, samp, small, strike, strong, tt, var, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 1em;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
    }

.clearfix:after, .navigation:after, #maincontent:before, #footercontent:after, .navbar:after,#headercontent:after, .acf-style:after, .entry:after, .social-wrapper:after, .testimonial:after{
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
    }

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    }

*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
  }

/***** ACCESSIBILITY *****/

.screen-reader-text {color: #000;background: #FFF;}

/***** COLOURS *****/

#commentform #submit, 
.signoffcta, 
.hometopcta, 
h4 a, 
nav, 
.navigation a, 
.navigation a:visited, 
.entry a.more-link, 
.entry a.more-link:visited,
.acf-style #submit {
    background: #001A39;
    color:#FFF;
    }

h4 a:hover, 
.navigation a:hover, 
.entry a.more-link:hover,
#commentform #submit:hover,
.acf-style #submit:hover{
    background: #FFB400;
    }

nav a,
#headercontent, 
#footercontent,
.hometop
.signoff,
footer {
    color:#FFF;
    }

#logo-title,
h1,
.comment-content b {
    color: #001A39;
    }

#logo-tagline,
.signoff a, 
.entry .signoff p a {
    color:#FFB400}

body {
    background:#FFFFFF;
    color:#343838;
    }

.signoff {background:#005FB0;}

h1 a:link,h1 a:hover ,h1 a:visited {
    color: #1A82C7;
    }

.hometopcta .button a {background:#FFB400;color:#FFFFFF;}
.hometopcta .telephone {color:#FFB400;}

/***** TYPOGRAPHY AND LINKS *****/

@font-face {
    font-family: AerinFont;
    src: url(assets/MuseoSans_500.otf);
}

html {
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

body {
    text-align: left;
    font-family: Helvetica, Arial, sans-serif;
    font-size:1rem;
    }

h1 {
    font-size: 2rem;
    font-weight: 900;
    text-align: left;
    text-decoration: none;
    padding: 0 0 6px 0;
    margin: 0 0 6px 0;
    }

h1 a:link,h1 a:hover ,h1 a:visited {
    text-decoration: none;
    }

h2 {
    font-size: 1.6rem;
    font-weight: 300;
    text-align: left;
    padding: 6px 0 6px 0;
    margin-bottom: 6px;
    }

h2 a:link,h2 a:hover,  h2 a:visited {
    text-decoration: none;
    }

h3{
	font-size: 1.4rem;
    font-weight: 300;
	text-align: left;
    padding: 6px 0 6px 0;
    margin-bottom: 6px;
    }

h3 a:link, h3 a:visited{
    text-decoration: none;
    }

h5, h6 {
    color: #D4726A;
    font-weight: bold;
    margin: 0 0 6px 0;
    clear: both;
    }

h4 {
	font-size: 1.1rem;
	font-weight: 300;
	text-align: left;
    padding: 6px 0 6px 0;
	margin-bottom: 6px;
}

h4 a {
    text-decoration:none;
    padding:7px 12px 7px 12px;
    margin: 0;
    white-space: nowrap;
    background: #001A39;
    color: #FFF;
    }

h4 a:hover {
    background: #FFB400;
    color:#FFF;
    }

code, pre {
    font-family: courier;
    padding: 4px 0;
    }

blockquote {
    font-style: italic;
    padding: 0 6px 0 6px
    }

cite, strong {
    font-weight: bold;
    }

q {
    font-style: italic;
    }

p a:link {color:#FFB400;}

input {
    font-family: sans-serif;
    }

/***** PAGE STRUCTURE *****/

#content {
    width:100%;
    }

#wrapper {
    }

#headercontent {
    text-align: center;
}

#maincontent {
    max-width: 1100px;
    margin: 32px auto;
    }

#footercontent {
    max-width: 1100px;
    margin: 0 auto;
    }

/***** HEADER *****/

header {margin: 0;padding-top: 32px;}

#logo img {
    max-height:100px;
    width:auto;
    overflow:hidden;
    margin:0 12px 4px 0;
    }
#logo-title {font-size:3rem;font-weight: 900;opacity: 1;}

#logo-tagline {font-size: 1.5rem;}

#logo a {
    text-decoration: none;
    }

/***** NAVIGATION *****/

.navbar {
    margin: 0 auto;
    list-style: none;
    margin: 0 auto;
    }

nav {
    width:100%;
    z-index:900;
    margin-top:20px;
    }

nav ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
    }

nav ul ul {
	display: none;
	}

nav li {
    display: inline-block;
    padding: 0 12px;
    margin: 0;
    position: relative;
    }

nav li:first-child {padding-left:0;}
nav li:last-child {padding-right:0;}

nav li a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 3px solid #001A39;
    }

nav li a:hover {
    border-bottom: 3px solid #FFB400;
    }

nav a:focus, nav .current-menu-item > a, nav .current-menu-ancestor > a, nav .current_page_item > a, nav .current_page_ancestor > a {
    border-bottom: 3px solid #FFB400 !important;
    text-decoration: none;
    }


/*Nav for screen 601px and higher*/
@media screen and (min-width: 601px) {
	nav ul ul {
        text-align: left;
		float: left;
		margin: 0;
		position: absolute;
		left: 0;
		width: 100%;
		z-index: 99999;
        background: #FFF;
		}
	nav ul ul li:first-child {padding-left:12px;}
	nav ul ul li a {
		background: #A8A39D !important;
        border-bottom: 3px solid #A8A39D;
		color: #495370;
		height: auto;
        margin: 0;
		padding: 6px 12px !important;
		text-align:left;
		}
	nav ul ul :hover > a,
	nav a:focus {
		color: #FFF !important;
		}
	nav ul li:hover > ul {
		display: block;
		}
}

/***** SEARCH *****/

#searchform input {
    margin: 3px 0 0 0;
    padding: 6px;
    color: #343838;
    font-size: 1.1rem;
    border: 1px solid #343838;
    width:100%;
    }

#searchform span {
    display: none;
    }

/***** ENTRY *****/

#primary {
    padding: 0 5px;
    max-width: 1100px;
    margin: 0 auto;
}

.entry {
    text-align:left;
    position:relative;
    }

.entry p, .entry ul, .entry ol, .summary p {
    margin-bottom: 16px;
    line-height: 160%;
}

.entry ul, .entry ol{
    margin: 0 0 8px 2em;
    }

.entry ul ul{
    margin-left: 1em;
    }

.notsingle h1, .notsingle h2 {padding: 0; margin: 0;}

.dummy {height:1px;padding: 0;}

.navigation {
    margin-top:12px;
    clear:both;
}

.navigation #left {
    
    float:right;
    }

.navigation #right {
    
    float:left;
    }

.navigation a, .navigation a:visited, .entry a.more-link, .entry a.more-link:visited {
    text-decoration:none;
    padding:6px 10px;
    margin: 0;
    text-align:right;
    }

.navigation i {
    border: solid #FFF;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.navigation .rightarrow {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.navigation .leftarrow {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}
.entry .nextpages a, a.more-link{
    margin: 1em 0;
    text-align: right;
    }

p.postmetadata, .date, .tags {
    font-size: 0.9rem;
    color: #607890;
    margin:0 0 8px 0;
    padding:0;
    font-style: italic;
    }

p.postmetadata a {
    color: #607890;
    }

.aside {
    margin: 0 10px;
    padding: 8px;
    border-left: 5px solid #7CB490;
    background: #FFF2AF;
    }

/***** ENTRY IMAGES *****/

.entry img{
    width:100%;
    height:100%;
    }

.entry.single img{
    width:auto;
    max-height:calc(100vh - 120px);
    overflow-x: hidden;
    display: block;
    margin: 5px auto;
    }

.entry.single .box img{
    width:100%;
    height:100%;
}


.entry .alignright {
    float: right;
    margin: 0 0 1% 3%;
    padding: 1%;
    }

.entry.single img.alignleft {
    float: left;
    margin: 0.4em 3% 1% 0;
    }

.entry .aligncenter{
    display: block;
    margin: 5px auto;
    }

a img {
    padding: 0px;
    background: none;
    border: none;
	}

.wp-caption {
    max-width: 100%;
    padding: 4px 0;
    }

.wp-caption .wp-caption-text, .gallery-caption, .entry-caption {
    font-style: italic;
    }

.sticky, .bypostauthor {
    }

.entry img.attachment-thumbnail, .entry img.attachment-medium {
    float:left;
    margin: 0 32px 12px 0;
    width:auto;
    height:auto;
    }

.entry img.attachment-post-thumbnail {
    margin: 0 auto 32px;
    padding: 0;
    text-align: center;
    display: block;
    object-fit: cover;
}

alt{color:red}

/***** GRID *****/

.imagegrid {
    display: grid;
    grid-template-columns: 31.333% 31.333% 31.333%;
    grid-gap: 3%;
    grid-row-gap: 1em;
    margin: 32px 0;
}

.box {
    position: relative; 
}

.box .overlay { 
    position: absolute; 
    bottom: 4px; 
    left: 0;
    right: 0;
    padding: 6px;
    background: rgba(52,56,72,0.7);
    display:block;
}

.box a {text-decoration: none;}
.box h2, .box p {margin:0  !important;padding:0 !important;border-bottom: none !important;}
.box a h2 {color: #FFF;font-size:1.2rem;}
.box p {color: #F5F5F5 !important;font-size:0.8rem;}

@media only screen and (max-width : 700px) {.imagegrid {grid-template-columns: 31.333% 31.333% 31.333%;}}
@media only screen and (max-width: 400px) {.imagegrid {grid-template-columns: 48.5% 48.5%;}}

/***** FOOTER *****/

footer {
    background: rgba(52,56,72,0.9);
    }

#footercontent{
    text-align:left;
    padding: 32px 0;
    }

#footercontent h2 {
    color: rgb(26, 130, 199);
    padding: 0 0 8px 0;
    margin: 0 0 8px 0;
    }

#footercontent p, #footercontent .textwidget {
    margin: 0 0 8px 0;
    line-height: 150%;
    }

#footercontent img {
    max-width:100%;
    height:auto;
    overflow: hidden;
    }

#footercontent p a:hover {
    text-decoration: underline;
    }

/***** LEFT FOOTER MENU *****/

#left-footer ul{
    margin: 12px 0;
    padding: 0;
    list-style-type: none;
    text-align: left;
    }

#left-footer ul li {
    display: inline;
    }

#left-footer ul li a {
    color: #CCC;
    text-decoration: none;
    padding: 3px 0 3px;
    display: inline-block;
    }

#left-footer ul li a:hover {
    color: #FFF;
    }

#left-footer li + li:before{
    content: " / ";
    padding: 0 10px;
    color: #FFF;
}

/***** RIGHT FOOTER MENU *****/

#right-footer ul{
    padding: 0;
    }

#right-footer ul li {
    display: block;
    list-style-type: none;
    }

#right-footer ul li a {
    color: #FFF;
    text-decoration: none;
    line-height: 150%;
    display: block;
    }

#right-footer ul li a:hover {
    color: #FFF;
    }

#menu-footer.children, #menu-footer.children li, #menu-footer.children li a {
    border:none;
    }

/* Home Widget */
.hometop-background {
    background-image: url(assets/bg.png);
    background-position: center;
    background-size: cover;
    opacity:1;
    transform: translateZ(0);
}

.hometop {
    clear: both;
    padding: 32px;
    text-align:left;
    }

.hometopcontent {
    margin: 0 auto;
    max-width: 1100px;
    }
.hometopcontent a:active, .hometopcontent a:visited {color: #FFB400;}
.hometopcontent a:hover {color: #FFF;}

.hometop h1 {color: #FFF;}
.hometop p, .signoff h2{margin-bottom:8px;padding:0;}


/* CTA Widget */
.hometopcta {
    float:right;
    width: 300px;
    height: auto;
    background: #001A39;
    padding: 12px;
    margin-left: 32px;
}

.hometopcta .telephone {font-size: 1.4em;}
.hometopcta .button a {display:block;padding: 6px;text-align:center;text-decoration: none;}

/* signoff */
.signoff {
    padding: 32px 32px 24px 32px;
    text-align:left;
    }
.signoffcontent {
    margin: 0 auto;
    max-width: 1100px;
    }
.signoff h1, .signoff h1 a:link, .signoff h1 a:hover, .signoff h1 a:visited {color: #FFF;border-bottom: none !important;}

.signoff p, .signoff h2{margin-bottom:8px;padding:0;}

.signoffcta {
    float:right;
    width: 300px;
    height: 300px;
}

/***** SOCIAL *****/

div .social-wrapper {
    list-style-type:none;
    margin:0 0 12px 0;
    padding:0;
}

header .social-wrapper {float: right;}

.social-wrapper .social-link {
    float: left;
    width: 38px;
    height: 38px;
    margin: 0 5px 0 0;
    background: #fff url(/assets/sm-icons.png) no-repeat 0 0;
    background: rgba(255,255,255,0) url(assets/sm-icons.png) no-repeat 0 0;
    filter: alpha(opacity=80);
    opacity: 0.8;
    -webkit-transition: opacity 0.2s ease;
    -moz-transition: opacity 0.2s ease;
    -o-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

header .social-wrapper .social-link {
    margin: 0 0 0 5px;    
    }

.social-wrapper .social-link.round {
    border-radius: 19px;
}

.social-wrapper .social-link.grey {
    filter: gray; /* IE6-9 */
    filter: grayscale(1); /* Firefox 35+ */
    -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */
    }

.social-wrapper .social-link.roundgrey {
    border-radius: 19px;
    filter: gray; /* IE6-9 */
    filter: grayscale(1); /* Firefox 35+ */
    -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */
    }

.social-wrapper .social-link.grey:hover, .social-wrapper .social-link.roundgrey:hover{
    filter: none;
    -webkit-filter: grayscale(0);
    }

.social-wrapper .social-link:hover {
    filter: alpha(opacity=100);
    opacity: 1;
    -webkit-transition: opacity 0.2s ease;
    -moz-transition: opacity 0.2s ease;
    -o-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
    }

.social-wrapper .social-link a {
    display: block;
    width: 38px;
    height: 38px;
    text-indent: -9999px;
    overflow: hidden;
}

.social-wrapper .social-link.facebook {background-position: -247px -50px;}
.social-wrapper .social-link.flickr {background-position: -149px -2px;}
.social-wrapper .social-link.gplus {background-position: -198px -100px;}
.social-wrapper .social-link.instagram {background-position: -149px -100px;}
.social-wrapper .social-link.linkedin {background-position: -100px -2px;}
.social-wrapper .social-link.pinterest {background-position: -51px -100px;}
.social-wrapper .social-link.rss {background-position: -50px -2px;}
.social-wrapper .social-link.skype {background-position: -198px -50px;}
.social-wrapper .social-link.tumblr {background-position: -100px -50px;}
.social-wrapper .social-link.twitter {background-position: -2px -2px;}
.social-wrapper .social-link.vimeo {background-position: -2px -50px;}
.social-wrapper .social-link.youtube {background-position: -247px -100px;}

/***** COMMENTS *****/

#comments {border: 2px solid #8E9E82;padding:32px;margin-top:32px;}
#comments ol, #comments ul{margin: 0;padding: 0;list-style: none;}
#comments li{margin:0;padding:0;}
#comments ol.commentlist {background: #FFF;}
#comments ol.commentlist li {margin-bottom: 32px}
#comments ol.commentlist li:last-of-type {margin-bottom: 0}
#comments ul.children li {margin: 0 0 16px 60px;padding:0;}
#comments .comment-content {margin: 0;padding:0}
#comments.comment-notes, #comments.form-allowed-tags, #comments.comment-form-comment label {display: none;}
#comments div.reply {text-align: right;}
#comments div a.comment-reply-link {text-decoration: none;color: #888888;}
#comments p {margin: 3px 0;}
#commentform {margin: 0;}

h3.comment-reply-title {color: #343848;margin: 10px 0 0 0;padding:0;}
h3.comment-reply-title a {color: #343848;margin: 10px 0 0 0;padding:0;}

/***** TESTIMONIALS *****/

.testimonial {margin-bottom: 12px;}
.testimonial p {margin: 0; padding: 6px 0 0 0;}
.testimonial p img {width:20px !important;height:20px !important;float:left !important;}

.testimonials-form input, .testimonials-form textarea, .testimonials-form input[type=submit], #commentform input, #commentform textarea, #commentform #submit {
    margin: 2px 0 3px 0;padding: 6px;height:auto;color: #465069;border:2px solid #415063;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;font-family:AerinFont
    }

#commentform #submit, .testimonials-form input[type=submit] {
    color: #FFF;
    background: #001A39;
    text-align: center;
    cursor: pointer;
    padding: 6px 0;
    border:none;
    }

.form-allowed-tags {display:none;}

/***** CONTACT FORM *****/

.acf-widget th{text-align:left;}

/***** SEO *****/

.aerinseo {width:100%;box-sizing: border-box;}

/***** CONTACT FORM *****/

.acf-main.acf-style {padding:32px;background:#001A39;}
.acf-style {text-align: left;margin: 0 0 10px 0;max-width:100%;overflow:hidden;width:100%;}
.acf-style input[type=text], .acf-style textarea, .acf-style select, .acf-style #submit {font-size: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;font-family:inherit;line-height:normal;height:auto; margin: 2px 0 3px 0;padding: 6px;}
.smallinput {width:3em !important;}
.acf-style .acfcontainer input + label, .acf-style .acfcontainer textarea + label {color: #343848;}
.acf-style input:focus, .acf-style textarea:focus {background:#FFFFCC;}
.acf-style .acf-empty input[type=text].required, .acf-style .acf-empty select.required, .acf-style .acf-empty textarea.required {border: 2px solid #FFB400 !important;}
.acf-style p span, .acf-style .error {color:#D31900;clear:both;}
.acf-style p {margin: 4px 0;}
.acf-style p, .acf-style select{color: #343848;height:auto;line-height:normal;height:auto;}
.acf-style input[type=text].error, .acf-style textarea.error {border: 2px solid #D31900 !important; }
.acf-style .validator {margin-left: -999px;height:0;}
.acf-style #submit {height:auto;overflow:hidden;border:none !important;}
.acf-style #submit, .acf-style #submit:hover{text-align: center;cursor: pointer;}
.acf-text-input input, .acf-text-input textarea {-webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;-o-transition: all 0.3s ease;-ms-transition: all 0.3s ease;}
.acf-text-input label {-webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;-o-transition: all 0.3s ease;-ms-transition: all 0.3s ease;}
.acf-text-input { position: relative; width: 100%; }
.acf-text-input input, .acf-text-input textarea { padding-top: 1em !important; outline: none; }
.acf-text-input label { position: absolute; top: 2px; left: 0; margin: 6px; font-size: 0.6em; }
.acf-text-input label:hover { cursor: text; }
.acf-empty input, .acf-empty textarea { padding-top: 6px !important;}
.acf-empty label { font-size: 1em; }
.acf-empty label:hover { cursor: text; }
#ui-datepicker-div {display:none;}
.acf-main.acf-style p {color: #FFF !important;}
.acf-main.acf-style h2 {color: #FFB400;}

/***** LIGHTBOX *****/

#lightbox {position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;z-index:901;}
#lightbox #content { width: 100%; height: 100%; }
#lightbox img { display: block; max-width: 90vw; max-height: 90vh; }
#lightbox p  {margin:0;padding:0;}
#boxything { 
	position: absolute; display: inline-block; text-align: center; transform: translate(-50%,-50%); -webkit-transform: translate(-50%,-50%); top: 50%; left: 50%;  
	box-shadow:0 0 25px #111;
	-webkit-box-shadow:0 0 25px #111;
	-moz-box-shadow:0 0 25px #111;
}
#boxything p {position:absolute; bottom: 0.3em; padding: 0.3em; max-width: 100%; text-align:center; background: rgba(255,255,255,.5);  left: 0.3em; right: 0.3em; }
#lightbox p span {}
#boxyclose { position: fixed; top: 0.3em; right: 0.3em; width: 30px; height: 30px; background-image: url('assets/close.png'); cursor: pointer; }

/***** TOGGLE *****/

h3.aerin-toggle {cursor: pointer;}
h3.icon a::before {content:"+";display: inline-block;width:18px}
h3.aerin-toggle a {text-decoration: none;display: block;}
.toggle {clear:both;margin: 0;overflow: hidden;}
.toggle.border {border:1px solid #343848; padding: 8px;background: rgba(255,255,255,1);}
.toggle img {margin-top: 0.7em;}
h3.icon.active a::before {content:"-";display: inline-block;width:18px}

/***** SITEMAP *****/

#sitemap h2 {color:red;}
#sitemap h3 {color:green;}
#sitemap ul{list-style: none;}
.sitemapsub {margin-left:3em;}

/***** CLONED MENU *****/

.cloned { top: 0; left: 0; right: 0; position: fixed; margin: 0 auto; display: none;}

/***** Styles for screen 769px and higher *****/

@media screen and (min-width: 769px) {
    body.blog div.entry {vertical-align:top;}
}

/***** Styles for screen 1150px and lower *****/

@media only screen and (max-width : 1150px) {
    body {font-size:1rem;}
    header {margin: 0;padding-top: 16px;}
    .hometop {padding: 16px;}
    #primary {padding: 16px;margin: 0 auto;}
    #maincontent {width:100%;padding: 0 16px;margin: 16px auto;}
    #footercontent {width:100%;padding: 16px;}
    .imagegrid {margin-top: 16px;}
    .entry p, .signoff p {margin-bottom: 8px;}
    .signoff {padding: 16px;}
    #comments ul.children li {margin: 0 0 0 20px;}
    #logo-title {font-size:2rem}
    #logo-tagline {font-size:1.3rem}
    .taglinetwo {font-size: 1.4rem;}
    h1 {font-size: 1.6rem;}
    h2 {font-size: 1.4rem;}
    .box a h2 {color: #FFF;font-size:1rem;}
    .box p {font-size:0.6rem;}
    .acf-main.acf-style {padding:16px;}
}


/***** Styles for screen 960px and lower *****/

@media only screen and (max-width: 960px) {
.entry.single img{
    width:auto;
    height: auto;
    max-width:100%;
    max-height:calc(100vh - 80px);
    }   
}

/***** Styles for screen 768px and lower *****/

@media only screen and (max-width: 768px) {
    body {font-size:0.9em;}
    header {margin: 0;padding-top: 12px;}
    .hometop {padding: 12px;}
    #primary {padding: 0;margin: 0 auto;}
    .menu-main-container {width:100%;}
    nav {font-size: 0.9rem;}
    nav li {padding: 6px;}
    nav li a {padding: 6px 0;border-bottom: none;}
    nav li a:hover {border-bottom:none;}
    nav a:focus, nav .current-menu-item > a, nav .current-menu-ancestor > a, nav .current_page_item > a, nav .current_page_ancestor > a {border-bottom: none !important;}
    #maincontent {width:100%;padding: 0 12px;margin: 12px auto;}
    #footercontent {width:100%;padding: 12px;}
    .imagegrid {margin-top: 12px;}
    .entry p, .signoff p {margin-bottom: 6px;}
    .signoff {padding: 12px;}
    #comments {padding:12px;}
    #comments ul.children li {margin: 0 0 0 12px;}
    #logo-title {font-size:1.6rem}
    #logo-tagline {font-size:1rem}
    .taglinetwo {font-size: 1.1rem;}
    #logo {margin-bottom:6px;}
    #logo img {max-height:50px;}
    h2 {font-size: 1.2rem;}
    .box a h2 {color: #FFF;font-size:0.8rem;}
    .box p {font-size:0.5rem;}
    .acf-main.acf-style {padding:12px;}
}

/***** Styles for screen 480px and lower *****/

@media only screen and (max-width: 480px) {
    body {font-size:0.8em;}
    #primary {max-width:100%;}
    .hometopcta {clear:both;width:40%;margin-left:10px;}
    .hometopcta .telephone {font-size: 1.1em;}
    .entry p, .signoff p {margin-bottom: 4px;}
    .attachment-post-thumbnail{width:100% !important;}
    h2 {font-size: 1rem;}
    .navigation a {font-size: 0.8rem;}
    #left-footer li + li:before{padding: 0 4px;}
    .imagegrid {grid-row-gap: 0.5em;}
}