#list-last-posts {
    scroll-margin-top: var(--wp--preset--spacing--70);
}

.ruth2m-post-list h1,
.ruth2m-post-list h2,
.ruth2m-post-list h3,
.ruth2m-post-list h4,
.ruth2m-post-list h5,
.ruth2m-post-list h6 {
    margin: 0;
}

.ruth2m-post-list__columns {
    display: grid;
    grid-template-columns: repeat(var(--ruth2m-last-posts--column-count, 3), 1fr);
    gap: var(--wp--preset--spacing--50);
    margin-bottom: var(--wp--preset--spacing--70);
}

.ruth2m-post-list__columns[data-columns="2"] {
    --ruth2m-last-posts--column-count: 2;
}

.ruth2m-post-list__columns[data-columns="3"] {
    --ruth2m-last-posts--column-count: 3;
}

.ruth2m-post-list__columns[data-columns="4"] {
    --ruth2m-last-posts--column-count: 4;
}

.ruth2m-post-list__head-columns {
    display: flex;
    gap: var(--wp--preset--spacing--50);
    align-items: center;
    padding: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--20) 0;
    margin-bottom: var(--wp--preset--spacing--50);
    justify-content: space-between;
}

.ruth2m-post-list__head-column--cta {
    display: none;
}

.ruth2m-post-list__columns {
    display: grid;
    gap: 20px;
    margin-bottom: var(--wp--preset--spacing--70);
}

