.atom-block-posts {
    margin-top: var(--wp--preset--spacing--30);
    margin-bottom: var(--wp--preset--spacing--30);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.atom-block-posts h2.year {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 0;
    padding-top: var(--wp--preset--spacing--15);
    border-top: 1px solid rgba(41, 81, 133, 0.2);
}

.atom-block-posts .post-item {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: white;
    text-decoration: none;
}

.atom-block-posts.teaser.teaser-bootstrap-mode .post-item {
    width: 100% !important;
    height: 100%;
}

.atom-block-posts img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.atom-block-posts .content {
    width: 100%;
    padding: 15px;
    display: block;
}

.atom-block-posts h2 {
    margin: 0;

    --wp-hyphens-length: 6;
    --wp-hyphens-before: 3;
    --wp-hyphens-after: 3;
	-webkit-hyphens: auto;
	-webkit-hyphenate-limit-before: var(--wp-hyphens-before);
	-webkit-hyphenate-limit-after: var(--wp-hyphens-after);
	-webkit-hyphenate-limit-chars: var(--wp-hyphens-length) var(--wp-hyphens-before) var(--wp-hyphens-after);
	-moz-hyphens: auto;
	-moz-hyphenate-limit-chars: var(--wp-hyphens-length) var(--wp-hyphens-before) var(--wp-hyphens-after);
	-ms-hyphens: auto;
	-ms-hyphenate-limit-chars: var(--wp-hyphens-length) var(--wp-hyphens-before) var(--wp-hyphens-after);
	hyphens: auto;
	hyphenate-limit-chars: var(--wp-hyphens-length) var(--wp-hyphens-before) var(--wp-hyphens-after);
}

.atom-block-posts p {
    font-family: var(--wp--preset--font-family--atom-headline);
    font-size: var(--wp--preset--font-size--larger);
    color: var(--wp--preset--color--atom-main-1);
    font-weight: 400;
    margin: 10px 0 0 0;
    line-height: 1.263;
}

.atom-block-posts.teaser .post-item {
    width: 100%;
    flex-direction: column;
}

.atom-block-posts.teaser .image-container {
    height: auto;
    aspect-ratio: 1 / 0.75;
}

.atom-block-posts.teaser img {
    aspect-ratio: 1 / 0.75;
    width: 100%;
    height: 100%;
    max-height: unset;
    object-fit: cover;
    object-position: center;
}

/* .atom-block-posts.teaser.top .post-item, */
.atom-block-posts.teaser.more .post-item,
.atom-block-posts.teaser.popular .post-item {
    display: none;
}

/* .atom-block-posts.teaser.top .post-item:nth-of-type(1), */
.atom-block-posts.teaser.more .post-item:nth-of-type(1),
.atom-block-posts.teaser.popular .post-item:nth-of-type(1) {
    display: flex;
}

body:not(.search) .atom-block-posts.all .post-item:nth-of-type(1),
body:not(.search) .atom-block-posts.all .post-item:nth-of-type(2),
body:not(.search) .atom-block-posts.all .post-item:nth-of-type(3) { 
    display: none
}

.atom-block-posts .wp-block-buttons { 
    margin: 30px auto;
}

@media (min-width: 576px) {

    .atom-block-posts.teaser .post-item {
        width: calc(100% / 2 - 7.5px);
    }

    .atom-block-posts.teaser.top.with-sticky-post .post-item:nth-of-type(4),
    .atom-block-posts.teaser.top:not(.with-sticky-post) .post-item:nth-of-type(3) {
        display: none;
    }

    .atom-block-posts.teaser.top.with-sticky-post .post-item:nth-of-type(2),
    .atom-block-posts.teaser.top:not(.with-sticky-post) .post-item:nth-of-type(2),
    .atom-block-posts.teaser.more .post-item:nth-of-type(2),
    .atom-block-posts.teaser.popular .post-item:nth-of-type(2) {
        display: flex;
    }

    body:not(.search) .atom-block-posts.all .post-item:nth-of-type(3) { 
        display: flex;
    }

    .atom-block-posts.all .post-item {
        flex-wrap: wrap;
    }

    .atom-block-posts.all .post-item .image-container {
        width: 100%;
    }
}

@media (min-width: 768px) {

    .atom-block-posts.teaser .post-item {
        width: calc(100% / 3 - 10px);
    }

    .atom-block-posts.teaser.more .post-item:nth-of-type(3),
    .atom-block-posts.teaser.popular .post-item:nth-of-type(3),
    .atom-block-posts.teaser.top:not(.with-sticky-post) .post-item:nth-of-type(3),
    .atom-block-posts.teaser.top.with-sticky-post .post-item:nth-of-type(4) {
        display: flex;
    }

    body:not(.search) .atom-block-posts.all .post-item:nth-of-type(3) { display: none; }

    .atom-block-posts.all .post-item {
        flex-wrap: unset;
    }

    .atom-block-posts.all .post-item .image-container {
        width: 25%;
    }
}

@media (min-width: 992px) {

    .atom-block-posts.teaser.top .post-item {
        width: calc(100% / 2 - 7.5px);
    }

    .atom-block-posts.teaser.top.with-sticky-post .post-item:nth-of-type(4),
    .atom-block-posts.teaser.top:not(.with-sticky-post) .post-item:nth-of-type(3) {
        display: none;
    }

    body:not(.search) .atom-block-posts.all .post-item:nth-of-type(3) { display: flex; }

    .atom-block-posts.teaser.more .post-item:nth-of-type(3),
    .atom-block-posts.teaser.popular .post-item:nth-of-type(3) {
        display: flex;
    }

}

@media (min-width: 1200px) {

    .atom-block-posts.teaser {
        gap: 30px;
    }

    .atom-block-posts.teaser.top {
        gap: 15px;
    }

    .atom-block-posts .content {
        padding: 15px 30px;
    }

    .atom-block-posts.teaser .post-item {
        width: calc(100% / 3 - 60px / 3);
    }

    .atom-block-posts.teaser.top .post-item {
        width: calc(100% / 3 - 30px / 3);
    }

    .atom-block-posts.teaser.top:not(.with-sticky-post) .post-item:nth-of-type(3),
    .atom-block-posts.teaser.top.with-sticky-post .post-item:nth-of-type(4) {
        display: flex;
    }

    body:not(.search) .atom-block-posts.all .post-item:nth-of-type(3) { display: none; }
}

@media (min-width: 1400px) {

    .atom-block-posts,
    .atom-block-posts.teaser.top {
        gap: 30px;
    }

    .atom-block-posts.teaser.top .post-item {
        width: calc(100% / 3 - 60px / 3);
    }

    .atom-block-posts h2.year {
        margin-top: var(--wp--preset--spacing--60);
        margin-bottom: var(--wp--preset--spacing--30);
    }
}

/* STICKY POST */
.atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post {
    width: 100%;
    position: relative;
    aspect-ratio: 1 / 0.75;
}

.atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%);
}

.atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post span.content {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 15px;
    z-index: 3;
}

.atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post span.content h2,
.atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post span.content p {
    color: white;
}

@media (min-width: 576px) {

    .atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post {
        aspect-ratio: 1.85 / 1;
    }
}

@media (min-width: 768px) {

    .atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post:before {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 75%);
    }

    .atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post span.content {
        padding: 30px 15px;
    }
}

@media (min-width: 1200px) {

    .atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post:before {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 50%);
    }
    
    .atom-block-posts.teaser.top.with-sticky-post .post-item.sticky-post span.content {
        padding: 60px 30px;
    }
}