/*
** Blog
*/

.blog_slider {
  margin-bottom: 82px;
  @media (max-width: 767px) {
    margin-bottom: 60px;
  }
  .intro_layers_wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  @media (min-width: 992px) {
    .intro_layers_wrapper {
      left: 130px;
      right: 130px;
    }
  }
  h3{
    font-size: 40px;
    font-weight: 500;
  }
  h2{
    font-size: 80px;
    font-weight: 500;
  }
  .intro_layers{
    margin-bottom: 95px;
  }
  @media (max-width: 991px) {
    h2{
      font-size: 50px;
    }
    .intro_layers{
      margin-bottom: 0;
    }
  }
  @media (max-width: 767px) {
    h3{
      font-size: 30px;
    }
    h2{
      font-size: 40px;
    }
    .intro_layers{
      padding-top: 30px;
      padding-bottom: 70px;
    }
  }
  @media (max-width: 768px) {
    h3{
      font-size: 26px;
    }
    h2{
      font-size: 26px;
    }
    .intro_layers{
      padding-top: 30px;
      padding-bottom: 50px;
    }
  }
}

.blog-featured-posts {
  .post {
    height: 100%;
  }
}

//entry title on singular will be SHOWN - title will be HIDDEN in title section
.entry-title,
.entry-title:last-child {
  text-transform: none;
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1;
  font-size: 24px;
  a:hover{
    color: $colorMain;
  }
}

//for blog greed and featured posts
h4.entry-title {
  font-size: 24px;
  margin-bottom: 0.7em;
}

//for single post
.item-media+ .item-content {
  h1.entry-title {
    margin-top: 5px;
  }
}


.post {
  position: relative;
  &.format-status{
    img{
      margin: 0 auto 25px;
    }
    .entry-meta{
      flex-direction: column-reverse;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
      .entry-categories{
        margin-bottom: 17px;
      }
    }
    .entry-title{
      margin-bottom: 20px;
    }
    .blog-adds{
      justify-content: center;
    }
  }


  &.format-link{
    .item-content{
      a.more:not(.btn){
        color:$colorMain;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
        margin-left: 10px;
        &:hover{
          color:$darkgreyColor;
        }
        i{
          margin-left: 5px;
        }
      }
    }
  }
  .item-media + .item-content{
    padding: 55px 60px;
    @media (max-width: 991px) {
      padding: 35px 40px;
    }
    @media(max-width: 575px){
      padding: 25px 30px;
    }
  }
  //sticky
  & > .fa {
    position: absolute;
    left: 21px;
    top: 16px;
    color: $lightColor;
    z-index: 3;
    &:before {
      position: relative;
      z-index: 3;
    }
    &:after {
      content: '';
      display: block;
      position: absolute;
      z-index: 2;
      top: -16px;
      left: -21px;
      width: 50px;
      height: 50px;
      background-color: $colorMain;
    }
  }

  & + & {
    margin-top: 27px;
  }

  //blog feed
  h3.entry-title {
    & + .entry-meta {
      margin-top:-0.65em;
    }
  }

  //single post
  h1.entry-title {
    & + .entry-meta {
      margin:-1em 0 2em;
    }
  }

  //cover image post
  &.cover-image {
    padding: 35px;
    @media(max-width: 450px){
      padding: 25px!important;
    }
    @media (min-width: 992px) {
      padding: 50px 50px 47px 50px;
    }
    text-align: center;
    height: auto;
    .post-thumbnail {
      display: none;
    }
  }

  ul, ol {
    margin-bottom: 15px;
  }

}
.post-thumbnail {
  text-align: center;
  .owl-dots {
    position: absolute;
    bottom: 53px;
    right: 0;
    left: 0;
  }
  & + .entry-content {
    margin-top: 1.5em;
  }
}

//password protected
.post-password-form {
  input[type="password"] {
    margin-top: 0.5em;
    width: auto;
  }
  input[type="submit"] {
    position: relative;
    top: -2px;
  }
}

.ds{
  .entry-footer,
  .entry-meta{
    .entry-date{
      a{
        color: $lightColor;
        &:hover{
          color: $colorMain;
        }
      }
    }
  }
}

