/*
Theme Name: Frank Watson
*/

    * {
      box-sizing: border-box;
      transition: background-color 250ms ease-in-out;
      transition: background 250ms ease-in-out;
    }

      :root {
--menu-white: #fcfbf9;
        --white: #f5f2ec;

        --line-width: .75ch;
        --warming-heart: #d14f39;
        --film-noir: #463e36;
        --black: var(--film-noir);
        --gray: #a39f9b;
        --red: var(--warming-heart);
        --max-width: 90vw;
        --hero-height: 56vh;
        --base-font-size: 1vw;
        --icon-size: 1.5ch;
      }

      html {
        font-size: calc(var(--base-font-size) + 0.5vh);
      }

      body {
          font-family: Helvetica, sans-serif;
          margin: 0;
          padding: 0;
          background-color: var(--white);
          color: var(--black);
          display: flex;
          flex-flow: column;
          align-items: center;
          /* display: none; */
      }

      header {
          width: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          flex-flow: column;
      }

      .header-content {
          width: 100%;
          max-width: var(--max-width);
          /* flex-flow: row;
          justify-content: space-between;
          align-items: center; */
          /* display: grid;
          grid-template-columns: 4fr 8fr;
          grid-gap-color: var(--black); */
          /* padding-bottom: 2ch; */

          display: flex;
          justify-content: space-between;
          padding-top: 4ch;
          grid-gap: var(--line-width);
      }

      .header-divider {
        width: 100%;
        max-width: var(--max-width);
        border-bottom: var(--line-width) solid var(--black);
      }

      .logo {
          font-size: 2rem;
          font-weight: bold;
          color: var(--black);
          text-transform: lowercase;
      }

      .subline {}

      .branding {
        display: inline-flex;
        flex-flow: column;
        border-right: var(--line-width) solid var(--black);
        padding: 2ch 0;
        padding-right: 4ch;
      }

      .nav {
          background-color: var(--white);
          align-items: center;
      }

      .menu {
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          list-style-type: none;
          margin: 0;
          padding: 0;
          width: 100%;
          height: 100%;
      }

      .menu li {
          position: relative;
      }

      .menu > li {
          /* margin: 0 15px; */
          opacity: 0;
      }

      .menu > li > a {
          display: flex;
          justify-content: center;
          align-items: center;
          text-decoration: none;
          color: var(--black);
          padding: 0 2ch;
          height: 100%;
          font-size: 1rem;
          text-transform: lowercase;
      }

      .footermenu > li > a:hover,
      .menu > li > a:hover {
          background-color: var(--red);
          color: var(--white);
      }

      .submenu {
          display: none;
          position: absolute;
          top: 100%;
          left: 0;
          width: 100%;
          background-color: var(--menu-white);
          border-top: var(--line-width) solid var(--gray);
          list-style-type: none;
          margin: 0;
          padding: 0;
          z-index: 10;
          box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
      }

      .submenu li {
          padding: 0;
      }

      .submenu li a {
          display: block;
          text-decoration: none;
          color: var(--black);
          padding: 2ch 2ch;
          border-bottom: 1px solid var(--gray);
          text-transform: lowercase;
      }

      .submenu li a:hover {
                      background-color: var(--red);
                      color: var(--white);
      }

      .menu li:hover .submenu {
          display: block;
      }

      .hero {
          width: 100%;
          max-width: var(--max-width);
          height: var(--hero-height);
          height: 100%;
          padding: 4ch 0;
          display: flex;
          justify-content: center;
          align-items: center;
      }

    .hero-image {
        width: 100%;
        height: 100%;
        background-image: url('assets/images/unsplash-photo-1522173096622-763cc9d35a3e-2.jpeg');
        background-size: cover;
        background-position: center;
        margin: 0;
        border: var(--line-width) solid var(--black);
    }

      .divider {
          width: 100%;
          max-width: var(--max-width);
          height: var(--line-width);
          background-color: var(--black);
          margin: 20px auto;
      }

      main {
        display: flex;
        flex-flow: column;
        align-items: center;
                      width: 100%;
                      max-width: var(--max-width);
                      padding-top: 4ch;
                      padding-bottom: 4ch;
      }

      footer {
                    width: 100%;
                    max-width: var(--max-width);
          background-color:  var(--white);;
          text-align: center;
          border-top: var(--line-width) solid var(--black);
      }

      footer p {
          margin: 0;
          color: #666;
      }

      .footermenu {
        list-style: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
        margin: 0;
      }

      .footermenu li a {
        color: var(--black);
        padding: 2ch 4ch;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        height: 100%;
      }

      .footermenu li {
        border-right: var(--line-width) solid var(--black);
      }

      .footermenu li:last-of-type {
        border-right: var(--line-width) solid var(--white);
      }

      .home {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        padding-bottom: 4ch;
      }

        main {
          min-height: 65vh;
        }

      .nav svg {
        height: var(--icon-size);
        width: var(--icon-size);
        fill: var(--black);
      }

      .post {
        display: flex;
        flex-flow: column;
                width: 100%;
                max-width: 66ch;
      }

      .post p {
        width: 100%;
        max-width: 66ch;
        text-align: left;
        line-height: 150%;
      }

      .header-content a {
        color: var(--black);
      }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}




@media screen and (orientation: landscape) {
      .mobile-menu {
        display: none;
      }

      .post-with-featured-image {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: var(--icon-size);
      }

      .post-with-featured-image img {
        max-width: 100%;
        height: auto;
      }
    }

      @media screen and (orientation: portrait) {

        :root {
          --icon-size: 40px;
          --base-font-size: 2vw;
        }
        .menu {
          display: none;
        }


        .hero {
          height: 70%;
        }

        .single {
          min-height: 70%;
        }

        .mobile-menu {
          display: flex;
          justify-content: center;
          align-items: center;
          padding: 1ch 0;
          height: 100%;
        }

        input[type="image"],
        .movile-menu svg {
          height: var(--icon-size);
          width: var(--icon-size);
          fill: var(--black);
        }
      }
