.posts .post .post-cover {
  background-position: center;
  background-size: contain;
  height: 16rem;
  margin-bottom: 1rem;

}

.posts .post {
  margin: 0;
}

.posts .post:not(:first-of-type) {
  padding-top: 3rem;
}

.posts .post:not(:last-of-type) {
  padding-bottom: 3rem;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.posts .post:not(:last-of-type)::after {
  content: '&';
  color: #ddd;
  position: absolute;
  display: block;
  width: 2rem;
  height: 1rem;
  background: white;
  bottom: -0.5rem;
  left: calc(50% - 1rem);
  font-size: 1rem;
  line-height: 1rem;
  text-align: center;
}

.posts .post:last-of-type {
  padding-bottom: 3rem;
}

.pagination {
  margin-bottom: 0;
}

a.read-more {
  color: #c59543;
}

.post-nav {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "next prev";
  position: relative;
}

.post-nav::after {
  content: '';
  position: absolute;
  display: block;
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  background: #ddd;
  z-index: 1;
}

@media only screen and (max-width: 640px) {
    .post-nav {
      grid-template-columns: 1fr;
      grid-template-rows: 1fr 1fr;
      grid-template-areas: "next" "prev";
    }

    .post-nav::after {
      display: none;
    }
}

.post-nav .post-nav-prev,
.post-nav .post-nav-next {
  font-size: 0.8rem;
  text-decoration: none;
}

.post-nav .post-nav-prev {
  grid-area: prev;
}

.post-nav .post-nav-next {
  grid-area: next;
}

.post-nav-next .post-nav-teaser {
    padding-right: 3rem;
}

.post-nav-prev .post-nav-teaser {
    padding-left: 3rem
}

@media only screen and (max-width: 640px) {
    .post-nav-next .post-nav-teaser {
        padding-right: 0;
    }

    .post-nav-prev .post-nav-teaser {
        padding-left: 0;
    }
}

.post-nav-teaser {
    position: relative;
    padding: 2rem 0;
    min-height: 8rem;
}

@media only screen and (max-width: 640px) {
    .post-nav-teaser {
        min-height:4em;
        padding: 2em 0
    }

    .post-nav-teaser:after {
        position: absolute;
        content: '';
        width: 100%;
        height: 1px;
        left: 0;
        bottom: 0;
        margin-bottom: -1px;
        z-index: 2
    }
}

.post-nav i {
    position: absolute;
    top: 50%;
    width: 4rem;
    height: 4rem;
    margin-top: -2rem;
    text-align: center;
    transition: all ease-out 0.2s;
    color: #c59543;
}

.post-nav i:before {
    margin: 0;
    width: auto
}

.post-nav-next i {
    left: 0;
    margin-left: -4rem;
}

.post-nav-prev i {
    right: 0;
    margin-right: -4rem;
}

.post-nav-title {
    margin: 0 0 0.5rem;
    padding: 0;
    color: inherit;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2em;
    color: #333;
}

.post-nav-excerpt {
    margin: 0 0 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.post-nav-meta {
    margin: 0;
    color: #666;
}

.post-tags {
    position: relative;
    margin-bottom: -2rem;
    margin-top: 2rem;
}

@media only screen and (max-width: 640px) {
    .post-tags {
    }
}

.post-tags a {
  display: inline-block;
  margin-right: 0.3em;
  margin-bottom: 0.3em;
  padding: 0.5em;
  background: #1e458f;
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  color: white;
  border-radius: 0.7em;
  transition: all ease 0.2s;
  white-space: nowrap;
}

.post-tags a:focus,.post-tags a:hover {
    background: #4776cf;
}