.entry-footer,
.entry-meta {
  margin-top: 0.5em;
  line-height: 1;
  clear: both;
  display: flex;
  justify-content: space-between;
  .entry-date{
    a{
      i.fa{
        margin-right: 6px;
      }
      color: $fontColor;
      &:hover{
        color: $colorMain;
      }
    }
  }
  .entry-categories{
    i.fa{
      margin-right: 6px;
    }
  }
  a {
    @include small-text();
    font-size: 12px;
    font-weight: 500;
  }
}
.entry-header{
  .entry-meta{
    margin-top: 0;
    margin-bottom: 15px;
  }
}
.blog-adds{
  display: flex;
  justify-content: flex-end;
  span{
    margin-left: 20px;
    font-size: 12px;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    &:first-child{
      margin-left: 0;
    }
  }
  .like-count{
    i{
      color:$colorMain;

    }
  }
  i{
    margin-right: 10px;
    font-size: 14px;
  }
}
.entry-footer {
  margin-top: 40px;
  margin-bottom: 50px;
  .fa {
    margin-right: 10px;
  }
}

//cleaning floats
.entry-content,
.entry-footer,
.entry-header {
  &:before,
  &:after {
    display: block;
    content: '';
    clear: both;
  }
}

.cat-links {
  font-size: 0;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
  a {
    display: inline-block;
    line-height: 1;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35em 0.5em 0.25em;
    margin: 0 4px 4px 0;
    color: $lightColor;
    background-color: $colorMain;
    border-radius: 1px;
    &:nth-child(4n-5) {
      background-color: $colorMain2;
    }
    &:nth-child(4n-4) {
      background-color: $colorMain3;
    }
    &:nth-child(4n-3) {
      background-color: $colorMain4;
    }

    &:hover {
      background-color: $darkgreyColor;
    }

  }
}

//edit link
.entry-footer,
.entry-header {
  .edit-link {
    float: right;
    a:before {
      font-family: 'FontAwesome';
      content: '\f040';
      padding-right: 0.4em;
    }
  }
  //for woo
  .entry-title + .edit-link {
    position: absolute;
    right: 15px;
    top: -3px;
  }
}
.author-bio{
  margin-top: 60px;
  h4{
    font-size: 24px;
    text-transform: capitalize;
    margin-top: 0;
    margin-bottom: 4px;
  }
  p{
    margin: 0 0 19px;
  }
}
.post-adds {
  display: flex;
  background-color: #3a3630;
  line-height: 1;
  align-items: center;
  a.share_button{
    border-radius: 6px 0 0 6px;
  }
  i {
    width: 1em;
  }
  a {
    display: inline-block;
    margin: 0;
  }
  .view-count-wrap{
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    line-height: 1.3;
    @media (max-width: 1199px) {
      flex-flow: column;
    }
    .view-count-wrap-child{
      @media (max-width: 767px) {
        &:first-child{
          display: none;
        }
      }
    }
  }
  .post-img{
    @media (max-width: 767px) {
      display: none;
    }
  }
  .dropdown .dropdown-menu{
    background-color: transparent;
    z-index: 2;
    border: none;
    position: fixed!important;
    right: 0!important;
    top: 50%!important;
    left: auto!important;
    min-width: 40px;
    width: 40px;
    transform: translateY(-50%)!important;
    box-shadow: none;
    .share_buttons{
      display: block;
      animation-name: slideInRight;
      animation-duration: 0.5s;
      animation-timing-function: linear;
      a.fa.color-bg-icon{
        margin: 0;
      }
    }
  }
  .dropdown-menu {
    padding: 0;
  }
  .share_buttons {
    display: flex;
  }
  .share_button {
    color: $lightColor;
    line-height: 60px;
    padding: 0 21px;
    @media (max-width: 768px) {
      line-height: 72px;
    }
  }
  .like_button {
    i{
      color: $colorMain2 !important;
    }

    line-height: 60px;
    padding: 0 21px;
    border-right: 1px solid $borderColor;
  }
  .votes_count {
    padding: 0 21px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
  }
  .views-count {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    color: $lightColor;
    margin-left: 27px;
    i.fa{
      color: $colorMain;
      margin-right: 6px;
    }
    @media (max-width: 576px) {
      margin-left: 0;
    }
  }
  .dropdown{
    margin-right: 33px;
    margin-left: auto;
    @media (max-width: 767px) {
      margin-right: 0;
    }
  }
  @media(max-width: 576px) {
    .share_button {
      line-height: 60px;
      padding: 0 11px;
    }
    .like_button {
      line-height: 40px;
      padding: 0 11px;
    }
    .views-count {
      padding: 14px 15px;
    }
  }
}

