/* Blogbejegyzések előnézet (template-parts/blog/posts.php) */

.posts-row,
.posts-col {
    box-sizing: border-box;
    display: flex;
}

.posts-row {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.posts-col {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 calc(calc(100% / 3) - 30px);
}

.post-container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;

    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.post {
    flex: 1 0 calc((100% / 3) - 36px);
    height: auto;
    display: inline-flex !important;
    overflow: hidden;
    position: relative;
}

.posts-col:nth-child(2n+1) .post {
    background: var(--color-main-alpha);
}

.posts-col:nth-child(2n+0) .post {
    background: var(--color-gold-dark-alpha);
}

.post-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 15px;
    text-decoration: none;
}

.post-wrapper:hover {
    text-decoration: none;
}

.post-wrapper-row,
.post-wrapper-col {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
}

.post-wrapper-row {
    flex-direction: row;
    flex-wrap: wrap;
    height: 100%;
    gap: 15px;
}

.post-wrapper-col {
    position: relative;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 0 15px;
}

.post-wrapper-col:nth-child(1) {
    justify-content: flex-start;
    align-items: center;
    padding: 0;
}

.post-wrapper-col:nth-child(2) {
    justify-content: flex-start;
    align-items: flex-start;
}

.post-wrapper-col:nth-child(3) {
    justify-content: flex-start;
    align-items: flex-start;
}

.post-wrapper-col:nth-child(4) {
    justify-content: flex-end;
    align-items: flex-end;
}

.post-thumb {
    width: 100%;
    height: auto;
    display: block;
}

.post-title {
    margin-top: 5px;
    font-size: 24px;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond';
    width: 100%;
    display: block;
    white-space: normal;
}

.post-content {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    text-align: justify;
    white-space: normal;
    font-size: 12px;
    line-height: 20px;
}

.post-date {
    box-sizing: border-box;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: rgba(150, 150, 150, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.15));
}

.post-readmore {
    display: block;
    width: fit-content;
    font-size: 18px;
}

.posts-col:nth-child(2n+1) .post-readmore {
    background: -webkit-linear-gradient(180deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.posts-col:nth-child(2n+0) .post-readmore {
    background: -webkit-linear-gradient(180deg, var(--color-main), var(--color-alt), var(--color-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 768px) {
    .posts-col {
        flex: initial;
        width: 100%;
    }
}