/*********************
 * Blog Post Styling *
 *********************/
.blogpost {
  max-width: 1200px;
  padding: 0 40px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.blogpost a, .blogpost a:visited {
  color: blue;
  text-decoration: none;
}
.blogpost a:hover {
  color: darkgreen;
}

.blogpost-title {
  grid-column: span 3;
  text-align: center;
  padding: 20px 0;
}
.blogpost-title h1 {
  font-size: 3.5em;
  font-weight: 600;
}

.blogpost-image {
  grid-column: span 2;
  margin: 0 auto;
}

.blogpost-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.blogpost-aside {
  grid-column: span 1;
  padding: 0 2em;
  background-color: white;
}
.blogpost-aside ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.blogpost-aside li {
  padding: 1.2em 0;
}
.blogpost-aside p {
  font-size: 1.15em;
}

.blogpost-article {
  grid-column: span 3;
  padding: 1em;
  margin-top: 1em;
  background-color: white;
}
.blogpost-article p {
  padding: 10px 0;
  font-size: 1.1em;
  line-height: 145%;
}
.blogpost-article ul, ol {
  padding: 0.25em 2em;
  line-height: 145%;
}
.blogpost-article li {
  font-size: 1.1em;
  line-height: 145%;
}
.blogpost-article h2 {
  border-bottom: 2px solid #DDD;
  font-size: 1.8em;
  margin-bottom: 0.5em;
}
.blogpost-article h2:not(:first-child) {
  padding-top: 1em;
}
.blogpost-article h3 {
  margin: 0.8em 0;
}
.blogpost-article pre code {
  font-size: 1.2em;
  background-color: #eee;
  border: 1px solid #999;
  display: block;
  margin: 10px 0;
  padding: 0.5em 30px;
  white-space: pre-wrap;
  line-height: 145%;
}
.blogpost-article img {
  padding: 5px 0;
  border: 1px solid #999;
}
.blogpost-article .no-padding {
  padding: 0;
}
.blogpost-article .book-cover {
  height: 400px
}
.blogpost-article .book-cover-small {
  height: 200px;
}

.full-width-image {
  max-width: 100%;
}
.medium-width-image {
  max-width: 65%;
}
.narrow-width-image {
  max-width: 40%;
}

.blogpost-article blockquote {
  padding-left: 2em;
  padding-bottom: 0.2em;
  font-weight: 300;
  font-size: 0.9em;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1em 0;
}

td, th {
  border: 1px solid #ddd;
  padding: 1.0rem 0.8rem;
  overflow: hidden;
}

th {
  padding-bottom: .8rem;
  border-top: 2px solid #DDD;
  border-bottom: 4px solid #DDD;
  text-align: left;
  background-color: lightgrey;
}

tbody tr:nth-child(even) {
  background-color: #F9F9F9;
}


/* RESPONSIVE */
@media screen and (max-width: 1020px) {
  .blogpost-title h1 {
    font-size: 2.6em;
  }

  .blogpost-image {
    grid-column: span 3;
    max-width: 650px;
  }

  .blogpost-aside {
    grid-column: span 3;
    padding: 10px;
  }
  .blogpost-aside ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
}

@media screen and (max-width: 650px) {
  .blogpost {
    padding: 0 1em;
  }

  .blogpost-title h1 {
    font-size: 2.2em;
  }

  .blogpost-aside {
    padding: 0.5em;
  }
  .blogpost-aside ul {
    flex-direction: column;
    text-align: center;
  }
  .blogpost-aside p {
    font-size: 1.0em;
  }
  .blogpost-aside li {
    padding: 0.6em 0;
  }

  .blogpost-article {
    padding: 0.5em;
  }
}
