/*
** Blog
*/

.blog_slider {
  margin-bottom: 60px;
  @media (min-width: 992px) {
    .intro_layers_wrapper {
      left: 130px;
      right: 130px;
    }
  }
  @media(max-width: 767px) {
    display: none;
  }
}

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

.entry-title {
  text-transform: none;
  margin: 0 0 16px !important;
  font-size: 30px;
  @media (max-width: 767px) {
    font-size: 20px;
    letter-spacing: 0;
  }
}

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

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


.post {
  position: relative;
  .more-button {
    margin-top: 23px;
  }
  //sticky
  & > .fa {
    position: absolute;
    right: 9px;
    top: 7px;
    color: $lightColor;
    transform: rotate(45deg);
    z-index: 2;
    &:before {
      position: relative;
      z-index: 3;
    }
    &:after {
      content: '';
      display: block;
      position: absolute;
      z-index: 2;
      top: -14px;
      left: -35px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 40px 40px 40px;
      border-color: transparent transparent $colorMain transparent;

    }
  }

  & + & {
    margin-top: 70px;
    @media(max-width: 991px) {
      margin-top: 50px;
    }
  }

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

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

  &.cover-image {
    padding: 35px 30px 35px;
    @media (min-width: 1200px) {
      padding: 65px 60px 61px;
    }
    text-align: center;
    height: auto;
    .post-thumbnail {
      display: none;
    }
  }

  ul:last-child, ol:last-child {
    margin-bottom: 23px;
  }

}
.post-thumbnail {
  text-align: left;
  .owl-dots {
    position: absolute;
    bottom: 30px;
    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;
  }
}



.entry-footer,
.entry-meta {
  margin: 60px 0 25px;
  @media (max-width: 767px) {
    margin: 30px 0 15px;
  }
  .byline span {
    margin: 0 25px;
    @media (max-width: 767px) {
      margin: 0 15px;
      line-height: 1.5;
    }
    &:first-child {
      margin-left: 0;
    }
    span {
      margin: 0;
    }
    i {
      margin-right: 6px;
    }
  }
  line-height: 1;
  clear: both;
  @media (max-width: 767px) {
    line-height: 1.5;
  }
  a {
    color: $fontColor;
    &:hover {
      color: $colorMain;
    }
  }
  &.post-meta {
    span {
      margin-right: 20px;
      &:last-child {
        margin-right: 0;
      }
    }
  }
  i {
    margin-right: 5px;
  }
}

.entry-footer {
  margin-top: 60px;
  @media (max-width: 767px) {
    margin-top: 40px;
  }
  i {
    margin-right: 2px;
  }
}

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

.cat-links {
  margin: 20px 0 10px 0 !important;
  font-size: 0;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
  a {
    border: 2px solid $colorMain;
    display: inline-block;
    line-height: 1;
    font-size: 16px;
    font-weight: 400;
    padding: 4px 6px;
    margin: 0 4px 4px 0;
    border-radius: 1px;
    color: $darkColor;
    background-color: transparent;
    &:hover {
      background-color: $colorMain;
      color: $lightColor;
    }
  }
  .terms-separator {
    display: none;
  }
}



//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: 0.5em;
  }
}

.post-adds {
  display: flex;
  background-color: $backgroundColor;
  line-height: 1;
  align-items: center;
  margin-bottom: 30px;
  i {
    width: 1em;
  }
  a {
    display: inline-block;
    margin: 0;
  }
  .dropdown-menu {
    padding: 0;
    border: none;
  }
  .share_buttons {
    display: flex;
  }
  .share_button {
    background-color: $colorMain;
    color: $lightColor;
    line-height: 60px;
    padding: 0 21px;
  }
  .like_button {
    color: $colorMain;
  }
}

