// Blog Post layout styles

.post {

  &__item {
    width: 100%;
    border: 1px solid $mercury;
    margin-bottom: 30px;
    transition: all 0.15s ease-in;
    display: flex;
    flex-flow: column;

    &:hover {
      background: $seashell;
    }

    &--rows {
      border: 0;
      border-bottom: 1px solid $mercury;
      flex-flow: row wrap;
      justify-content: space-between;
      padding: 0 0 30px;

      &:hover {
        background: none;
      }
    }
  }

  &__thumb {
    margin-bottom: -1px;
    width: 100%;

    img {
      width: 100%;
      height: auto;
      display: block;
    }

    .post__item--rows & {
      margin: 0 auto 30px;

      @include mobile() {
        margin: 0;
        max-width: 200px;
      }
    }
  }

  &__thumb-link {
    display: block;
    background: $mercury no-repeat center center/cover;
    transition: none;

    .post__item--rows & {
      overflow: hidden;

      @include mobile() {
        border-radius: 200px;
      }

      img {
        opacity: 0;
      }
    }
  }

  &__meta {
    font-size: rem-calc(12);
    margin-bottom: 15px;
    display: block;
    color: $silver-chalice;

    a {
      color: $silver-chalice;
    }
  }

  &__header {
    font-size: rem-calc(24);
    line-height: 1.4;
    display: block;
    margin-bottom: 15px;

    a {
      color: $tundora;
    }
  }

  &__content {
    padding: 20px;

    .post__item--rows & {
      padding: 0;
    }

    .post__item--rows.has-post-thumbnail & {

      @include mobile() {
        max-width: calc(100% - 230px);
      }

      @include tablet() {
        max-width: calc(100% - 245px);
      }
    }
  }

  &__excerpt {
    font-size: rem-calc(14);
    line-height: 1.8;
  }

  &__read-more {
    font-weight: 500;
    font-size: rem-calc(14);
    line-height: 1.8;
    margin-top: 15px;
    display: block;

    &:hover {
      color: inherit;
    }
  }
}

.meta--sep {
  display: inline-block;
  margin: 0 5px;
}