html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
tt,
var,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

area,
img,
map {
    outline: none;
}

.clearfix,
.clear {
    clear: both;
}

html {
    box-sizing: border-box;
}

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

html,
body {
    -webkit-text-size-adjust: none;
}

::-webkit-input-placeholder {
    opacity: 1;
    color: inherit;
}

:-moz-placeholder {
    opacity: 1;
    color: inherit;
}

::-moz-placeholder {
    opacity: 1;
    color: inherit;
}

:-ms-input-placeholder {
    opacity: 1;
    color: inherit;
}

input,
textarea,
button,
select {
    border-radius: 0;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

a {
    outline: none;

    &:focus {
        color: inherit;
    }
}

.ai-hide {
    display: none !important;
}

.slick-slider,
.slick-slider *,
.slick-slider a,
input:focus,
select:focus,
textarea:focus {
    color: inherit;
    text-decoration: none;
}

/* Hide Headings for HTML5 */
.aios-starter-theme-hide-title {
    display: none !important;
    font-size: 18px !important;
}

#content,
aside {
    line-height: 1.7;
}

#content th,
aside th {
    font-weight: bolder;
}

#content h1,
aside h1 {
    font-size: 2em;
    margin: .67em 0;
}

#content h2,
aside h2 {
    font-size: 1.5em;
    margin: .75em 0;
}

#content h3,
aside h3 {
    font-size: 1.17em;
    margin: .83em 0;
}

#content h4,
aside h4,
#content p,
aside p,
#content blockquote,
aside blockquote,
#content ul,
aside ul,
#content fieldset,
aside fieldset,
#content form,
aside form,
#content ol,
aside ol,
#content dl,
aside dl,
#content dir,
aside dir,
#content menu,
aside menu {
    margin: 1.12em 0;
    line-height: 1.7;
}

#content h5,
aside h5 {
    font-size: .83em;
    margin: 1.5em 0;
}

#content h6,
aside h6 {
    font-size: .75em;
    margin: 1.67em 0;
}

#content h1,
aside h1,
#content h2,
aside h2,
#content h3,
aside h3,
#content h4,
aside h4,
#content h5,
aside h5,
#content h6,
aside h6,
#content b,
aside h6,
#content strong,
aside strong {
    font-weight: bolder;
}

#content blockquote,
aside blockquote {
    margin-left: 40px;
    margin-right: 40px;
}

#content i,
aside i,
#content cite,
aside cite,
#content em,
aside em,
#content var,
aside var,
#content address,
aside address {
    font-style: italic;
}

#content pre,
aside pre,
#content tt,
aside tt,
#content code,
aside code,
#content kbd,
aside kbd,
samp {
    font-family: monospace;
}

#content big,
aside big {
    font-size: 1.17em;
}

#content small,
aside small,
#content sub,
aside sub,
#content sup,
aside sup {
    font-size: .83em;
}

#content sub,
aside sub {
    vertical-align: sub;
}

#content sup,
aside sup {
    vertical-align: super;
}

#content table,
aside table {
    border-spacing: 2px;
}

#content thead,
aside thead,
#content tbody,
aside tbody,
#content tfoot,
aside tfoot {
    vertical-align: middle;
}

#content td,
aside td,
#content th,
aside th,
#content tr,
aside tr {
    vertical-align: inherit;
}

#content hr,
aside hr {
    border: 1px inset;
}

#content ol,
aside ol,
#content ul,
aside ul,
#content dir,
aside dir,
#content menu,
aside menu,
#content dd,
aside dd {
    margin-left: 40px;
}

#content ol,
sidebar ol {
    list-style-type: decimal;
}

#content ol ul,
aside ol ul,
#content ul ol,
aside ul ol,
#content ul ul,
aside ul ul,
#content ol ol,
aside ol ol {
    margin-top: 0;
    margin-bottom: 0;
}

#content ol,
aside ol {
    list-style-type: decimal;
}

#content ul,
aside ul {
    list-style-type: disc;
}

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

#content-sidebar:after,
#content-full:after {
    content: "";
    display: table;
    clear: both;
}

#content-sidebar {
    #content {
        float: left;
        width: 77.08%;
    }
}

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

.page-template-template-left-sidebar {
    #content-sidebar {
        #content {
            float: right;
        }

        aside {
            float: left;
        }
    }
}

#content {
    .entry {
        &:after {
            content: "";
            display: table;
            clear: both;
        }
    }

    .aios-starter-theme-entry-meta {
        display: none;
    }

    .entry-title {
        font-size: 24px;
    }

    .archive-title {
        font-size: 24px;
    }

    .archive-subtitle {
        font-size: 24px;
    }

    .archive-thumbnail {
        width: 27%;
        float: left;
    }

    .archive-content {
        &.archive-has-thumbnail {
            width: 70%;
            float: right;
        }
    }

    .archive-more {
        text-decoration: underline;
        font-style: italic;
    }

    .post {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .page-links {
        text-align: center;

        * {
            display: inline-block;
            vertical-align: middle;
            margin: 0 5px;
        }

        .current {
            font-weight: bold;
            text-decoration: underline;
        }
    }

    .alignnone {
        clear: both;
        margin: 15px 0;
    }

    .aligncenter {
        clear: both;
        margin: 15px auto;
        display: block;
    }

    .alignleft {
        float: left;
        margin: 15px 1% 15px 0;
    }

    .alignright {
        float: right;
        margin: 15px 0 15px 1%;
    }
}