/*gallery post*/
.post {
  .gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px;
    margin-bottom: 10px;

    .gallery-item {
      width: 50%;
      padding: 0 7px;
      figcaption {
        padding: 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 {
  a.fa {
    margin-bottom: 0;
  }
}

/*comments*/
.comments-title {
  margin-bottom: 53px;
  font-size: 30px;
  @media (max-width: 991px) {
    margin-bottom: 23px;
  }
}

.comments-area {
  padding-top: 0 !important;
  margin-top: 144px;
  margin-bottom: -33px;
  @media (max-width: 991px) {
    margin-top: 51px;
  }
  .comment-list {
    margin-top: 50px;
    list-style: none;
    padding: 0;
    @media (max-width: 767px) {
      margin-top: 20px;
    }
    ol.children {
      list-style: none;
      padding-left: 35px;
      @media (min-width: 1200px) {
        padding-left: 96px;
      }
      ol.children ol.children {
        padding-left: 35px;
      }
    }
  }
}

.comment-body {
  position: relative;
  margin-left: 70px;
  margin-bottom: 0;
  padding: 25px 30px 13px;
  ol,
  ol ol {
    padding-left: 20px;
  }
}


.comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  @media (max-width: 767px) {
    margin-bottom: 10px;
  }
  //avatar
  img {
    position: absolute;
    left: -70px;
    top: 30px;
    max-width: 80px;
    border-radius: 50%;
  }

  .comment-author{
    font-weight: 500;
    font-size: 16px;
    .says {
      display: none;
    }
  }

  b {
    font-weight: inherit;
  }
}

@media(max-width: 575px) {
  .comment-body {
    margin-left: 25px;
    padding-right: 0;
  }
  .comment-meta img {
    max-width: 60px;
    left: -50px;
  }
}

.reply {
  margin-top: 18px;
  a {
    color: $colorMain;
    font-weight: 500;
    &:hover {
      color: $darkColor;
    }
  }
  @media (max-width: 767px) {
    margin-top: 10px;
  }
}

.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: 60px;
  @media (max-width: 991px) {
    margin-top: 20px;
  }
}

.comment-form {
  display: flex;
  flex-wrap: wrap;
  p {
    margin-bottom: 20px;
    width: 100%;
    &.form-submit {
      margin-top: 30px;
      margin-bottom: 0;
    }
  }
  label {
    display: none;
  }
  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 {
      width: 50%;
    }
    .comment-form-author {
      padding-right: 10px;
    }
  }
}

/* post formats */

.format-status {
  &.cover-image > img {
    display: none;
  }
  .entry-content {
    h6 {
      margin-top: 0;
    }
  }
}

.post.format-status,
.post.format-quote {
  a {
    opacity: 1!important;
  }
  h6.entry-title {
    font-size: 20px;
    font-weight: 700;
    @media(max-width: 767px) {
      margin-bottom: 5px !important;
    }
  }
  h4 {
    margin-top: 0;
    margin-bottom: 35px;
    @media(max-width: 767px) {
      margin-bottom: 25px;
    }
  }
  .share_buttons {
    margin-top: 44px;
    position: inherit;
    @media(max-width: 767px) {
      margin-top: 34px;
      margin-bottom: -4px;
    }
    span {
      margin: 0 3px;
      position: relative;
      text-align: center;
      &:first-child:before,
      &:last-child:after {
        height: 2px;
        transform: translateY(-100%);
        width: 181px;
        top: 50%;
        position: absolute;
        display: block;
        content: "";
        background-color: rgba($lightColor, 0.2);
      }

      &:first-child:before {
        right: calc(100% + 15px);
      }

      &:last-child:after {
        left: calc(100% + 15px);
      }

      a {
        display: inline-block;
        color: $lightColor !important;
      }
    }
  }
  &.vertical-item .item-content {
    padding: 0;
  }
}


.format-chat {
  .entry-content {
    p {
      border: 1px solid rgba($borderColor, 0.2);
      margin-bottom: 5px;
      padding: 7px 21px;
    }
    p:nth-child(2n) {
      border: 0;
      background-color: $greyColor;
      strong {
        color: $colorMain;
      }
    }
  }
}

.format-quote {
  text-align: center;
  .avatar {
    display: block;
    max-width: 100px;
    border-radius: 50%;
    margin: 0 auto 35px;
  }
  &.cover-image {
    .entry-header > i {
      display: inline-block;
      font-size: 2em;
      margin-bottom: 0.7em;
    }
  }
  blockquote {
    max-width: 100%;
    border: none;
    font-style: italic;
    margin: 0;
    padding-bottom: 0;
    padding-left: 0;
    cite {
      display: block;
      font-style: normal;
      margin: 24px 0 0;
      font-size: 16px;
      line-height: 1.5;
      @include small-text();
    }
  }
  &.cover-image > img {
    display: none;
  }
}

