/**
 * Styling for the card block, used in timeline modules.
 */

.post-card {
    display: flex;
    flex-flow: row;
    align-items: center;
    word-break: break-word;
    gap: var(--spacing-8);
}

.post-card .img-box {
    flex-basis: calc(6 / 12 * 100%);
}

.post-card .img-box .img {
    width: 100%;
    height: 0;
    background-size: cover;
    padding-top: calc(3 / 4 * 100%); /* 4:3 aspect ratio */
}

.post-card .text-pane {
    flex-basis: calc(6 / 12 * 100%);
}

.post-card .text-pane .title {
    margin-bottom: var(--spacing-7);
}

.post-card .button {
    flex-direction: row;
}

.post-card .text-pane .text-button {
    width: fit-content;
    margin-top: var(--spacing-7);
}

/* Breakpoint S */
@media screen and (min-width: 0px) and (max-width: 768px) {
    .post-card {
        flex-flow: column;
        align-items: stretch;
    }

    .post-card .text-pane .title {
        margin-bottom: var(--spacing-6);
    }
}
