/* === HOME POSTS GRID CSS === */


.home-posts-grid { 
	padding: 2rem 1rem; 
	max-width: 1200px; 
	margin: 0 auto; 
}


.home-posts-grid__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}


/* Force 3 columns on desktop */
@media (min-width: 960px) {
    .home-posts-grid__container {
        grid-template-columns: repeat(3, 1fr);
    }
}


.home-posts-grid__item {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

/* V1 */
/*.home-posts-grid__item:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }*/
.home-posts-grid__item {
    background: rgba(236, 209, 143, 0.1);
    border-radius: 10px;
    border: none;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}


.home-posts-grid__link { color: inherit; text-decoration: none; display: block; }


.home-posts-grid__media { height: 180px; overflow: hidden; display:flex; align-items:center; justify-content:center; background:#f3f4f6; }
.home-posts-grid__thumb { width:100%; height:100%; object-fit:cover; }
.home-posts-grid__placeholder { color:#9ca3af; font-size: .9rem; }


.home-posts-grid__title {
    margin: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-normal);
}

.home-posts-grid__content { margin: 0 1rem 1rem; color:#4b5563; }


.home-posts-grid__none { text-align:center; color:#888; padding:2rem 0; }





.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}


.grid-item {
    padding: 16px;
}


.grid-item .thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Button override */
.wp-block-button__link.wp-element-button {
    color: var(--normal) !important;
    background: transparent !important;
    border: 2px solid var(--normal);
    padding: 0.6em 1.2em;
    border-radius: 6px;
    transition: 0.25s ease;
    display: inline-block;
    text-decoration: none !important;
}

.wp-block-button.wp-block-button__width-100 {
    width: 100%;
    display: grid;
    text-align: center;
}


.wp-block-button__link.wp-element-button:hover {
    background-color: var(--primary) !important;
    color: var(--text-normal) !important;
    border-color: var(--primary) !important;
}
