/* Basic styling for the main content area */
.content-area {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styles for the grid container */
.posts-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* Styles for individual post items in the grid */
.grid-post-item {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.grid-post-item:hover {
    transform: translateY(-5px);
}

.post-thumbnail-wrapper {
  width: 100%;
    height: 200px;        /* uniform height for all */
    object-fit: cover;    /* crop instead of stretch */
    display: block;
    border-radius: 8px;
    background: #f3f3f3;  /* fallback if no image */ /* Adjust this value to control the space */
}

.post-thumbnail-wrapper img {
 width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.grid-post-item .entry-title {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.grid-post-item .entry-title a {
    text-decoration: none;
    color: #333;
}

.grid-post-item .entry-summary {
    font-size: 0.9em;
    color: #666;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .posts-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .posts-grid-container {
        grid-template-columns: 1fr;
    }
}
/* ----------------- RESPONSIVE ADJUSTMENTS ----------------- */
@media (max-width: 768px) {
    .post-thumbnail-wrapper,
    .archive-post img,
    .related-post-item img {
        height: 180px;   /* slightly shorter on tablets */
    }
}

@media (max-width: 480px) {
    .post-thumbnail-wrapper,
    .archive-post img,
    .related-post-item img {
        height: 160px;   /* smaller for mobile */
    }
}