/* General */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    font-size: 16px;
    line-height: 21px;
    font-family: sans-serif;
    min-width: 320px;
    color: #4b4b4b;
}

.clear {
    clear: both;
    overflow: hidden;
    margin-bottom: -1px;
    height: 1px;
}

img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

a {
    text-decoration: none;
    color: #1c4d71;
}

a:hover {
    color: #0f2a3d;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #222222;
    line-height: 1.2em;
}

h1 {
    font-size: 1.9em;
}

h2 {
    font-size: 1.7em;
}

h3 {
    font-size: 1.5em;
}

h4,
h5,
h6 {
    font-size: 1.2em;
}

.screen-reader-text {
    display: none;
}

/* Layout */

#page {
    padding: 6px;
    max-width: 1650px;
    margin: 0 auto;
}

.wrapper {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
}

/* Header */

.branding {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 10% 20% auto;
    grid-template-rows: auto auto auto;
    justify-items: center;
    align-items: center;
}

.logo {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    width: 100%;
}

.logo a {
    display: inline-block;
    width: 100%;
}

.header-text {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 2;
    width: 100%;
}

.searchbar {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 3;
    grid-row-end: 4;
}

.searchbar input {
    display: block;
    font-size: 18px;
    padding: 3px 6px;
    max-width: 300px;
    margin: 6px auto;
    border: 1px solid #ccc;
}