#inner-page-wrapper {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

aside {
    float: right;
    width: 20.83%;

    h2 {
        &.widget-title {
            display: block;
            background: #d7d7d7;
            padding: 7px;
            font-size: 14px;
        }
    }
}

.gravatar {
    float: right;
}

.comments-template {
    ol {
        &.comment-list {
            margin: 20px 0 0 0;
            padding: 0;
            list-style: none;

            li {
                &.comment {
                    padding: 35px 0;
                    border-bottom: 1px dotted;
                }
            }
        }

        &.children {
            margin: 20px 0 0 40px;
            padding: 0;
            list-style: none;
        }
    }

    .comment-author {
        &.vcard {
            img {
                display: block;
            }
        }
    }

    .reply {
        font-weight: 700;
        text-decoration: underline;
    }

    .comment-meta {
        font-size: 10px;
    }

    .screen-reader-text {
        display: none;
    }

    .comment-navigation {
        margin: 10px 0;
        background: none;
    }
}

#content .comments-template ol.comment-list,
#content .comments-template ol.children,
.comments-template ol.children,
.comments-template ol.comment-list {
    list-style: none;
}

#content .comments-template ol.comment-list,
.comments-template ol.comment-list {
    margin-left: 0;
}

.comments-template ol.comment-list li:last-child,
.comments-template ol.children li:last-child {
    border-bottom: 0;
}

.comment-form-comment {
    textarea {
        display: block;
        width: 100%;
    }

    label {
        display: block;
        font-weight: 700;
    }
}

.wp-caption {
    background-color: #f3f3f3;
    margin: 10px;
    padding-top: 4px;
    text-align: center;
    max-width: 100%;

    img {
        border: 0 none;
        margin: 0;
        padding: 0;
    }
}

#content .wp-caption p.wp-caption-text,
.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0.5em 0 1.1em 0;
    font-style: italic;
}

.gallery-caption {
    text-align: center;
    font-style: italic;
}

.category .post,
.archive .post {
    border-bottom: 1px dotted;
}

.attachment-post-thumbnail {
    float: left;
    margin: 0 10px 10px 0;
}

pre {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
}

.sticky {}

.bypostauthor {
    font-style: italic;
}

#content img[class*="align"],
#content img[class*="wp-image-"],
#content img[class*="attachment-"],
#content img.size-full,
#content img.size-large,
#content img.header-image,
#content img.wp-post-image {
    max-width: 98%;
    margin-top: 0;
    margin-bottom: 0;
    height: auto;
}

#content embed,
#content iframe,
#content object,
#content video {
    max-width: 100%;
}

.yoast-breadcrumbs {
    margin: 20px 0 0;
}

/*******************************************************
 *
 * 11. Mobile styles
 *
 *******************************************************/

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

    .outer {
        min-width: 320px;
    }

    .inner {
        width: 100%;
    }

    #content-sidebar aside,
    #content-full aside {
        display: block;
        width: 100%;
        float: none;
        max-width: 360px;
        margin: 0 auto;
    }

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

    #content {

        .alignleft,
        .alignright {
            float: none;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .archive-thumbnail,
        .archive-content.archive-has-thumbnail {
            width: 100%;
            float: none;
        }

        .archive-thumbnail,
        .archive-content h2 {
            text-align: center;
            margin-left: auto;
            margin-right: auto;
        }

        .archive-more {
            text-decoration: underline;
            font-style: italic;
        }
    }

    /* ARCHIVE */
    .yoast-breadcrumbs {
        margin: 20px 0;
        width: 100%;
    }
}

/* iHomefinder */

#ihf-main-container div#areaPickerInputWrapper {
    height: 50px !important;
}

#ihf-main-container .modal-dialog {
    left: inherit !important;
}

/*******************************************************
 *
 * 10. Mlcalc.com calculators
 *
 *******************************************************/

/* Make rates popup scrollable on devices with screens less than 761px wide */

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

    #MLCalcRatesHolder {
        overflow: auto !important;
        width: 100% !important;
        min-width: 100% !Important;
        -webkit-overflow-scrolling: touch !important;
    }

    #MLCalcRatesShader {
        width: 100% !important;
        min-width: 100% !important;
        overflow: scroll !important;
        -webkit-overflow-scrolling: touch;
    }

}

/* Make mortgage calculator popup scrollable on devices with screens less than 741px wide */

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

    #MLCalcHolder {
        overflow: auto !important;
        width: 100% !important;
        min-width: 100% !Important;
        -webkit-overflow-scrolling: touch !important;
    }

    #MLCalcShader {
        width: 100% !important;
        min-width: 100% !important;
        overflow: scroll !important;
        -webkit-overflow-scrolling: touch;
    }

}