/* #### Typography #### */

body {
    font-family: var(--body-font-family);
    font-size: var(--body-font-size);
}

.title,
.is-style-title {
    font-family: var(--heading-font-family);
    color: var(--title-color);
}

.top-title-tag,
.is-style-top-title-tag {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
.is-style-h1,
.page-title,
.is-style-page-title,
.is-style-h2,
.page-sub-title,
.is-style-h3,
.page-medium-title,
.is-style-page-medium-title,
.is-style-h4,
.page-small-title,
.is-style-page-small-title,
.is-style-h5,
.is-style-h6 {
    font-family: var(--heading-font-family);
    line-height: var(--heading-line-height, 1.2);
}

h1,
.h1,
.is-style-h1,
.page-title,
.is-style-page-title {
    font-size: calc(var(--heading-base-font-size) * 2.2);
    color: var(--title-color);
    margin-bottom: var(--df-margin-unit);
    font-weight: var(--heading-font-weight, 700);
    text-transform: var(--heading-text-transform, none);
}

.sub-header .page-title,
.sub-header .is-style-page-title {
    font-size: calc(var(--heading-base-font-size) * 2.2);
}

h2,
.h2,
.is-style-h2,
.page-sub-title {
    color: var(--title-color);
    font-size: calc(var(--heading-base-font-size) * 2);
    font-weight: var(--heading-font-weight, 700);
    margin-bottom: var(--df-margin-unit);
    text-transform: var(--heading-text-transform, none);
}

h3,
.h3,
.is-style-h3,
.page-medium-title,
.is-style-page-medium-title {
    color: var(--title-color);
    font-size: calc(var(--heading-base-font-size) * 1.6);
    font-weight: var(--heading-font-weight, 700);
    margin-bottom: var(--df-margin-unit);
    text-transform: var(--heading-text-transform, none);
}

h4,
.h4,
.is-style-h4,
.page-small-title,
.is-style-page-small-title {
    color: var(--title-color);
    font-size: calc(var(--heading-base-font-size) * 1.3);
    font-weight: var(--heading-font-weight, 700);
    margin-bottom: var(--df-margin-unit);
    text-transform: var(--heading-text-transform, none);
}

h5,
.is-style-h5,
.h5 {
    color: var(--title-color);
    font-size: calc(var(--heading-base-font-size) * 1.1);
    font-weight: bold;
    margin-bottom: var(--df-margin-unit);
    text-transform: var(--heading-text-transform, none);
}

h6,
.is-style-h6,
.h6 {
    color: var(--title-color);
    font-size: var(--heading-base-font-size);
    margin-bottom: var(--df-margin-unit);
}

p+h1,
p+.h1,
p+h2,
p+.h2,
p+h3,
p+.h3,
p+h4,
p+.h4,
p+h5,
p+.h5,
p+h6,
p+.h6,
p+.is-style-h1,
p+.is-style-h2,
p+.is-style-h3,
p+.is-style-h4,
p+.is-style-h5,
p+.is-style-h6 {
    margin-top: 3rem;
}

img+h1,
img+.h1,
img+h2,
img+.h2,
img+h3,
img+.h3,
img+h4,
img+.h4,
img+h5,
img+.h5,
img+h6,
img+.h6,
img+.is-style-h1,
img+.is-style-h2,
img+.is-style-h3,
img+.is-style-h4,
img+.is-style-h5,
img+.is-style-h6 {
    margin-top: var(--df-margin-unit);
}

.top-title-tag+h1,
.top-title-tag+.h1,
.top-title-tag+h2,
.top-title-tag+.h2,
.top-title-tag+h3,
.top-title-tag+.h3,
.top-title-tag+h4,
.top-title-tag+.h4,
.top-title-tag+h5,
.top-title-tag+.h5,
.top-title-tag+h6,
.top-title-tag+.h6 {
    margin-top: 0;
}

.section-subtitle {
    font-size: 2rem;
    margin: calc((var(--df-margin-unit) / 1.2) * -1) 0 var(--df-margin-unit);
    color: var(--text-light-color);
}

p {
    margin-bottom: var(--df-p-margin-unit, 2rem);
    line-height: var(--body-line-height, 1.6);
}

p.notes {
    opacity: 0.4;
    font-size: 1.2rem;
    clear: both;
    margin-top: var(--df-p-margin-unit, 2rem);
}

p:empty {
    display: none !important;
}

a {
    color: var(--highlight-color);
}

a:hover,
a:focus,
a:active {
    color: var(--highlight-color-hover);
    text-decoration: none;
}

ul,
ol {
    padding-left: 0;
    margin: var(--df-margin-unit) 0;
    margin-left: 2rem;
}

ol {
    padding-left: 1rem;
}

ul ul,
ul ol,
ol ul,
ol ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

ul li {
    position: relative;
    margin-bottom: 1.5rem;
}

ul li:last-child,
div ul li:last-child {
    margin-bottom: 0;
}

.has-small-font-size,
.smaller-font-size {
    font-size: 87%;
}

.has-small-font-size,
.smaller-font-size {
    font-size: 87%;
}

.has-bigger-font-size,
.has-medium-font-size,
.bigger-font-size {
    font-size: 120%;
}

.has-large-font-size,
.large-font-size {
    font-size: 160%;
}

.has-x-large-font-size,
.extra-large-font-size {
    font-size: 200%;
}

.uppercase-text,
.text-uppercase {
    text-transform: uppercase;
}

.lowercase-text,
.text-lowercase {
    text-transform: uppercase;
}

.emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
        "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla",
        "Segoe UI Symbol", "Noto Color Emoji Compat", "emoji",
        "noto-emojipedia-fallback";
    font-weight: 400;
}