.ruth2m-post-list__column {
    display: grid;
    grid-template-columns: auto;
    gap: var(--gap);
    border-bottom: 1px solid var(--wp--preset--color--neutral-700, #404040);
    padding-bottom: var(--gap);
    background-color: var(--wp--preset--color--base, #fff);
    box-shadow: 1px 1px 13px 3px #e9e9e9;
}

.ruth2m-post-list__column--radius-soft {
    border-radius: 8px;
    overflow: hidden;
}

.ruth2m-post-list__column--radius-round {
    border-radius: 20px;
    overflow: hidden;
}

.ruth2m-post-list__column-media {
    text-align: center;
}

.ruth2m-post-list__column-picture-holder {
    display: block;
    transition: all 0.5s;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    position: relative;
}

.ruth2m-post-list__column-picture-holder img {
    transition: all 0.5s;
    transform: scale(1.1);
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.ruth2m-post-list__column-picture-link:hover img {
    transform: scale(1);
}

.ruth2m-post-list__column-title {
    padding-bottom: var(--wp--preset--spacing--10);
    margin-bottom: var(--wp--preset--spacing--10);

}

.ruth2m-post-list__column-title a {
    color: var(--wp--preset--color--neutral-900, #00394C);
    font-size: clamp(1.25rem, 1.071rem + 0.476vw, 1.5rem);
}

.ruth2m-post-list__column-title a:hover {
    color: var(--wp--preset--color--secondary-500, #d6a77a);
}

.ruth2m-post-list__column-body {
    display: none;
    padding-bottom: var(--wp--preset--spacing--10);
}

.ruth2m-post-list__cta-link:only-child {
    margin-right: 0;
}

.ruth2m-post-list__extra-text {
    text-align: center;
    margin-top: var(--wp--preset--spacing--50);
}

.ruth2m-post-list__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--wp--preset--spacing--50);
}

.ruth2m-post-list__pagination a,
.ruth2m-post-list__pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--wp--preset--color--primary-500, #2f6b4f);
    color: var(--wp--preset--color--primary-500, #2f6b4f);
    background-color: transparent;
    font-family: var(--font--body, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s;
}

.ruth2m-post-list__pagination a:hover {
    background-color: var(--wp--preset--color--primary-500, #2f6b4f);
    color: var(--wp--preset--color--base, #fff);
}

.ruth2m-post-list__pagination span.page-numbers.current {
    background-color: var(--wp--preset--color--primary-500, #2f6b4f);
    color: var(--wp--preset--color--base, #fff);
}

.ruth2m-post-list__pagination .page-numbers.next,
.ruth2m-post-list__pagination .page-numbers.prev {
    border: none;
    width: auto;
    padding: 0 4px;
    color: var(--wp--preset--color--primary-500, #2f6b4f);
    background-color: transparent;
    font-size: 20px;
    font-weight: 400;
}

.ruth2m-post-list__pagination .page-numbers.next:hover,
.ruth2m-post-list__pagination .page-numbers.prev:hover {
    background-color: transparent;
    color: var(--wp--preset--color--primary-500, #2f6b4f);
    opacity: 0.7;
}

.ruth2m-post-list__pagination .page-numbers.next::after {
    content: '→';
}

.ruth2m-post-list__pagination .page-numbers.prev::before {
    content: '←';
}

.ruth2m-post-list__tag {
    display: inline-block;
    padding: 0 8px 4px 8px;
    border: 1px solid var(--wp--preset--color--contrast, #000);
    position: relative;
    border-color: var(--primary-color, var(--wp--preset--color--primary-500, #2f6b4f));
    background-color: var(--primary-color, var(--wp--preset--color--primary-500, #2f6b4f));
    color: var(--wp--preset--color--base, #FFFFFF);
    margin: 4px 4px 4px 0;
    padding: 5px 8px 5px 8px;
    font-size: 12px;
    border-radius: 120px;
}

.ruth2m-post-list__tag:hover,
.ruth2m-post-list__tag-current {
    border: 1px solid var(--wp--preset--color--secondary-500, #d6a77a);
    background-color: var(--wp--preset--color--secondary-500, #d6a77a);
    color: var(--wp--preset--color--base, #FFFFFF);
}

.ruth2m-post-list__title {
    font-size: clamp(1.625rem, 1.219rem + 2.031vw, 3.25rem);
    line-height: 1;
}

.ruth2m-posts__search-group {
    width: 100%;
    max-width: 280px;
    background: var(--wp--preset--color--neutral-100, #F2F2F2);
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-left: auto;
    border-radius: 30px;
}

.ruth2m-posts__search-group .ruth2m-posts__search-input {
    height: 52px;
    border: 0;
    background: transparent;
    width: 100%;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

.ruth2m-posts__search-group .ruth2m-posts__search-input::placeholder {
    color: var(--wp--preset--color--neutral-500);
}

.ruth2m-post-list__column-tag-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 575px) {
    .ruth2m-post-list__pagination {
        gap: 5px;
    }

    .ruth2m-post-list__pagination a,
    .ruth2m-post-list__pagination span.page-numbers {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

.ruth2m-post-list__categories {
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin-bottom: var(--wp--preset--spacing--50);
    display: none;
}

.ruth2m-post-list__button-category {
    display: inline-block;
    text-decoration: none;
    transition: color all 0.5s, border-color all 0.5s, background-color all 0.5s;
    padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
    color: var(--wp--preset--color--neutral-900, #00394C);
    border: 1px solid var(--wp--preset--color--neutral-900, #00394C);
    font-size: 16px;
    line-height: 20px;
    border-radius: 120px;
}

.ruth2m-post-list__button-category:hover,
.ruth2m-post-list__button-category-active {
    background-color: var(--wp--preset--color--primary-500, #d6a77a);
    color: var(--wp--preset--color--base, #fff);
    border: 1px solid var(--wp--preset--color--primary-500, #d6a77a);
}

.ruth2m-post-list__category-movil {
    width: 100%;
    margin-bottom: var(--wp--preset--spacing--50);
    padding: 0px var(--wp--preset--spacing--20);
    border: 1px solid var(--wp--preset--color--base, #fff);
}

.ruth2m-post-list__select-category-movil {
    display: block;
    width: 100%;
    border: 0px;
    padding: var(--wp--preset--spacing--10) 0;
}

.ruth2m-posts__search-icon {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.ruth2m-post-list__search {
    width: 280px;
}

.ruth2m-post-list__column-text {
    padding: 0 20px 20px;
}

.ruth2m-post-list__style-three .ruth2m-post-list__columns {
    grid-template-columns: repeat(1, 1fr);
}

.ruth2m-post-list__style-three .ruth2m-post-list__column {
    display: flex;
}

.ruth2m-post-list__style-three .ruth2m-post-list__column-media {
    width: 33.33%;
}

.ruth2m-post-list__style-three .ruth2m-post-list__column-text {
    width: 66.66%;
}

.ruth2m-post-list__column-body p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.ruth2m-post-list__column-cta a::after {
    content: '→';
}

@media (min-width: 970px) {
    .ruth2m-post-list__select-category-movil {
        display: none;
    }

    .ruth2m-post-list__categories {
        display: flex;
    }
}

@media (min-width: 1100px) {
    .ruth2m-last-posts--has-terms {
        padding-bottom: var(--wp--preset--spacing--50);
    }

    .ruth2m-post-list__columns {
        display: grid;
        grid-template-columns: repeat(var(--ruth2m-last-posts--column-count, 3), 1fr);
        gap: 40px;
        align-items: start;
    }

    .ruth2m-post-list__column {
        grid-template-columns: auto;
        gap: 16px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .ruth2m-post-list__head-column--cta .ruth2m-post-list__cta {
        display: block;
        text-align: right;
    }

    .ruth2m-post-list__column-media {
        padding-bottom: var(--wp--preset--spacing--s);
    }

    .ruth2m-post-list__column-picture-holder {
        position: inherit;
    }

    .ruth2m-post-list__column-picture-holder img {
        position: inherit;
    }

    .ruth2m-post-list__column-body {
        display: block;
    }

    .ruth2m-post-list__category-movil {
        display: none;
    }
}

@media (max-width:992px) {
    .ruth2m-post-list__head-columns {
        flex-direction: column;
    }

    .ruth2m-post-list__search {
        width: 100%;
    }

    .ruth2m-posts__search-group {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width:767px) {
    .ruth2m-post-list__column-picture-holder img {
        height: 200px;
    }
}

@media (max-width:575px) {
    .ruth2m-post-list__columns {
        grid-template-columns: repeat(1, 1fr);
    }
}