.post-feed {
  padding: 40px 20px;
  background: #F8F4F2;
}

.post-feed-inner {
  max-width: 90%;
  margin: 0 auto;
}

.post-feed-item {
    border-bottom: 1px solid #03b295;
    padding: 1rem 0;
}

.feed-link-wrapper {
    /* On mobile, this acts as the container for the stacked items */
    display: flex;
    flex-direction: column; /* Stacks image and content vertically on mobile */
    align-items: flex-start;
    text-decoration: none;
    color: inherit; /* Inherit text color */
}

.feed-thumbnail-wrapper {
    width: 100%; /* Image wrapper takes full width on mobile */
    margin-bottom: 0.75rem; /* Space below the image on mobile */
    overflow: hidden;
    border-radius: 8px;
}
/* Ensure images scale correctly within the wrapper */
.feed-thumbnail-wrapper img {
    display: block;
    width: 100%; 
    height: auto;
    object-fit: cover;
}

.feed-content {
    padding: 0;
}

.feed-post-title {
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.feed-post-date {
    font-size: 0.8rem;
    color: #888;
}

@media screen and (min-width: 768px) {
    
    .feed-link-wrapper {
        flex-direction: row; /* Change to horizontal layout */
        align-items: center; /* Vertically align items in the middle */
    }

    .feed-thumbnail-wrapper {
        /* Set a fixed size for the thumbnail on larger screens */
        width: 120px; 
        height: 120px;
        flex-shrink: 0; /* Prevents the image from shrinking */
        margin-right: 1.5rem; /* Space between image and text */
        margin-bottom: 0; /* Remove mobile margin */
    }

    /* Ensure the thumbnail crops nicely for the square space */
    .feed-thumbnail-wrapper img {
        height: 100%;
        width: 100%;
    }

    .feed-content {
        /* Content takes up the remaining flexible space */
        flex-grow: 1; 
    }
}
