/* =================================================================================================
Table of Contents
----------------------------------------------------------------------------------------------------
  01 Blog Layout Styles
================================================================================================= */
/* Blog Layout Styles
================================================================================================= */
/* General blog elements, only used in blog */
.fusion-blog-shortcode {
  a {
    text-decoration: none;
    box-shadow: none !important;
  }

  .entry-title {
    clear: right;
  }

  .fusion-read-more {
    position: relative;
    margin-right: 10px;
    text-align: right;

    &:after {
      content: '\f105';
      top: 50%;
      right: -10px;
      padding-left: 5px;
      font-size: 14px;
      font-family: icomoon;
      position: absolute;
      -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
      transform: translateY(-50%);
    }
  }

  .fusion-inline-sep {
    padding: 0 5px;

    &:last-child {
      display: none;
    }
  }

  .post {
    margin-bottom: 65px;
  }
}

.fusion-post-slideshow {
  .image {
    margin-bottom: 0;
  }
  // Fix for #1039
  .fusion-image-size-fixed {
    display: block;
  }
}

.fusion-flexslider.fusion-post-slideshow {
  overflow: visible;
}

.fusion-meta-info {
  clear: both;
  overflow: hidden;
  margin-top: 20px;
  padding: 5px 0;
  border-top: 1px solid #e7e6e6;
  border-bottom: 1px solid #e7e6e6;
  font-size: 12px;

  .fusion-alignleft {
    width: 80%;
  }
}

.fusion-single-line-meta {
  margin-bottom: 20px;
  font-size: 12px;
}

.fusion-content-sep {
  margin-top: 20px;
  height: 6px;
  border-top: 1px solid #EAEAEA;
  border-bottom: 1px solid #EAEAEA;
}
/* Alternate layout elements */
.fusion-date-and-formats {
  float: left;
  margin-right: 17px;
  width: 82px;
  text-align: center;

  .fusion-date-box {
    padding: 8px 0 5px;
    color: #fff;
    display: block;
  }

  .fusion-date {
    display: block;
    line-height: 29px;
    font-size: 29px;
    font-weight: bold;
  }

  .fusion-format-box {
    margin-top: 3px;
    background-color: #eef0f2;

    i {
      display: block;
      line-height: 55px;
      font-size: 30px;
    }
  }
}
/* Timeline elements */
.fusion-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -1px;
  height: 100%;
  border-left: 1px solid #efeeee;
  border-right: 1px solid #ebeaea;
}

.fusion-timeline-icon {
  margin: 0 auto -6px;
  max-width: 1000px;
  font-size: 46px;
  color: #ebeaea;
  text-align: center;

  .fusionicon-bubbles {
    cursor: pointer;
  }
}

.fusion-timeline-circle {
  position: absolute;
  left: 50%;
  margin: 10px 0 0 -5px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: #efeeee;
}

.fusion-timeline-arrow {
  position: absolute;

  &:before {
    color: #E9EAEE;
    font-family: @icon-font;
    font-size: 28px;
    position: absolute;
    top: 0;
    line-height: 30px;
  }
}
/* General blog elements that are also used outside blog */
.fusion-blog-archive {
  .entry-title {
    margin-top: 0;
    margin-bottom: 5px;
  }
}
/* Mixed layout styles */
.fusion-blog-layout-large,
.fusion-blog-layout-medium {
  .entry-title {
    margin-top: 0;
    margin-bottom: 25px;
  }
}

.fusion-blog-layout-large,
.fusion-blog-layout-large-alternate,
.single-avada_faq,
.single-post,
.single-wpfc_sermon {
  .fusion-post-slideshow {
    margin-bottom: 30px;
  }
}

.fusion-blog-layout-large-alternate,
.fusion-blog-layout-medium-alternate {
  .entry-title {
    margin-top: 0;
    margin-bottom: 5px;
  }

  .fusion-post-content-container {
    margin-top: 20px;
  }

  .fusion-meta-info {
    margin-top: 0;
    border-top: 0;
  }
}

.fusion-blog-layout-medium,
.fusion-blog-layout-medium-alternate {
  .fusion-post-slideshow {
    float: left;
    margin-right: 25px;
    width: 320px;
    margin-bottom: 0;
  }
}