.video-post{
  .post{
    .item-content{
      padding: 55px 60px;
      @media (max-width: 991px){
        padding: 35px 40px;
      }
      @media (max-width: 575px){
        padding: 25px 30px;
      }
    }
  }
}

/*gallery post*/
.post {
  &.side-item{
    display: flex;
    background-color: $greyColor;
    .item-wrap{
      flex-shrink: 0;
      width: 270px;
    }
    .cover-image{
      img{
        display: none;
        @media (max-width: 767px){
          display: block;
        }
      }
    }
    .item-content{
      padding-bottom: 32px;
      h5{
        margin-bottom: 20px;
      }
    }
    @media (max-width: 1199px) {
      .item-wrap{
        max-width: 200px;
      }
    }
    @media (max-width: 991px) {
      .item-wrap{
        max-width: 270px;
      }
    }
    @media (max-width: 767px) {
     flex-direction: column;
      .item-wrap{
        max-width: 100%;
        width: auto;
      }
    }
  }
  .item-content p:last-child{
    margin-bottom: 0;
  }
  .gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px;

    .gallery-item {
      width: 50%;
      padding: 0 7px;

      figcaption {
        padding: 20px 0 5px;
      }
    }

    @media (min-width: 992px) {
      &.gallery-columns-1 .gallery-item {
        width: 100%;
      }
      &.gallery-columns-2 .gallery-item {
        width: 50%;
      }

      &.gallery-columns-3 .gallery-item {
        width: 33.33%;
      }

      &.gallery-columns-4 .gallery-item {
        width: 25%;
      }

      &.gallery-columns-5 .gallery-item {
        width: 20%;
      }

      &.gallery-columns-6 .gallery-item {
        width: 16.66%;
      }

      &.gallery-columns-7 .gallery-item {
        width: 14.28%;
      }

      &.gallery-columns-8 .gallery-item {
        width: 12.5%;
      }

      &.gallery-columns-9 .gallery-item {
        width: 11.11%;
      }
    }

  }
}

/*post author*/
.author-bio {
  .item-content{

  }
  a.fa {
    margin-bottom: 0;
    color: $fontColor;
    margin-right: 6px;
    &:not(:first-child){
      margin-left: 8px;
    }
  }
}

/*comments*/
.comments-title {
  margin-bottom: 40px;
}

.comments-area {
  margin-top: 60px;
  padding: 54px 60px 60px;
  @media(max-width: 991px){
    padding: 34px 40px 40px;
  }
  @media(max-width:575px){
    padding: 24px 30px 30px;
  }
  .comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    ol.children {
      list-style: none;
      padding-left: 35px;
      @media (min-width: 1200px) {
        padding-left: 112px;
      }
      ol.children ol.children {
        padding-left: 35px;
      }
    }
  }
}

.comment-body {
  position: relative;
  margin-left: 87px;
  margin-bottom: 0px;
  padding: 7px 0px 31px 20px;
  ol,
  ol ol {
    padding-left: 20px;
  }
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  h4{
    margin-top: 0;
    margin-bottom: 0;
    text-transform: capitalize;
    font-size: 24px;
  }
  //avatar
  img {
    position: absolute;
    left: -88px;
    //top border-width
    top: -5px;
    max-width: 80px;
  }

  .comment-author{
    font-size: 21px;
    display: flex;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    span:last-child{
      font-size: 12px;
      i{
        margin-right: 4px;
      }
    }
    @media (max-width: 1199px) {
      flex-direction: column;
      align-items: flex-start;
      span:last-child{
        margin-left: 0;
        margin-top: 10px;
        line-height: 1.6;
      }
    }
    @media (max-width: 575px) {
      span:last-child{
        line-height: 1.6;
      }
    }
  }
  .comment-metadata {
    @include small-text();
  }

  b {
    font-weight: inherit;
  }
}

@media(max-width: 575px) {
  .comment-body {
    margin-left: 15px;
  }
  .comment-meta img {
    max-width: 35px;
    left: -28px;
  }
}

.reply {
  margin-left: 10px;
  font-size: 12px;
  margin-top: 5px;
  margin-right: auto;
  padding-right: 10px;
  a{
    color: $colorMain3;
    &:hover{
      color: $darkFontColor;
    }
  }
  @media (max-width: 1199px) {
    margin-left: 0;
    order: 2;
  }
}

//links
.reply {
  a {
    font-style: normal;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
  }
}

.comment-content {
  p {
    margin-bottom: 0.5em;
  }
}

