/* ===========
GUTENBERG BLOCK - POST LIST 
============== */

.posts.posts-list {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 30px 1fr 30px 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    row-gap: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-lazyblock-posts-list {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}
/* ARTICLE */

.posts-list .article:hover {
    -webkit-box-shadow: 1px 4px 6px 4px #0000003d;
    box-shadow: 1px 4px 6px 4px #0000003d;
}

.article > a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.article-content {
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

body.single-support .related-posts .article-content {
    background-color: white !important;
}

.article-content-inner {
    padding: 30px;

    width: 100%;
}

body:not(.single) .article-content-inner p {
    text-decoration: none;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.article-content-inner {
    margin-bottom: 0;
}

.posts-list-wrapper .article.article--support .article-content-inner > *,
.posts-list-wrapper .article.article--support .article-content-inner {
    margin-bottom: 0 !important;
    text-align: left;
}

.swiper-wrapper .article.article--support .article-content-inner,
.swiper-wrapper .article.article--support .article-content-inner > * {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.posts.posts-list .article.article--support .article-content-inner {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 100px;
}

.posts.posts-list .article.article--support .article-content {
    border-radius: 15px;
    border-top-left-radius: 0px;
}

.posts.posts-list .article.article--support:hover .article-content {
    -webkit-box-shadow: 1px 4px 6px 4px #0000003d;
    box-shadow: 1px 4px 6px 4px #0000003d;
}

.posts.posts-list .article.article--support .article-content-inner h3 {
    font-size: calc(var(--clamp-scale-1) * 18);
}

.posts-list-wrapper:has(.article.article--support) {
    flex: 1;
}

#ContentCategory .posts.posts-list:has(.article.article--support) {
    flex-direction: column;
    display: flex;
    gap: 10px;
}

#ContentCategory .posts.posts-list:has(.article.article--support) .article {
    max-width: 100%;
    box-shadow: none !important;
}

.posts.posts-list:has(.article.article--support) .button {
    display: none !important;
}

.pagination:not(:has(*)) {
    display: none !important;
}

/* .article-content h3 {
  margin-bottom: 0;
} */

.article-metas {
    margin-bottom: 20px;
    color: grey;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.article-metas a:hover {
    text-decoration: underline;
}

.article-button {
    /* clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%); */
    /* padding-right: 60px; */
    position: absolute;
    left: 0;
    bottom: -10px;
    bottom: 0;
    -webkit-transform: translateY(50%);
    -ms-transform: translateY(50%);
    transform: translateY(50%);
    width: 75%;
}

.article-button:hover {
    -webkit-transform: scale(1.05) translateY(50%) !important;
    -ms-transform: scale(1.05) translateY(50%) !important;
    transform: scale(1.05) translateY(50%) !important;
}

.article-button {
    margin-top: 0px;
}

.article-image-wrapper {
    height: 320px;
}

.article-image-wrapper .article-image {
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center center;
    object-position: center center;
    width: 100%;
    height: 100%;
    background: var(--color-3);
}

article.type-post .article-button {
    background: var(--color-4);
}

/* products */

.post-list-products article {
    -webkit-transition: background 0.4s;
    -o-transition: background 0.4s;
    transition: background 0.4s;
}

.posts.posts-list {
    -webkit-column-gap: 38px;
    -moz-column-gap: 38px;
    column-gap: 38px;
    row-gap: 70px;
}

.single-wiki .related-posts .article-content .button,
.post-list-wiki article .button,
.single-products .related-posts .article-content .button,
.wp-block-lazyblock-posts-list .post-list-products article .article-content .button {
    background-color: var(--color-1);
    color: white;
}

.icon,
article .article-icon {
    font-size: 2.5em;
    display: block1;
    margin-bottom: 15px;
}

.article-single-outer .article-icon {
    font-size: 3em;
}

.icon,
.article-icon i {
    line-height: normal;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--color-1);
}

.style-color-white .icon {
    color: white;
}

/* .post-list-products article:hover .button {
  background-color: #d53425;
  color: white;
} */

/* WIKI 

.post-wiki-filter-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-left: -3px;
  margin-right: -3px;
  margin-top: -3px;
}
.post-wiki-filter-letter {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3px;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  border: 1px solid #616160;
}

.post-wiki-filter-letter.disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
  border: 0;
}

.post-wiki-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  display: block;
  width: 100%;
  display: flex;
  align-items: flex-start;
  border-bottom: 2px solid #ededed;
  padding-bottom: 30px;
}
div.posts-list.post-list-wiki .article-button {
  color: #ffff;
  background-color: #d53425;
}

div.posts-list.post-list-wiki {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}*/

/* search form */

.wp-block-lazyblock-posts-list > .search-form {
    margin-bottom: 30px;
}

.wp-block-lazyblock-posts-list > .search-form input[type="submit"] {
    margin-left: 10px;
}

/* CATEGORIES */

.post-list-categories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -5px;
}

.post-list-categories .post-list-category {
    margin: 5px;
}

body.page-type-wiki .post-list-categories .post-list-category {
    width: auto !important;
}

@media screen and (max-width: 1024px) {
    .posts.posts-list {
        -ms-grid-columns: 1fr 30px 1fr;
        grid-template-columns: 1fr 1fr;
        -webkit-column-gap: 30px;
        -moz-column-gap: 30px;
        column-gap: 30px;
        row-gap: 50px;
    }
}

@media screen and (max-width: 920px) {
    .article-content {
        -webkit-box-flex: 0;
        -ms-flex: 0;
        flex: 0;
    }

    .swiper-container .swiper-slide,
    .article > a {
        height: auto;
    }

    #ContentCategory .posts.posts-list,
    .posts.posts-list {
        -ms-grid-columns: 100%;
        grid-template-columns: 100%;
        -webkit-column-gap: 0px;
        -moz-column-gap: 0px;
        column-gap: 0px;
        row-gap: 70px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .posts.posts-list.swiper-container {
        display: block;
    }

    .posts.posts-list.swiper-container .swiper-slide,
    .posts.posts-list.swiper-container .article > a {
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .wp-block-lazyblock-posts-list > .search-form {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .wp-block-lazyblock-posts-list > .search-form input {
        width: 100%;
    }

    .wp-block-lazyblock-posts-list > .search-form input[type="submit"] {
        margin-left: 0;
    }
}

@media screen and (max-width: 560px) {
    .article-image-wrapper {
        max-height: 250px;
    }

    .posts.posts-list .swiper-pagination.swiper-pagination-bullets {
        bottom: 6px;
    }

    .post-list-categories {
        margin-bottom: 30px !important;
    }

    /* .posts-list:not(.swiper-container) {
    margin-bottom: 70px !important;
  } */

    #ContentCategory .posts.posts-list,
    .posts.posts-list {
        row-gap: 50px;
    }

    body.archive .sidebar {
        margin-top: 50px;

        padding: 0 !important;
    }

    body.tax-support-category .sidebar {
        padding: 0 !important;
    }

    body.tax-support-category #ContentCategory .posts.posts-list {
        margin-bottom: 40px !important;
    }
}