.post.s-overlay.ds.bs:before {
  opacity: 0.8;
}

.image-avatar {
  border-radius: 50%;
}

.post {
  .share_buttons {
    margin-top: 30px;
    position: absolute;
    a {
      margin: 0 0 10px;
      display: block;
      color: $fontColor !important;
      &:hover {
        color: $lightColor !important;
      }
    }
    .post-share-buttons {
      margin-top: 30px;
    }
  }
  .item-media {
    overflow: visible;

  }
  &.single-post.post-share-buttons.vertical-item .item-content,
  &.single-post.post-share-buttons.vertical-item .comments-area {
    padding-left: 70px;
    @media(max-width: 991px) {
      padding-left: 44px;
    }
  }
  &.post-share-buttons.vertical-item.content-padding.post-padding .item-content {
    padding: 34px 40px 40px 70px;
    @media(min-width: 1200px) {
      padding: 63px 40px 60px 128px;
    }
  }
  &.vertical-item.content-padding.post-padding .item-content {
    padding: 54px 50px 51px 50px;
    @media(max-width: 991px) {
      padding: 34px 31px 40px;
    }
  }
}

.post.vertical-item.post-padding {
  .share_buttons {
    margin-top: 39px;
    left: 20px;
    @media(min-width: 1200px) {
      margin-top: 69px;
      left: 70px;
    }
  }
}

.single-post {
  .item-media-wrap {
    margin-bottom: 24px;
  }
}

.comments-area.post-share {
  padding-left: 100px;
}

.post .affix-aside {
  &.affix {
    top: 80px;
    @media (max-width: 991px) {
      left: 0 !important;
      position: relative !important;
      top: 0;
    }
  }
}

.isotope-wrapper.masonry-layout {
  .tagcloud {
    top: -1px;
  }
  .more-button {
    margin-top: 17px;
    margin-bottom: 5px;
  }
  .format-status.cover-image {
    overflow: hidden;
    padding: 30px;
    .social-icons {
      margin-top: 0;
      &.with-border span {
        &:first-child:before,
        &:last-child:after {
          width: 50px;
        }
      }
    }
    .entry-title {
      margin-bottom: 15px;
    }
  }
  .format-link {
    padding: 0;
    &.vertical-item.content-padding .item-content {
      padding: 34px 20px 40px;
    }
  }
  .format-quote {
    padding: 30px 20px;
    .big {
      font-size: 16px;
    }
  }
}