.no-comments,
.comment-awaiting-moderation {
  opacity: 0.7;
}

.comments-pagination {
  margin: 2em 0 3em;
}

/*comment respond form*/
.comments-area > .comment-respond {
  margin-top: 6px;
  padding: 0px 2px 0;
  h4{
    margin-bottom: 35px;
  }
}

.comment-form {
  display: flex;
  flex-wrap: wrap;
  p {
    margin-bottom: 10px;
    width: 100%;
    &.form-submit {
      margin-top: 10px;
      margin-bottom: 0;
    }
  }
  label {
    display: block;
  }
  textarea,
  input {
    width: 100%;
  }
  //remember me checkbox appears with our custom designed checkbox, so hiding it
  input[type=checkbox] {
    margin: 0;
    visibility: hidden;
  }
  @media(min-width: 992px) {
    .comment-form-author,
    .comment-form-email,
    .comment-form-url{
      //width: 33%;
    }
    .comment-form-author, .comment-form-email {
      padding-right: 10px;
    }
  }
}

/* post formats */

.format-status {
  &.s-overlay.ds:before{
    opacity: 0.7;
  }
  .avatar {
    display: block;
    max-width: 100px;
    margin: 0 auto 35px;
  }
  .entry-title {
    margin-bottom: 35px;
  }
  .cat-links {
    margin-bottom: 5px;
  }
  &.post .entry-title + .entry-meta {
    margin:0 0 25px;
  }
  .entry-date {
    margin-top: -7px;
  }
}

.format-chat {
  .item-content{
    padding-right: 17px;
  }
  .entry-content {
    span{
      color: $darkgreyColor;
    }
    p {
      margin-bottom: 0.3em;
    }
    p:nth-child(2n) {
      padding: 0.4em 1.2em;
    }
  }
  .item-meta{
    margin-top: 9px;
  }
}

.format-quote {
  text-align: center;
  &.s-overlay.ds:before{
    opacity: 0.7;
  }
  &.cover-image {
    padding: 50px;
    .entry-header > i {
      display: inline-block;
      font-size: 2em;
      margin-bottom: 0.7em;
    }
  }
  blockquote {
    border: none;
    font-style: italic;
    margin-bottom: 0;
    padding-left: 0;
    margin-top: 17px;
    h4{
      font-size: 24px;
      margin-top: 0;
      margin-bottom: 3px;
    }
    p{
      color: $lightColor;
    }
    cite {
      display: block;
      font-style: normal;
      margin: 24px 0 0;
      font-size: 16px;
      line-height: 1.5;
      @include small-text();
    }
  }
}

.format-video{
  .photoswipe-link{
    &::after{
      background: url(../images/play.png) no-repeat center/contain;
      content: "";
      height: 42px;
      left: 50%;
      position: absolute;
      text-align: center;
      top: 50%;
      -webkit-transform: translateX(-50%) translateY(-50%);
      transform: translateX(-50%) translateY(-50%);
      transition: all 0.3s ease-in-out;
      width: 60px;
    }

    &:hover{
      &::after{
        opacity: 0.6;
      }
    }
  }
}

.post.format-carousel{
  p:first-child{
    margin-bottom: 9px;
  }
  .cover-image{
    img{
      display: block;
    }
  }

  .item-wrap{
    width: 270px;
    @media (max-width: 767px) {
      width: auto;
    }
  }
  .owl-dots{
    bottom: 27px;
    width: 100%;
    .owl-dot + .owl-dot{
      margin-left: 30px;
      @media (max-width: 1199px){
        margin-left: 20px;
      }
      @media (max-width: 991px){
        margin-left: 30px;
      }
    }
  }
}

// Item Gallery
.post{
  .item-gallery{
    .item-content h4, .item-content h5 {
      transform: scale(1);
      opacity: 1;
      font-size: 20px;
      margin-top: 0;
      margin-bottom: 7px;
      max-height: 40px;
      overflow: hidden;
    }
    .item-content{
      padding: 26px 35px 23px 35px;
      background: linear-gradient(to right, rgba($colorMain, .9) 0%, rgba($colorMain2, .9) 100%);
    }
    &:hover{
      .item-content{
        background: linear-gradient(to right, rgba($colorMain, .9) 0%, rgba($colorMain2, .9) 100%);
      }
    }
    .item-meta{
      color: $lightColor;
      i.fa{
        color: $darkgreyColor;
      }
    }
  }
}