.custom-posts {
    
    margin: 0 auto;
    border-bottom: 1px solid var(--element-border-color);

}
.custom-posts a {
    color: var(--theme-text-color);
}
.custom-posts .heading {
    margin-bottom: clamp(40px, 5vw, 50px);
}

.custom-posts-content{
    padding: clamp(40px, 6vw, 60px) var(--padding-side);
}
.custom-posts-filters {
    padding: 40px var(--padding-side);
    border-bottom: 1px solid var(--element-border-color);
}
.custom-posts .post-grid a {
    display: block;
}

.custom-posts .entry-title {
    font-size: 1.125rem;
    margin-top: 0;
    font-weight: 400;
    margin-bottom: 0;
}


.custom-posts .button:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 11 12'%3E%3Cpolygon fill='%23ffffff' points='5 0 3.8 1.3 7.6 5.1 0 5.1 0 6.9 7.6 6.9 3.8 10.7 5 12 11 6 5 0'/%3E%3C/svg%3E");
    display: block;
    width: 12px;
    height: 12px;
    line-height: 0;
}

.custom-posts article {
    border-bottom: 1px solid var(--element-border-color);
    margin-bottom: 25px;
    padding-bottom: 25px;
}
.custom-posts .post-list article:last-child {
    border-bottom: none;
}
.custom-posts .post-grid-thumb {
    /* filter: grayscale(1); */
    aspect-ratio: 6/4;
    margin-bottom: 20px;
    width: 100%;
}
.custom-posts .post-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.custom-posts .post-categories {
    margin-bottom: 10px;
}
.custom-posts-filter-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}
.custom-posts-filter-buttons button {
    background: transparent;
    border: none;
    padding: 5px 0;
}
@media screen and (min-width: 768px) { 
    
}
@media screen and (min-width: 1024px) {  
    
    .custom-posts .post-layout > article:first-child {
        border-bottom: none;
    }
    .custom-posts .post-layout {
        display: flex;
        gap: 0 8%;
        flex-wrap: wrap;
    }
    .custom-posts .post-layout > article {
        flex-basis: 50%;
        border-bottom: none;
    }
    .custom-posts .post-layout.show-first-wide > article:first-child {
        flex-basis: 100%;
    }
    .custom-posts .post-layout.show-first-wide > article:first-child .post-grid-thumb {
        aspect-ratio: 7/2;
    }
    .custom-posts .post-layout > article .entry-title {
        font-size: 1.5rem;
    }
    .custom-posts .post-list {
        flex-basis: 42%;
    }
}
.elementor-element[data-element_type="container"]:has(.elementor-widget-custom-posts),
.elementor-element[data-element_type="container"] > .e-con-inner:has(.elementor-widget-custom-posts){
    padding: 0;
    max-width: 100%;
    
}

[data-elementor-type="archive"] > [data-element_type="container"]:first-child .elementor-widget-custom-posts:first-child .custom-posts-content,
[data-elementor-type="wp-page"] > [data-element_type="container"]:first-child .elementor-widget-custom-posts:first-child .custom-posts-content {
    padding-top: 0;
}