.mobsoc {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.mobsoc img {
    max-height: 65px;
}

nav.menu {
    position: absolute;
    top: 6px;
    z-index: 100;
    background-color: #fff;
    left: -100%;
    transition: left 600ms ease;
}

nav.menu ul {
    list-style-type: none;
    font-size: 30px;
    line-height: 150%;
    padding: 6px;
    box-shadow: 3px -3px 3px rgba(100, 100, 100, 0.5);
    border: 1px solid #ddd;
    display: block;
    width: 96%;
    margin: 6px auto;
}

nav.menu .inverted {
    background-color: #1c4d71;
    border-bottom: 1px #fff solid;
}

nav.menu .img {
    font-size: 1px;
    line-height: 100%;
    margin-bottom: 6px;
}

nav.menu .img img {
    height: 55px;
}

nav.menu .inverted a {
    color: #fff;
}

.menu-mob-open-menu nav.menu {
    left: -6px;
}

.menu-mob-open-menu nav.menu ul li {
    padding-left: 6px;
}

.mobile-toggle {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    cursor: pointer;
    display: block;
    margin: 6px;
    min-width: 32px;
    width: calc(100% - 12px);
}

.mobile-toggle-close {
    width: 42px;
    position: relative;
    right: -36px;
    top: 6px;
    float: right;
    background-color: #fff;
    padding: 6px;
    box-shadow: 3px -3px 3px rgba(100, 100, 100, 0.5);
    border: 1px solid #ddd;
    border-left-color: rgba(255, 255, 255, 0);
}

.service-menu {
    display: none;
}

/* Footer */

footer {
    background-color: #333;
    color: #eee;
    padding: 1em;
    margin-bottom: 50px;
}

/* Content */

.content {
    width: 100%;
}

.content article {
    margin-bottom: 1.5em;
    position: relative;
}

.content.page header {
    margin-bottom: 1em;
}
.content .post-categories,
.content .entry-content .post-categories {
    margin: 0;
    list-style: none;
}

.post-categories li,
.content .entry-content .post-categories li {
    font-size: 0.8em;
    background-color: #1c4d71;
    padding: 0 0.3em;
    float: left;
    margin: 0 0.3em 0.3em 0;
}

.post-categories a {
    color: #fff;
}

.content article figure {
    text-align: center;
    width: 100% !important;
    margin-bottom: 1em;
}

.content .entry-content img {
    display: block;
    margin: 0 auto 0.15rem;
}

.content .entry-content p {
    margin-bottom: 1em;
    line-height: 1.5em;
}

.content .wp-caption-text {
    font-style: italic;
    line-height: 1.1em;
}

.content .entry-content h4 {
    margin-bottom: 1em;
}

.content .entry-content ol,
.content .entry-content ul {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.content .entry-content li {
    margin-bottom: 1em;
}

.content article,
.aright aside.widget_execphp {
    padding: 6px;
    box-shadow: 3px -3px 3px rgba(100, 100, 100, 0.5);
    border: 1px solid #ddd;
}

.content iframe {
    display: block;
    margin: 0 auto;
}

.content,
.aright aside {
    margin: 0.75em 0;
}

/* Sidebar */

.aright, #lefternary {
    display: none;
  }
.aright .block-title {
    color: #fff;
    background-color: #1c4d71;
    padding: 6px;
    margin-bottom: 1em;
    font-size: 22px;
}
.aright .toplist {
    list-style-position: inside;
    font-size: 1.2em;
    line-height: 120%;
}
.aright .toplist li {
    margin-bottom: 0.3em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #ccc;
}
.aright .toplist li:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
/* Advertisement and Sharing */
div.fb-like.second {
    position: absolute;
    top: 3px;
    right: 3px;
}
article .fpt {
    float: right;
    width: 61px;
    height: 65px;
}
.error404 .ad-widget-wrapper,
.error404 .anchored-ad-widget,
.error404 .lefternary-ad-wrapper {
    display: none !important;
}
.ad-widget-wrapper {
    text-align: center;
}

.primary-ad-wrapper.display {
    margin-bottom: 1em;
    border-top: 1px dashed #999;
    padding: 0.3em 0;
    border-bottom: 1px dashed #999;
}

.primary-ad-wrapper.display.suggest:before {
    content: "Suggested content" !important;
}
.primary-ad-widget > div,
.secondary-ad-widget > div {
    margin: 0 auto;
}
body #primary-P2-wrapper,
body #primary-P3-wrapper,
body #primary-P4-wrapper,
body #primary-P5-wrapper,
body #primary-P6-wrapper,
body #primary-P7-wrapper,
body #primary-P8-wrapper {
    padding: 0;
}
body #primary-P1-wrapper.display,
body #primary-P2-wrapper.display,
body #primary-P3-wrapper.display,
body #primary-P4-wrapper.display,
body #primary-P5-wrapper.display,
body #primary-P6-wrapper.display,
body #primary-P7-wrapper.display,
body #primary-P8-wrapper.display {
    padding: 0.25rem 0;
}
#anchored-P1-wrapper.display:before,
.primary-ad-wrapper.display:before,
#secondary-P1-wrapper.display:before,
#secondary-P5-wrapper.display:before {
    position: static;
    content: "Advertisement";
    font-size: 11px;
    line-height: 11px;
    display: block;
    margin-bottom: 0.3em;
    text-align: center;
    z-index: auto;
    border-left: none;
}
body .ad-widget-wrapper .attribution {
    display: none;
}
body #secondary-P1-wrapper,
body #secondary-P5-wrapper.display {
    padding: 0;
}
#primary-video-P1-wrapper {
    margin: auto;
    max-width: 530px;
}
.content a.fillstuff {
    display: block;
    margin: 0 auto 10px;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.content a.fillstuff span {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0 0.3em 0.1em;
    display: inline-block;
    width: 100%;
    font-size: 1.2em;
}

/* Search page */

/* Archives */
.archive .entry-content {
    margin-top: 1em;
}
.archive .portrait {
    max-width: 200px;
    margin: 0 0 1em 1em;
    float: right;
}
.archive header p {
    margin-bottom: 1em;
    line-height: 1.5em;
}
nav.pagination {
    text-align: center;
    font-size: 30px;
    margin: 0.5em 0;
}
nav.pagination a,
nav.pagination span {
    padding: 0.2em 0.4em;
    border: 1px #1c4d71 solid;
    background-color: #fff;
}
nav.pagination span.current {
    background-color: #1c4d71;
    border: 1px solid #000;
    color: #fff;
}
/* Home */
.hero {
    margin-bottom: 0;
}
.hero article.hero-1 {
    padding: 0;
}
.home .thumb a {
    display: block;
    width: 100%;
    padding-top: 61.803%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.hero-1 .thumb a span {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0.3em;
    display: inline-block;
    width: 100%;
    line-height: 120%;
    position: absolute;
    bottom: 0;
    font-size: 26px;
    font-weight: bold;
}
.home .sectitle {
    margin-bottom: 0.5em;
    padding-bottom: 4px;
    border-bottom: 3px solid #1c4d71;
}
.home .sectitle a,
.home .sectitle span {
    padding: 6px;
    color: #fff;
    background-color: #1c4d71;
}
.home.content article {
    margin-bottom: 0.5em;
}
.home .wrapper .content article.cats,
.home .wrapper .content .cats article {
    padding-bottom: 2em;
}
.home .content .double .alist h3 {
    margin-bottom: 0.5em;
}
.home .content .double h4.more {
    position: absolute;
    bottom: 0;
    right: 5%;
}
.whole .post {
    display: flex;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
}
.whole .thumb {
    width: 100%;
}
@media screen and (min-width: 768px) {
    /* Layout */
    #page {
        padding: 0 1em 6px;
    }
    #page {
        padding: 0 12px 6px 18px;
    }
    .wrapper {
        flex-wrap: nowrap;
    }
    /* Header */
    nav.menu li ul.sub-menu li {
        float: none;
        margin-left: 0;
        margin-top: 10px;
    }
    nav.menu li ul.sub-menu {
        background: #fff;
        display: none;
        padding: 10px;
        position: absolute;
        min-width: 100px;
        z-index: 1;
    }
    nav.menu li:hover .sub-menu {
        display: block;
    }
    nav.menu .inverted,
    .mobile-toggle-close,
    .mobile-toggle,
    .mobsoc {
        display: none;
    }
    .branding {
        grid-template-columns: 16.9% auto 250px;
        grid-template-rows: 50% 50%;
    }
    .logo {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 3;
    }
    .header-text {
        grid-column-start: 2;
        grid-column-end: 3;
        width: calc(100% - 10px);
    }
    nav.menu {
        position: inherit;
        left: auto;
        transition: none;
        grid-column-start: 2;
        grid-column-end: 4;
        grid-row-start: 2;
        grid-row-end: 3;
        justify-self: start;
        float: left;
        padding: 0.8em 0.5em;
        box-shadow: 3px -3px 3px rgba(100, 100, 100, 0.5);
        border: 1px solid #ddd;
        width: 100%;
    }
    nav.menu ul {
        font-size: 1em;
        line-height: 1em;
        padding: 0;
        box-shadow: none;
        border: none;
        width: auto;
        margin: 0;
    }
    nav.menu ul li {
        float: left;
        margin: 0 0.5em;
    }
    nav.menu .img {
        display: none;
    }
    .searchbar {
        padding: 0.6em;
        box-shadow: 3px -3px 3px rgba(100, 100, 100, 0.5);
        border: 1px solid #ddd;
        grid-column-start: 3;
        grid-row-start: 1;
        grid-row-end: 2;
        justify-self: end;
    }
    .searchbar input {
        width: 100%;
        margin: 0 auto;
        font-size: 1em;
        padding: calc(0.15em - 1px) 0.4em;
    }
    .logo a {
        display: inline;
        width: auto;
    }
    .service-menu {
        display: flex;
        background-color: #333;
        margin-bottom: 16px;
    }
    .service-menu span {
        padding: 0.1em 1em;
        color: #eee;
        font-size: 0.8em;
        display: inline-block;
    }
    .service-menu span:first-of-type {
        border-right: 6px #eee solid;
    }
    /* .service-menu span:last-of-type {
        margin-left: auto;
        border-left: 6px #eee solid;
    } */
    .service-menu a {
        color: #eee;
        text-shadow: none;
        text-decoration: none;
    }
    /* Footer */
    footer {
        margin-bottom: 90px;
    }
    /* Content */
    .content {
        min-width: 520px;
    }
    .content article {
        padding: 1em;
    }
    /* Sidebar */
    .aright {
        min-width: 160px;
        max-width: 300px;
        width: 33.3%;
        margin-left: 12px;
        display: block;
    }
    aside {
        max-width: 100%;
    }
    /* Advertisement and Sharing */
    div.fb-like.second {
        top: unset;
        right: unset;
        display: block;
        float: left;
        margin-left: -30px;
        margin-top: 75px;
        box-shadow: 3px -3px 3px rgba(100, 100, 100, 0.5);
        border: 1px solid #ddd;
        background-color: #fff;
        padding: 6px;
    }
    article .fpt {
        display: none;
    }
    body #secondary-P1-wrapper {
        min-height: 600px;
    }
    /* Archives */
    .archive header .thumb {
        width: 20%;
        float: left;
        margin: 0 1em 1em 0;
    }
    nav.pagination {
        font-size: 26px;
    }
    /* Home */
    .home .content article {
        margin-bottom: 1.5em;
    }
    .home .content {
        width: 100%;
    }
    .hero {
        display: grid;
        grid-template-columns: 61.803fr 12px 38.197fr;
        grid-template-rows: 1fr 12px 1fr 12px 1fr;
    }
    .hero article {
        margin-bottom: 0;
        padding: 6px;
    }
    .home .content.hero h2,
    .hero span {
        font-size: 1.8vw;
        align-self: center;
    }
    .hero .hero-1 {
        grid-area: 1 / 1 / 6 / 2;
    }
    .home .thumb {
        width: 40%;
        margin-right: 0.75em;
    }
    .hero .thumb {
        float: none;
        min-width: 38.197%;
        align-self: center;
    }
    .hero .hero-1 .thumb {
        width: 100%;
    }
    .hero .thumb,
    .hero .thumb a {
        height: 100%;
    }
    .hero .hero-2 {
        grid-area: 1 / 3 / 2 / 4;
    }
    .hero .hero-3 {
        grid-area: 3 / 3 / 4 / 4;
    }
    .hero .hero-4 {
        grid-area: 5 / 3 / 6 / 4;
    }
    .hero .hero-2,
    .hero .hero-3,
    .hero .hero-4 {
        display: flex;
    }
    .home .content article.today h4 {
        columns: 2;
    }
    .home article.thumbless {
        display: flex;
        align-items: center;
    }
    .home article.double {
        margin-right: 12px;
    }
    .home .content .double {
        display: flex;
        margin-bottom: 1.5em;
    }
    .home .content .double article {
        padding: 6px;
        margin-right: 12px;
        margin-bottom: 12px;
        width: 50%;
    }
    .home .content .double .alist {
        width: 50%;
        margin-right: 12px;
    }
    .home .content .double .alist:last-of-type {
        margin-right: 0;
    }
    .home .content .double .alist article {
        width: 100%;
        height: 91%;
    }
    .home .content .double .alist article h3 {
        min-height: 4em;
        margin-bottom: 0;
    }
    .home .content h2 {
        font-size: 3vw;
    }
    .home .content h3 {
        font-size: 2.2vw;
    }
    .home .content h4 {
        font-size: 1.8vw;
        margin: 0 0 12px;
    }
    .home .content .double .thumb {
        float: none;
        width: 100%;
    }
    .home .content .sectitle {
        font-size: 3.5vw;
        margin-bottom: 6px;
    }
    .whole .post {
        flex-wrap: nowrap;
    }
    .whole .thumb {
        min-width: 38.197%;
        width: auto;
    }
}

