/*
 Theme Name:   Washington Jewish Journal
 Template:     storefront
 Version:      1.0.0
*/
/* === Post Grid: Base Layout for Desktop === */
.custom-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* === Post Card Styling === */
.post-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: scale(1.02);
}

/* === Overlay Content Centered === */
.post-card .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* dark overlay */
    text-align: center;
    color: #fff;
}

/* === Title Styling === */
.post-card h2 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    color: #fff;
}

/* === Read Time Text === */
.read-time {
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.9;
}

/* === Read More Button === */
.read-more {
    background: #3498db;
    color: white;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.read-more:hover {
    background: #2d88cc;
}

/* === Responsive: Tablets (≤1024px) === */
@media (max-width: 1024px) {
    .custom-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .post-card {
        height: 260px;
    }

    .post-card h2 {
        font-size: 1.3rem;
    }
}

/* === Responsive: Mobile Devices (≤768px) === */
@media (max-width: 768px) {
    .custom-post-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-card {
        height: 220px;
    }

    .post-card h2 {
        font-size: 1.1rem;
    }

    .read-more {
        padding: 6px 14px;
        font-size: 0.9rem;
    }
}




