.omt-post-list {
    padding: var(--wp--preset--spacing--80, 64px) 0;
}

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

.omt-post-list__columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--preset--spacing--30, 24px);
    margin-bottom: var(--wp--preset--spacing--70, 56px);
}

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

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

.omt-post-list__head-columns {
    display: flex;
    gap: var(--wp--preset--spacing--50, 40px);
    align-items: center;
    margin-bottom: var(--wp--preset--spacing--50, 40px);
    justify-content: center;
    text-align: center;
}

.omt-post-list .omt-post-list__title {
    margin-bottom: var(--wp--preset--spacing--30, 24px);
}

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

.omt-post-list__column-title.has-h-4-font-size {
    line-height: 30px;
}

.omt-post-list__column {
    display: grid;
    grid-template-columns: auto;
    gap: var(--wp--preset--spacing--20, 16px);
}

.omt-post-list__column-picture-holder {
    display: inline-block;
    transition: 0.3s;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    position: relative;
}

.omt-post-list__column-picture-holder img {
    transition: 0.3s;
    transform: scale(1);
    display: block;
    width: 100%;
    max-height: 213px;
    object-fit: cover;
}

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

.omt-post-list__column-title {
    padding-bottom: var(--wp--preset--spacing--10, 12px);
    color: var(--wp--preset--color--neutral-900, #191919);
}

.omt-post-list__column-title a {
    font-size: var(--wp--preset--font-size--h-5, 24px);
    line-height: var(--wp--preset--font-size--h-4, 32px);
    color: var(--wp--preset--color--neutral-900, #191919);
}

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

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

.omt-post-list__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.omt-post-list__pagination a,
.omt-post-list__pagination span.page-numbers.current {
    transition: 400ms;
    color: var(--wp--preset--color--contrast, #000000);
    width: 40px;
    height: 40px;
    border-bottom: 3px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 100%;
}

.omt-post-list__pagination span.page-numbers.current,
.omt-post-list__pagination a:hover {
    color: var(--wp--preset--color--primary-500, #404040);
}

.omt-post-list__pagination a:hover {
    border-color: var(--wp--preset--color--primary-500, #404040);
}

.omt-post-list__pagination span.page-numbers.current {
    border-color: var(--wp--preset--color--primary-500, #404040);
}

.omt-post-list__pagination .page-numbers.next {
    margin-left: var(--wp--preset--spacing--20, 16px);
}

.omt-post-list__pagination .page-numbers.prev {
    margin-right: var(--wp--preset--spacing--20, 16px);
}

.omt-post-list__pagination .page-numbers.next:hover,
.omt-post-list__pagination .page-numbers.prev:hover {
    border-color: transparent;
}

.omt-post-list__pagination .page-numbers.next::after {
    content: '';
    mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"%3E%3Cpath d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"/%3E%3C/svg%3E');
    width: 26px;
    height: 26px;
    mask-size: 20px;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: currentColor;
    transform: rotate(180deg);
}

.omt-post-list__pagination .page-numbers.prev::after {
    content: '';
    mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"%3E%3Cpath d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"/%3E%3C/svg%3E');
    width: 26px;
    height: 26px;
    mask-size: 20px;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: currentColor;

}

.omt-post-list__pagination .page-numbers.prev:hover, .omt-post-list__pagination .page-numbers.next:hover {
    color: var(--wp--preset--color--primary-500, #0099CD);
}

.omt-post-list__tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--tag-bg-color);
    color: var(--wp--preset--color--neutral-900, #191919);
    margin: 0 var(--wp--preset--spacing--10, 12px) var(--wp--preset--spacing--10, 12px) 0;
    font-size: var(--wp--preset--font-size--small, 16px);
    line-height: var(--wp--preset--font-size--x-large, 24px);
}

.omt-post-list__tag:hover,
.omt-post-list__tag-current {
    background-color: var(--wp--preset--color--primary-500, #0099CD);
    color: var(--wp--preset--color--base, #ffffff);
}

.omt-post-list__tag-current {
    background-color: var(--tag-bg-color);
}

.omt-post-list__column-tag-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--10, 12px);
    margin-bottom: var(--wp--preset--spacing--20, 16px);
}

.omt-post-list__column-tab a {
    display: inline-block;
    padding: 4px 8px;
    background: var(--wp--preset--color--neutral-100, #F2F2F2);
    color: var(--wp--preset--color--contrast, #000000);
    font-size: var(--wp--preset--font-size--small, 16px);
    line-height: var(--wp--preset--font-size--x-large, 24px);
    letter-spacing: 0.2px;
}

.omt-post-list__column-cta a {
    color: var(--wp--preset--color--neutral-700, #404040);
    text-transform: uppercase;
    margin-top: var(--wp--preset--spacing--30, 24px);
    display: inline-block;
    font-weight: 700;
}

.omt-post-list__column-cta::after {
    content: '';
    width: 30px;
    height: 13px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"></path></svg>');
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: 5px;
}

.omt-post-list__column-cta {
    position: relative;
}

.omt-post-list__categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--10, 12px);
    width: 100%;
    margin-bottom: var(--wp--preset--spacing--70, 56px);
    border-top: 1px solid var(--wp--preset--color--neutral-500, #666);
    border-bottom: 1px solid var(--wp--preset--color--neutral-500, #666);
    padding: var(--wp--preset--spacing--10, 12px) 0;
}

.omt-post-list__button-category {
    display: inline-block;
    text-decoration: none;
    padding: 8px var(--wp--preset--spacing--20, 16px);
    color: var(--wp--preset--color--contrast, #000000);
    background-color: var(--wp--preset--color--neutral-100, #F2F2F2);
    font-size: var(--wp--preset--font-size--small, 16px);
    line-height: var(--wp--preset--font-size--x-large, 24px);
    border-radius: 50px;
    text-transform: uppercase;
}

.omt-post-list__button-category:hover,
.omt-post-list__button-category-active {
    background-color: var(--wp--preset--color--contrast, #000000);
    color: var(--wp--preset--color--base, #ffffff);
}


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

    .omt-post-list__pagination a,
    .omt-post-list__pagination span.page-numbers.current {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .omt-post-list__pagination .page-numbers.next {
        margin-left: var(--wp--preset--spacing--10, 12px);
    }

    .omt-post-list__pagination .page-numbers.prev {
        margin-left: var(--wp--preset--spacing--10, 12px);
    }

    .omt-post-list__column-title a {
        font-size: var(--wp--preset--font-size--h-4, 20px);
        line-height: var(--wp--preset--font-size--h-3, 28px);
    }

    .omt-post-list__columns {
        gap: var(--wp--preset--spacing--50, 24px);
    }
}

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

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

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


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

}