.filter.js--current {
  background-color: var(--light-grey-hover);
  color: var(--text-color-100)
}

.blog-post__heading:not(.blog-post__heading--large),
.blog-post__description {
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-post__heading.blog-post__heading--large {
  -webkit-line-clamp: 4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-post__info--offset-bottom {
  .author {
    opacity: 0;
  }
}

.blog-post__inner:hover,
.blog-post__inner:focus-visible {
  .blog-post__info {
    transform: translateY(-3.5rem);
  }
  .author {
    opacity: 1;
  }
}

/* pagination */
.blog-posts__pagination a {
  text-decoration: none;
}

.blog-post {
  &.js--disabled, &.js--disabled-by-filter {
    display: none;
  }
}

.pagination-container {
  & .js--pagination-button {
    text-decoration: none;
    background-color: #ffffff00;
    padding: 4px 8px;
    font-size: 1rem;
    color: #000b1c;
    transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, color 0.3s ease;

    &:first-child,
    &:last-child {
      padding-left: 1.25rem;
      padding-right: 1.25rem;

      &:not([disabled="true"]):hover {
        opacity: 0.8;
      }
    }

    &:not(:first-child, :last-child) {
      height: 2.5rem;
      min-width: 2.5rem;
      border: 1px solid #e6e7e8;
      background-color: #000b1c1a;
      border-right: 0;
      border-left: 0;
    }
    &:not(:first-child, :last-child, .js--pagination-empty-place, .js--pagination-current) {
      &:hover {
        background-color: rgba(#000B1C, 0.2);
      }
    }
    &:nth-child(2) {
      border-left: 1px solid #e6e7e8;
      border-radius: 5px 0 0 5px;
    }
    &:nth-last-child(2) {
      border-radius: 0 5px 5px 0;
      border-right: 1px solid #e6e7e8;
    }
    &:not(:first-child, :last-child).js--pagination-current {
      background-color: #000b1c;
      color: #ffffff;
      border-color: #000b1c;
    }
    &[disabled="true"].js--pagination-empty-place,
    &[disabled="true"]:not(.js--pagination-current) {
      color: #000b1c80;
    }

    @media screen and (max-width: 467px) {
      &:not(.js--pagination-current, .js--next, .js--prev, :first-child, :last-child) {
        display: none;
      }
      &.js--next {
        border-radius: 0 5px 5px 0;
      }
      &.js--prev {
        border-radius: 5px 0 0 5px;
      }
    }
  }
  & .js--pagination-empty-place + .js--pagination-empty-place {
    display: none;
  }
}
