.wcf__posts-pro {
  display: flex;
  flex-direction: column;

  svg {
    width: 1em;
    height: 1em;
  }

  .wcf-posts {
    display: grid;
  }

  a {
    cursor: pointer;
    transition: all 0.3s;
  }

  p {
    margin: 0;
  }

  .play {
    display: inline-block;
    line-height: 0;
  }

  .thumb {
    line-height: 0;
    position: relative;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .play {
      --x: var(--offset-x, 50%);
      --y: var(--offset-y, 50%);
      --tx: calc(-1 * var(--x));
      --tY: calc(-1 * var(--y));
      position: absolute;
      left: var(--x);
      top: var(--y);
      transform: translate(var(--tx), var(--tY));
      z-index: 2;
    }
    a{
      height: 100%;
      width: 100%;
      display: block;
    }
  }

  .wcf-post {
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
    transition: all .5s;

    &.wcf-hide {
      transform: translateY(30px);
      opacity: 0;
    }
  }

  .wcf-post-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 1;
  }

  .wcf-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    .meta-icon {
      vertical-align: middle;
      line-height: 1;
      display: inline-block;
    }
  }

  .post-author {
    display: flex;
    align-items: center;
    gap: 8px;

    img {
      width: 30px;
      height: 30px;
      object-fit: cover;
      border-radius: 100px;
    }
  }

  .wcf-post-title a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }

  .wcf-post-title {
    &:hover .highlight {
      color: inherit !important;
    }

    .highlight {
      font-weight: 700;
    }
  }

  .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .wcf-post-link {
    font-size: 14px;
    font-weight: 500;
    position: relative;
    align-items: center;
    display: inline-flex;
    gap: 10px;

    &.right {
      i,
      svg {
        order: 15;
      }
    }

    &:hover {
      color: #1C1D20;
      fill: #1C1D20;
    }
  }

  .wcf-post-load-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #1c1d20;

    .load-more-text {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .load-more-spinner {
      position: absolute;
    }

    &[data-type="infinite_scroll"] {
      display: none;
    }
  }

  .load-more-spinner {
    opacity: 0;
    margin: 30px auto;
  }

  .post-rating {

    &.default {
      display: flex;
      align-items: center;

      .rating {
        display: flex;
        align-items: center;
      }
    }

    &.circle {
      .rating {
        width: 80px;
        height: 80px;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        border-radius: 100%;
      }

    }

  }

  &.layout-overlay {
    .thumb {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      margin-bottom: 0;
    }

    .content {
      height: 100%;
      padding: 45px;
      transition: all .3s;
    }
  }
}

// Pagination
.wcf-post-pagination {
  display: flex;

  .page-numbers {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
  }
}

.elementor-widget-wcf--posts-pro {
  &.wcf--image {
    &-effect-zoom-in,
    &-effect-zoom-out,
    &-left-move,
    &-right-move {
      img {
        transition: all 0.5s;
      }

      .thumb {
        overflow: hidden;
      }
    }

    &-effect-zoom-in {
      img {
        transform: scale(1);
      }

      .wcf-post:hover {
        .thumb img {
          transform: scale(1.1);
        }
      }
    }

    &-effect-zoom-out {
      img {
        transform: scale(1);
      }

      .wcf-post:hover {
        .thumb img {
          transform: scale(0.9);
        }
      }
    }

    &-left-move {
      img {
        transform: scale(1.1);
      }

      .wcf-post:hover {
        .thumb img {
          transform: scale(1.1) translateX(4%);
        }
      }
    }

    &-right-move {
      img {
        transform: scale(1.1);
      }

      .wcf-post:hover {
        .thumb img {
          transform: scale(1.1) translateX(-4%);
        }
      }
    }
  }
}

