.ltg-posts-title {
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.ltg-posts-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.ltg-posts-filters,
.ltg-posts-btn-wrap {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ltg-posts-buttons .btn {
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: nowrap;
}

.ltg-posts-buttons .btn.active {
    border-color: var(--ltg-color-primary);
    background-color: var(--ltg-color-primary);
    color: #ffffff;
}

.ltg-posts-list {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.ltg-posts-list > * {
    grid-column: span 12;
}

.ltg-posts-list.stretch-first > :first-child {
    grid-column: span 12;
}

.ltg-posts .ltg-card-simple {
    display: block;
}

.ltg-posts .ltg-card-img-wrap {
    position: relative;
    display: block;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 1rem;
}

.ltg-posts .ltg-card-img-wrap::before {
    display: block;
    padding-bottom: 65%;
    content: "";
}

.ltg-posts .ltg-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ltg-news-card-placeholder {
    display: block;
    background: #f4f5f8;
}

.ltg-posts .ltg-card-meta {
    margin-bottom: 0.5rem;
    color: #707070;
    font-size: 0.875rem;
}

.ltg-posts .ltg-card-title {
    margin: 0;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.ltg-posts a.ltg-card-title:hover {
    color: var(--ltg-color-primary);
}

.ltg-card-icon-wrap {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.ltg-card-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
}

.ltg-card-icon.type-primary {
    background: var(--ltg-color-primary);
    color: #ffffff;
}

.ltg-news-hero-item {
    margin-bottom: 2rem;
}

.ltg-news-archive {
    position: relative;
    flex: 0 0 auto;
}

.ltg-news-archive summary {
    list-style: none;
    cursor: pointer;
}

.ltg-news-archive summary::-webkit-details-marker {
    display: none;
}

.ltg-news-archive-menu {
    position: absolute;
    z-index: 10;
    top: calc(100% + 0.25rem);
    right: 0;
    min-width: 8rem;
    padding: 0.5rem;
    border: 1px solid #d0d3d4;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
}

.ltg-news-archive-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.35rem;
    color: #000000;
    text-decoration: none;
}

.ltg-news-archive-link:hover,
.ltg-news-archive-link.active {
    background: var(--ltg-color-primary);
    color: #ffffff;
}

.ltg-posts-paginator-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem 0.5rem;
}

.ltg-list-pagination-btn,
.ltg-posts-ellipsis {
    padding: 0.5rem;
    border: 0;
    background: transparent;
    color: #707070;
    font-weight: 600;
    text-decoration: none;
}

.ltg-list-pagination-btn.active {
    color: #000000;
}

.ltg-posts-empty {
    margin: 2rem 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}

html.ltg-a11y-illustrations-false .ltg-posts .ltg-card-img-wrap {
    background-color: #f4f5f8;
}

html.ltg-a11y-contrast-true .ltg-posts .ltg-card-title,
html.ltg-a11y-contrast-true .ltg-posts .ltg-card-meta {
    color: #ffffff;
}

html.ltg-a11y-contrast-true .ltg-news-archive-menu {
    border-color: #ffffff;
    background: #000000;
}

html.ltg-a11y-contrast-true .ltg-news-archive-link,
html.ltg-a11y-contrast-true .ltg-list-pagination-btn,
html.ltg-a11y-contrast-true .ltg-posts-ellipsis {
    color: aqua;
}

html.ltg-a11y-contrast-true .ltg-news-archive-link:hover,
html.ltg-a11y-contrast-true .ltg-news-archive-link.active,
html.ltg-a11y-contrast-true .ltg-list-pagination-btn.active {
    background: aqua;
    color: #000000;
}

@media screen and (min-width: 768px) {
    .ltg-posts-buttons {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }

    .ltg-posts-list > * {
        grid-column: span 6;
    }

    .ltg-news-hero-item .ltg-card-simple {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        column-gap: 1rem;
    }

    .ltg-news-hero-item .ltg-card-img-wrap {
        grid-row: span 2;
        grid-column: 1;
        margin-bottom: 0;
    }

    .ltg-news-hero-item .ltg-card-meta {
        grid-column: 2;
        grid-row: 1;
    }

    .ltg-news-hero-item .ltg-card-title {
        grid-column: 2;
        grid-row: 2;
        font-size: 2rem;
    }
}

@media screen and (min-width: 1025px) {
    .ltg-posts-list > * {
        grid-column: span 4;
    }

    .ltg-posts-list.stretch-first > :first-child,
    .ltg-posts-list.stretch-first > :nth-child(2) {
        grid-column: span 6;
    }

    .ltg-posts-filters {
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
    }
}