.post.format-quote {
  .quote-mark {
    position: static;
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .share_buttons {
    margin-top: 27px;
  }
  p.big {
    line-height: 1.2;
  }
  .small-title {
    font-weight: 700;
    margin-top: 13px;
    margin-bottom: 5px;
    @media(max-width: 767px) {
      margin-bottom: 0;
    }
  }
}

.post.single-post {
  .media {
    align-items: center;
    margin: 46px 0;
    @media (max-width: 767px) {
      margin: 36px 0;
      display: block;
      text-align: center;
    }
    .quote-image {
      margin-right: 7px;
      bottom: 10px;
    }
    h6, .text-small {
      margin-top: 28px;
      font-style: normal;
      margin-bottom: 0;
      @media (max-width: 767px) {
        margin: 0;
      }
    }
    .position:before {
      content: "|";
      font-size: 16px;
      font-weight: 400;
      margin: 0 25px 0 20px;
      @media (max-width: 767px) {
        margin: 0 10px 0 5px;
      }
    }
    .quote-body {
      padding-left: 32px;
      p {
        margin-bottom: 5px;
      }
    }
  }
  .media-body {
    margin-left: 33px;
    @media (max-width: 767px) {
      margin-left: 0;
      margin-top: 20px;
    }
    p:first-child {
      margin-top: 3px;
    }
  }
  &.format-status,
  &.format-quote {
    .affix-aside {
      display: none;
    }
    .item-content {
      padding-left: 0 !important;
    }
    .entry-meta {
      text-align: center;
    }
  }
  &.format-link,
  &.format-aside {
    background-color: transparent;
    padding: 0 !important;
    .tagcloud {
      position: static;
      span:first-child {
        margin-left: 0;
        &:before {
          display: none;
        }
      }
    }
  }
}

.video-post .post.single-post {
  .item-content {
    padding-top: 0;
  }
  .social-icon.social-buttons.affix-top {
    top: 0 !important;
  }
}

.blog-section {
  .entry-meta .byline span {
    margin: 0;
    .like-count {
      margin-right: 15px;
    }
  }
  .vertical-item.content-padding .item-content {
    padding: 25px 30px;
  }
  .entry-title {
    margin: 0 0 10px !important;
  }
  .entry-meta {
    margin-top: 25px;
    margin-bottom: 2px;
  }
}

.single-post {
  blockquote {
    max-width: 100%;
    padding: 1px 0 0 0;
    font-style: italic;
    margin: 47px 0 44px;
    @media (max-width: 767px) {
      margin: 27px 0 24px;
      text-align: center;
    }
  }
}

.more-link {
  border-radius: 50px;
  font-weight: 400;
  display: table;
  margin-top: 23px;
  padding: 7px 39px;
  border: 2px solid $colorMain2;
  &:hover {
    background-color: $colorMain2;
    color: $darkColor;
  }
}

.blog {
  .pagination {
    margin-bottom: 10px;
  }
}

.blog {
  .post:last-child {
    margin-bottom: 10px;
  }
}

.blog .post .owl-carousel {
  overflow: hidden;
}

.comment-form .comment-form-cookies-consent {
  display: none;
}

.comment-form .comment-form-comment.form-group {
  margin-bottom: 0;
}

.post .gallery .gallery-item .gallery-icon img {
  width: 100%;
}

.gallery-caption, .wp-caption {
  max-width: 100%;
}

.post.vertical-item:not(.post_format-post-format-gallery):not(.post_format-post-format-video) .item-media {
  display: inline-block;
}

.footer-menu {
  ul li {
    border: 0 !important;
  }
}

.gallery-caption, .wp-caption {
  max-width: 100% !important;
}

.post dl.wp-caption {
  display: none;
}

.rev_slider .tp-mask-wrap .gradient-text {
  @media (min-width: 1200px) {
    line-height: 43px !important;
    position: relative;
    top: -2px;
  }
}

.post.sticky .entry-title:before {
  content: "\f08d";
  font-family: "FontAwesome";
  font-size: 20px;
  margin: 0 14px 0 -27px;
  background: linear-gradient(to top, $colorMain 0%,$colorMain4 69%, $colorMain3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  top: -2px;
}

.vertical-item.grid-padding.content-padding.post {
  .item-content {
    padding: 24px;
  }
  &.format-aside, &.format-link {
    padding: 0;
  }
}

.comment-list .pingback {
  .comment-body {
    margin-left: 0;
    padding-left: 0;
  }
}

.post-item {
  .item-meta {
    padding: 10px;
  }
}

.fw-event {
  &.vertical-item.content-padding .item-content {
    padding: 24px 0 0 0;
  }
  .share_buttons {
    display: none;
  }
}

.single-post .page-links {
  margin-top: 20px;
}

form.post-password-form label {
  font-size: 0;
  margin-top: -28px;
}


.page.type-page.status-publish.hentry {
  margin-top: -7px;
}

.page-links {
  margin-top: 20px;
}

.entry-meta.post-meta {
  margin-top: 15px;
  margin-bottom: 8px;
}

ul.wp-block-gallery.alignwide.columns-4.is-cropped {
  float: left;
}

.wp-block-button__link {
  border: 2px solid;
  border-color:  #32373c;
  &:hover {
    background-color: transparent;
    color: #32373c !important;
  }
}


.is-style-outline .wp-block-button__link:hover {
  background-color: #32373c;
  color: #fff !important;
  border-color:  #32373c;
}


.wp-block-archives.wp-block-archives-dropdown {
  margin-bottom: 20px;
}

.has-large-font-size + p,
.has-large-font-size {
  line-height: 1;
}

.wp-block-table.is-style-stripes td {
  border-color: rgba(97, 114, 138, 0.2);
}

.wp-block-column blockquote {
  margin: 0;
}