// Feature Post
.wcf__feature-posts {

  svg {
    width: 1em;
    height: 1em;
  }

  .play {
    display: inline-block;
    line-height: 0;
  }

  .thumb {
    line-height: 0;
    position: relative;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .play {
      --x: var(--offset-x, 50%);
      --y: var(--offset-y, 50%);
      --tx: calc(-1 * var(--x));
      --tY: calc(-1 * var(--y));
      position: absolute;
      left: var(--x);
      top: var(--y);
      transform: translate(var(--tx), var(--tY));
      z-index: 2;
    }
  }

  .wcf-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    .meta-icon {
      vertical-align: middle;
      line-height: 1;
      display: inline-block;
    }
  }

  .post-author {
    display: flex;
    align-items: center;
    gap: 8px;

    img {
      width: 30px;
      height: 30px;
      object-fit: cover;
      border-radius: 100px;
    }
  }

  .wcf-post-title a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }

  .wcf-post-title {
    &:hover .highlight {
      color: inherit !important;
    }

    .highlight {
      font-weight: 700;
    }
  }

  .wcf-post-taxonomy {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 1;
  }

  .wcf-post-link {
    font-size: 14px;
    font-weight: 500;
    position: relative;
    align-items: center;
    display: inline-flex;
    gap: 10px;

    &.right {
      i,
      svg {
        order: 15;
      }
    }

    &:hover {
      color: #1C1D20;
      fill: #1C1D20;
    }
  }

  .post-banner {
    display: none;
    background: #f5f5f5;
    height: 495px;

    .thumb {
      display: none;
      height: 100%;
      width: 100%;
    }

    .thumb.active {
      display: block;
    }
  }

  .post-tabs {
    position: relative;

    .tabs-wrap {
      background: #121212;
      width: 100%;
      display: flex;
      flex-direction: column;
      padding: 10px 0;
    }

    .wcf-post {
      flex: 1;
      padding: 30px;

      &:not(:last-child) {
        border-bottom: 1px solid #FFFFFF19;
      }
    }
  }

  .post-grid {
    flex: 1;
    display: flex;
    gap: 60px;
    overflow: hidden;
    flex-direction: column;
    margin-top: 30px;

    .wcf-post {
      position: relative;
      flex: 1;

      &:not(:last-child):after {
        content: "";
        background: #1212121A;
        display: block;
        position: absolute;
        width: 100%;
        height: 1px;
        left: 0;
        bottom: -30px;
      }
    }
  }

  @media (min-width: 992px) {
    .post-banner {
      display: block;
    }
    .post-wrapper {
      display: flex;
    }

    .post-tabs {
      width: var(--tabs-width, 330px);

      .tabs-wrap {
        position: absolute;
        min-height: 100%;
        bottom: 0;
      }

      .thumb {
        display: none;
      }
    }

    .post-grid {
      flex-direction: row;
      margin-left: 30px;

      .wcf-post:after {
        left: auto !important;
        bottom: auto !important;
        width: 1px !important;
        height: 100% !important;
        right: -30px;
        top: 0;
      }
    }
  }
}

// Banner Post
.wcf__banner-posts {
  svg {
    width: 1em;
    height: 1em;
  }

  .post-wrapper {
    gap: 15px;
    display: flex;
  }

  .thumb {
    line-height: 0;
    position: relative;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .play {
      --x: var(--offset-x, 50%);
      --y: var(--offset-y, 50%);
      --tx: calc(-1 * var(--x));
      --tY: calc(-1 * var(--y));
      position: absolute;
      left: var(--x);
      top: var(--y);
      transform: translate(var(--tx), var(--tY));
      z-index: 2;
    }
  }

}

.wcf--popup-video .audio {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  height: 100%;
  width: 100%;

  audio {
    width: 100%;
    max-width: 1000px;
  }
}

// Overlay two