@media screen and (min-width: 1110px) {
    /* Header */
    .branding {
        grid-template-columns: 200px auto 250px;
    }
    .header-text {
        width: calc(100% - 60px);
    }
    nav.menu {
        margin-left: 30px;
        padding: 1em;
        width: auto;
    }
    nav.menu ul li {
        margin: 0 1em;
    }
    .searchbar {
        padding: 0.8em;
    }
    /* Sidebar */
    .aright {
        min-width: 300px;
        width: 300px;
    }
    /* Home */
    .home .content.hero h2,
    .home .content .sectitle {
        font-size: 24px;
    }
    .home .content h3 {
        font-size: 22px;
    }
    .home .content h4 {
        font-size: 19px;
    }
}

@media screen and (min-width: 1440px) {
    #page {
      padding-left: 172px;
    }
  
    #lefternary {
      margin-top: 10px;
      margin-left: -172px;
      position: absolute;
      display: block;
      width: 160px;
    }
  
    #lefternary #lefternary-P1-wrapper {
      margin: 0 auto 10px;
      padding: 0;
      min-height: 618px;
	  width: 160px;
    }
  
    #lefternary-P1-wrapper.display:before {
      position: static;
      content: "Advertisement";
      font-size: 11px;
      line-height: 11px;
      display: block;
      margin-bottom: 0.3em;
      text-align: center;
      z-index:auto;
    }
    
    #primary-video-P1-wrapper {
        max-width: 750px;
    }
  }

p.socials a {
    display: flex;
    margin-bottom: 0.5rem;
}

  article footer.author {
    padding: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    background-color: inherit;
    color: inherit;
  }
  article footer.author img {
    float: left;
    border-radius: 96px;
    margin-bottom: 1rem;
  }
  article footer.author h3 {
    min-height: 96px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    margin-bottom: 1rem;
  }

  .archive.author article header img {
    display: block;
    margin: 0 auto 1rem;
    border-radius: 96px;
  }
  @media only screen and (min-width: 768px) {
  .archive.author article header img {
    float: left;
    margin: 0 0 1rem;
  }
  .archive.author article header h1 {
    min-height: 96px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
  }
}