.fusion-blog-layout-grid,
.fusion-blog-layout-timeline {
  .fusion-post-slideshow {
    margin-bottom: 0;
    border-bottom: 1px solid #EAEAEA;
  }

  .fusion-post-content-wrapper {
    padding: 30px 25px 0;
  }

  .fusion-post-content-container {
    margin-top: 20px;
  }

  .fusion-meta-info {
    margin-bottom: 20px;
    border: 0;

    .fusion-alignleft {
      width: 50%;
      display: inline-block;
      margin: 0;
    }

    .fusion-alignright {
      width: 50%;
      display: inline-block;
      text-align: right;
      margin: 0;
    }
  }

  .fusion-password {
    width: auto;
    max-width: 100%;
  }
}
/* Large alternate layout */
.fusion-blog-layout-large-alternate {
  .fusion-post-content {
    margin-left: 110px;
  }
}
/* Medium alternate layout */
.fusion-blog-layout-medium-alternate {
  .fusion-post-slideshow {
    display: none;
  }

  .fusion-post-content {
    margin-left: 99px;
  }

  .has-post-thumbnail {
    .fusion-post-slideshow {
      display: block;
      margin-right: 17px;
    }

    .fusion-post-content {
      margin-left: 436px;
    }
  }

  &.fusion-blog-no-images {
    .fusion-post-content {
      margin-left: 99px;
    }
  }
}
/* Grid layout */
.fusion-blog-layout-grid {
  .fusion-post-grid {
    margin-bottom: 0;
    box-sizing: border-box;
    border: none;
  }

  .fusion-post-wrapper {
    border: 1px solid #EAEAEA;
    border-bottom-width: 3px;

    .fusion-image-wrapper {
      img {
        box-shadow: none;
        border-radius: 0;
      }
    }
  }

  &.fusion-blog-layout-grid-2 .post {
    width: 50%;
    display: inline-block;
    float: left;
  }

  &.fusion-blog-layout-grid-3 .post {
    width: 33%;
    display: inline-block;
    float: left;
  }

  &.fusion-blog-layout-grid-4 .post {
    width: 25%;
    display: inline-block;
    float: left;
  }

  &.fusion-blog-layout-grid-5 .post {
    width: 20%;
    display: inline-block;
    float: left;
  }

  &.fusion-blog-layout-grid-6 .post {
    width: 16.66%;
    display: inline-block;
    float: left;
  }

  .fusion-post-content,
  .post-content {
    word-wrap: break-word;
  }
}
/* Timeline layout */
.fusion-blog-layout-timeline {
  position: relative;
  margin: 0 auto;
  padding-top: 30px;
  max-width: 1000px;

  .fusion-post-timeline {
    position: static;
    margin-bottom: 40px;
    border: 1px solid #EAEAEA;
    border-bottom-width: 3px;
  }

  .fusion-left-column {
    float: left;
    clear: left;
    width: 40%;
  }

  .fusion-right-column {
    float: right;
    clear: right;
    width: 40%;
  }
  /* Needed here because of blog shortcode */
  .fusion-timeline-date {
    position: relative;
    clear: both;
    margin: 0 auto 2px;
    padding: 4px 0;
    width: 108px;
    line-height: 20px;
    background: #efeeee;
    font-size: 15px;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
  }

  .fusion-left-column .fusion-timeline-arrow {
    left: 40%;
    margin-left: -0.5px;

    &:before {
      content: @blog-timeline-arrow-left;
      left: 100%;
    }
  }

  .fusion-right-column .fusion-timeline-arrow {
    right: 40%;
    margin-right: -0.5px;

    &:before {
      content: @blog-timeline-arrow-right;
      right: 100%;
    }
  }
}

.fusion-blog-infinite {
  .pagination {
    display: none;
  }

  .fusion-load-more-button {
    margin-bottom: 40px;
  }
}

.fusion-blog-pagination {
  .pagination {
    float: right;
    margin-top: 40px;
    font-size: 9px;
    line-height: normal;

    a {
      text-decoration: none;

      &.inactive {
        border: 1px solid #747474;
        display: inline-block;
        color: #747474;
        padding: 2px 6px;
        margin-left: 5px;

        &:hover {
          border: 1px solid #a0ce4e;
        }
      }
    }

    .current {
      border: 1px solid #a0ce4e;
      display: inline-block;
      color: #fff;
      padding: 2px 6px;
      margin-left: 5px;
      background: #a0ce4e;
    }

    .pagination-prev {
      display: inline-block;
      margin-right: -2px; // adds to 8 with first pagination item left margin
      font-size: 12px;
      border: 1px solid transparent;
      padding: 2px 6px;
      position: relative;

      &:before {
        font-family: 'icomoon';
        content: '\f104';
      }
    }

    .pagination-next {
      display: inline-block;
      margin-left: 3px;
      font-size: 12px;
      border: 1px solid transparent;
      padding: 2px 6px;
      position: relative;
      margin-right: 0.25em;

      &:after {
        font-family: 'icomoon';
        content: '\f105';
      }
    }
  }
}
/* Infinite scroll load more button */
.fusion-load-more-button {
  margin-top: 20px;
  height: 50px;
  line-height: 50px;
  background-color: #E9EAEE;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.2s;

  &:hover {
    transition: all 0.3s;
  }
}