.wcf__posts-pro {
  .layout-overlay-2 {
    .thumb {
      overflow: hidden;
      position: relative;

      .play {
        position: absolute;
        left: 50%;
        top: 50%;
      }

      img {
        width: 100%;
        height: auto;
      }
    }

    .content {
      margin: 0 auto;
      margin-top: -120px;
      position: relative;
      z-index: 1;
      text-align: center;
      background-color: #fff;
      padding: 20px;
      width: 80%;
    }

    .wcf-post-taxonomy {
      a {
        position: relative;

        &:first-child::before,
        &:last-child::after {
          position: absolute;
          content: "";
          width: 30px;
          height: 1px;
          top: 50%;
          background-color: #222;
        }

        &:first-child::before {
          left: -45px;
        }

        &:last-child::after {
          right: -45px;
        }
      }

    }

    .wcf-post-meta,
    .wcf-post-title {
      margin-top: 12px;
      margin-bottom: 12px;
    }
  }

  .wcf-post-link {
    font-size: 14px;
    font-weight: 500;
    position: relative;
    align-items: center;
    display: inline-flex;
    gap: 10px;

    &.right {
      i,
      svg {
        order: 15;
      }
    }

    &:hover {
      color: #1C1D20;
      fill: #1C1D20;
    }
  }

  &.layout-gallery {

    .gallery-wrapper {
      .g-thumb {
        height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #0a0a0a;
        margin: 0 auto;

        iframe,
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }

    &-2 {
      position: relative;

      .gallery-wrapper * {
        height: 100%;
      }

      .thumb {
        width: 150px;
        height: 120px;
        position: relative;
        cursor: pointer;

        &:hover {
          .icon {
            opacity: 1;
          }
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .icon {
          font-size: 50px;
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          opacity: 0;
          transition: all 0.3s;
        }
      }

      .g-thumb {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .content {
        position: relative;
        z-index: 1;
        padding-top: 150px;
        padding-bottom: 350px;
        text-align: center;
        background-color: #FFFFFFD1;
      }

      .slider-wrapper.wcf__posts-slider {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;

        .swiper-slide-active {
          .icon {
            opacity: 1;
          }
        }
      }

    }
  }

  &.layout-audio {
    .audio-thumb {
      margin-bottom: 20px;
    }

    .audio-duration-wrapper {
      gap: 3px;
      display: flex;
      align-items: center;
      height: 100%;
      line-height: 1;
    }

    .pause-icon {
      display: none;
    }

    .audio-icon {
      height: 100%;
      cursor: pointer;
      background: #CE0000;
      color: #fff;
      fill: #fff;
      padding: 1px 4px;
      line-height: 1;
      font-size: 16px;
    }

    .audio-duration {
      height: 100%;
      font-size: 14px;
      color: #fff;
      background: #222;
      padding: 1px 6px;
    }
  }
}

// posts default style 
.wcf__posts-pro .thumb {
  margin-bottom: 10px;
}

.wcf__posts-pro .wcf-post-taxonomy {
  margin-bottom: 5px;
}

.wcf__posts-pro .wcf-post-title {
  margin-bottom: 10px;
}

.wcf__posts-pro .wcf-post-excerpt {
  margin-bottom: 15px;
}

.wcf__posts-pro .wcf-post-meta {
  margin-bottom: 25px;
}

.wcf__posts-pro .wcf-post-link {
  background-color: #789454;
  padding: 10px 30px;
}

.wcf--title-underline {
  .wcf-post-title a {
    display: inline;
    background-image: linear-gradient(var(--underline-color, #111), var(--underline-color, #111));
    background-repeat: no-repeat;
    background-size: 0 var(--underline-thickness, 1px);
    background-position: 0 100%;
    text-decoration: none;
    transition: all var(--underline-transition, 0.5s);

    &:hover {
      background-size: 100% var(--underline-thickness, 1px);
    }
  }
}

@keyframes tax-hover-effect {
  0% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0.2);
  }
}

@keyframes tax-no-hover-effect {
  0% {
    transform: scaleX(0.2);
  }
  100% {
    transform: scaleX(1);
  }
}

.wcf--taxonomy-underline {
  .wcf-post-taxonomy a {
    display: inline-block;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: var(--tax-btm-position, -3px);
      width: 100%;
      height: var(--tax-ul-thickness, 1px);
      background-color: var(--tax-ul-color, #111);
      transform: scaleX(1);
      transform-origin: right;
      transition: all var(--tax-ul-transition, 0.5s);
    }

    &:hover::after {
      animation: tax-hover-effect var(--tax-ul-transition, 0.5s) forwards;
    }

    &:not(:hover)::after {
      animation: tax-no-hover-effect var(--tax-ul-transition, 0.5s) forwards;
    }
  }
}
