.blog-categories-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 2em 1em;
}

.blog-categories-page h1 {
    font-size: 2em;
    margin-bottom: 1em;
}

.blog-categories-intro {
    margin-bottom: 1.5em;
    color: #555;
}

.blog-categories-list {
    list-style: none;
    padding: 0;
}

.blog-category-posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.no-posts {
    color: #888;
    font-style: italic;
}

.backlink {
    display: inline-block;
    margin-bottom: 1em;
    margin-top: 1em;
    color: #888;
    text-decoration: none;
}

.backlink:hover {
    text-decoration: underline;
}

.blogPostsContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    
}

.latest-posts picture, .featured-posts picture, .recent-posts picture {
    display: inline-block;
    width: fit-content;
    text-align: left;
    margin-right: 10px;
}

.latest-posts img,
.featured-posts img,
.recent-posts img,
.blog-category-page .blogPostTeaser picture img {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.postContainer {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(50% - 20px);
    box-sizing: border-box;
    margin-bottom: 2em;
    gap: 10px;
}

.blogPostTeaser {
    display: flex;
    flex-direction: row;
    margin-bottom: 1em;
    gap: 1em;
}

.teaserTitleContainer {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.teaserTitleBylineContainer {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.postContainer .dateBlock, .blogpost-header .dateBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    background-color: #e9e9e9;
    text-align: center;
    border-left: 2px solid #000;
    margin-right: 10px;
}
.dateBlock span {
    display: block;
}
.dateBlock .day {
    font-size: 1.5em;
    font-weight: bold;
    background: #f3f3f3;
    width: 100%;
    padding: 5px;
}
.dateBlock .month {
    font-size: 1em;
}
.dateBlock .year {
    font-size: 0.85em;
}

.sidebar .blogPostTeaser {
    flex-direction: column;
}


.latest-posts .post, .featured-posts .post, .recent-posts .post {
    display: flex;
    flex-direction: column;
}

.sidebar .latest-posts picture, .sidebar .featured-posts picture, .sidebar .recent-posts picture {
    width: 100%;
    text-align: center;
}
.sidebar .latest-posts img, .sidebar .featured-posts img, .sidebar .recent-posts img {
    margin: 0 auto;
    max-width: 360px;
}

.blogpost-header {
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5em;
}

.blogpost-header h1 {
    margin: 0;
}

.post-image {
    margin-bottom: 1.5em;
    width: 100%;
    max-width: 700px;
    height: auto;
}

.blogpostTitleContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blogpost-header .meta {
    color: #666;
    font-size: 0.9em;
}

.author-bio {
    margin-top: 2em;
    padding: 1em;
}

@media screen and (max-width: 600px) {
    .postContainer .dateBlock {
        display: none;
    }
    .blogPostTeaser {
        flex-direction: column;
        align-items: center;
    }
    .latest-posts picture, .featured-posts picture, .recent-posts picture {
        width: 100%;
        text-align: center;
    }
    .latest-posts img, .featured-posts img, .recent-posts img {
        margin: 0 auto;
        max-width: 360px;
    }
}