@media (min-width: 1200px) {

    h1.extra-large,
    .h1.extra-large,
    .is-style-h1.extra-large,
    .page-title.extra-large,
    .is-style-page-title.extra-large {
        font-size: 5.5rem;
    }
}

@media (max-width: 992px) {
    p.notes {
        font-size: 12px;
    }

    ul.compact li {
        margin-bottom: 1.5rem;
    }

    .has-small-font-size-sm,
    .smaller-font-size-sm {
        font-size: 87%;
    }
}

@media (max-width: 600px) {
    .section-subtitle {
        font-size: var(--body-font-size);
    }

    h3,
    .h3,
    .is-style-h3,
    .page-medium-title,
    .is-style-page-medium-title {
        font-size: calc(var(--heading-base-font-size) * 1.7);
    }

    h4,
    .h4,
    .is-style-h4,
    .page-small-title,
    .is-style-page-small-title {
        font-size: calc(var(--heading-base-font-size) * 1.55);
    }

    h5,
    .is-style-h5,
    .h5 {
        font-size: calc(var(--heading-base-font-size) * 1.45);
    }

    h6,
    .is-style-h6,
    .h6 {
        font-size: calc(var(--heading-base-font-size) * 1.4);
    }
}

/* WordPress WYSIWYG Editor Styles */

.entry-content img {
    margin: 0 0 1.5em 0;
}

.alignleft,
img.alignleft {
    margin-right: 1.5em;
    display: inline;
    float: left;
}

.alignright,
img.alignright {
    margin-left: 1.5em;
    display: inline;
    float: right;
}

.aligncenter,
img.aligncenter {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    display: block;
    clear: both;
}

.wp-caption {
    margin-bottom: 1.5em;
    text-align: center;
    padding-top: 0.5rem;
}

.wp-caption img {
    border: 0 none;
    padding: 0;
    margin: 0;
}

.wp-caption p.wp-caption-text {
    font-size: 1rem;
    margin: 0;
}

.wp-smiley {
    margin: 0 !important;
    max-height: 1em;
}

blockquote.left {
    margin-right: 2rem;
    text-align: right;
    margin-left: 0;
    width: 33%;
    float: left;
}

blockquote.right {
    margin-left: 2rem;
    text-align: left;
    margin-right: 0;
    width: 33%;
    float: right;
}

.gallery {
    margin: 0 auto 1.8rem;
}

.gallery .gallery-item {
    float: left;
    margin-top: 0;
    text-align: center;
    width: 33%;
}

.gallery-columns-2 .gallery-item {
    width: 50%;
}

.gallery-columns-4 .gallery-item {
    width: 25%;
}

.gallery img {
    box-shadow: rem 0.2rem 0.9rem rgba(0, 0, 0, 0.1);
    background: #f2f2f2;
}

.gallery img:hover {
    background: white;
}

.gallery-columns-2 .attachment-medium {
    max-width: 92%;
    height: auto;
}

.gallery-columns-4 .attachment-thumbnail {
    max-width: 84%;
    height: auto;
}

.gallery .gallery-caption {
    color: #888;
    font-size: 1.2rem;
    margin: 0 0 1.2rem;
}

.gallery dl,
.gallery dt {
    margin: 0;
}

.gallery br+br {
    display: none;
}