html {
    -webkit-text-size-adjust: none; /* Never autoresize text */
    font-family: sans-serif;
    font-size: 16px;
}

body {
    color: #333;
    margin: 0px;
}

h1, h2, h3, h4 {
    font-family: sans-serif;
    margin-bottom: 0.4em;
}

h1 {
    font-size: 1.8em;
    font-weight: 300;
}

h2 {
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 1.4em;
    
}

h3 {
    font-size: 1.3em;
    font-weight: 400;
    margin-top: 0.5em;
}

h4 {
    font-size: 1.15em;
    font-weight: 500;
    margin-top: 0em;
}


/***** TEXT STYLES *****/
.header {
    margin: 3em 0 1.5em;
    padding: 2.5em 2em 0;
    text-align: center;
}


.content {
    max-width: 800px;
    margin: 10px auto 10px;
    font-family: Georgia, serif;
    line-height: 1.4;
}

.content p {
    margin: 0.5em 1em 1.2em;
}

.content h2, .content h3, .content h4 {
    margin-left: 16px;
    margin-right: 16px;
}

.content blockquote {
    margin: 1.5em 1.1em;
    border-left: 3px solid #087A86;
    font-size: 0.95em;
    line-height: 1.6em;
    color: #555;
    
}

.content li {
    margin: 0 1em 0.75em 0;
}

.img-responsive {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    display: block;
}

.img-description {
    margin: 0.3em 2em;
    font-style: italic;
    text-align: center;
    font-size: 0.9em;
    line-height: 1.4em;
    opacity: 0.7;
}

hr {
    margin: 2em 0.5em 1em;
}


/* iPhone 6+ in portrait & landscape */
@media only screen and (min-device-width : 375px) and (max-device-width : 667px) {
    html { font-size: 18px; }
    .content p { letter-spacing: 0.1px; }
}

/* iPad in portrait & landscape */
@media only screen and (min-device-width: 768px) {
    html { font-size: 18px; }
    .content p { margin: 0.5em 60px 1.2em; }
    .img-responsive { margin-bottom: 0.1em; }
    .img-description { margin: 0.3em 5em; }
    .content h2, .content h3, .content h4 {
        margin-left: 60px;
        margin-right: 60px;
    }
    .content blockquote {
        margin: 1.5em 3.3em;
    }
    .content blockquote p {
        margin: 0.5em 1.5em 1.2em;
        line-height: 1.5em;
    }
    .content li {
        margin-left: 40px;
        margin-right: 60px;
    }
    hr { margin: 2em 2.5em 1em; }
}


/***** TABLE *****/
table {
    max-width: 100%;
    margin: 1.5em 2px;
    border-collapse: collapse;
    font-size: 0.95em;
    line-height: 1.3;
}

table, th, td {
    border: 1px solid lightgray;
}

td { padding: 5px; }

/* iPad in portrait & landscape */
@media only screen and (min-device-width: 768px) {
    table { margin: 1.5em 30px; font-size: 0.9em; }
    td { padding: 10px; }
}


/***** EMBEDDED MEDIA *****/
.feature-twitter, .feature-instagram {
    margin: 0.5em 1em 1.2em;
}

center {
    padding: 0px 1em;
}

.fb-post span, .fb-post iframe {
    max-width: 500px;
    width: 100% !important;
}

.feature-video,
.feature-youtube,
.feature-vimeo {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
    overflow: hidden;
}

.feature-video video,
.feature-youtube iframe,
.feature-youtube .iframe-blocker,
.feature-vimeo iframe,
.slideshow-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.footer {
    border-top: solid 1px #ccc;
    padding: 20px 0 10px;
    display: block;
    text-align: center;
}

.footer a {
    padding: 4px;
    text-decoration: none;
}

.social-buttons {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1em;
}

.social-comments {
    display: block;
    max-width: 800px;
    margin: 1em auto;
    padding-left: 1em;
    padding-bottom: 4em;
}

/* iPad in portrait & landscape */
@media only screen and (min-device-width: 768px) {
    center { padding: 0px 60px; }
    .feature-twitter, .feature-instagram { margin: 0.5em 3em 1.2em; }
}


/***** RELATED POSTS *****/
.relatedposts {
    max-width: 800px;
    margin: 2em auto 20px;
}

.relatedposts h4 {
    margin: 0px 1em 0.4em;
    border-bottom: 1px solid;
    letter-spacing: 0.9px;
    font-size: 0.9em;
    text-transform: uppercase;
}

.relatedposts ul {
    margin: 0em 0.9em 0;
    padding: 0px;
    list-style: none;
}

.relatedposts li {
    width: 100%;
    margin-bottom: 1em;
    display: inline-block;
    vertical-align: top;
}

.relatedposts a {
    text-decoration: none;
    color: #333;
}

.relatedposts .cover-container {
    width: 80px;
    height: 50px;
    background: #eee;
    position: relative;
    overflow: hidden;
    float: left;
    border: solid 1px #ccc;
    margin-right: 10px;
}

.relatedposts .cover {
    position: absolute;
    left: -1000%;
    right: -1000%;
    top: -1000%;
    bottom: -1000%;
    margin: auto;
    width: 100%;
    height: 100%;
}

.relatedposts .duration {
    position: absolute;
    font-size: 0.6em;
    line-height: 1em;
    padding: 2px;
    bottom: 2px;
    right: 3px;
    background-color: rgba(0,0,0,0.6);
    color: #eee;
}

.relatedposts .title {
    font-family: Georgia, serif;
    font-size: 0.95em;
    margin-bottom: 0.25em;
    max-height: 2.5em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
}

.relatedposts .date {
    font-size: 0.7em;
    color: #888;
}

/* iPad in portrait & landscape */
@media only screen and (min-device-width: 768px) {
    .relatedposts h4 { margin: 0px 54px 10px; }
    .relatedposts ul { margin: 0px 54px 0px; }
}


@media only screen and (min-width: 650px) {
    .relatedposts .title {
        font-size: 0.85em;
        max-height: 2.3em;
        margin-bottom: 0.2em;
    }
    .relatedposts .date {
        font-size: 0.65em;
    }
    .relatedposts li {
        width: 49%;
        height: 3em;
        box-sizing: border-box;
        padding-right: 10px;
    }
}
