/* ==============================
   Latest Posts Block CSS (Plain CSS)
   Original comments preserved
============================== */

.oneup-latest-posts {
    display: grid;
  /*  grid-template-columns: 2fr 1fr; /* big column + small column */
    grid-template-columns: 1fr;
    gap: 16px; /* only horizontal gap */
}

.oneup-latest-posts .latest-post {
    height: 300px;
    position: relative; /* so titles can be absolutely positioned */
    overflow: hidden;
    border-radius: 8px;
}

.oneup-latest-posts .latest-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.oneup-latest-posts .latest-post:hover img {
    transform: scale(1.1);
}

.oneup-latest-posts .latest-post-large {
    grid-row: span 2; /* spans both rows of the grid */
}

/* Post titles */

/*
.oneup-latest-posts h3,
.oneup-latest-posts h4 {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 8px;
    margin: 0;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.4;
} */

.oneup-latest-posts h3,
.oneup-latest-posts h4 {
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
}

/* Post titles + excerpt container */
.oneup-latest-posts .latest-post-content {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px; /* stretch background */
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.4;
}

/* Optional: style the span separately */
.oneup-latest-posts .latest-post-content span {
    display: block;
    font-size: 0.875rem; /* slightly smaller than title */
    line-height: 1.2;
    margin-top: 4px;
    color: #f0f0f0;
}


/* Responsive: mobile / tablet */
@media (max-width: 640px) {
    .oneup-latest-posts {
        grid-template-columns: 1fr; /* mobile: stacked */
        gap: 12px;
    }

    .oneup-latest-posts .latest-post {
        height: 200px;
    }

    /*
    .latest-post-large {
        height: 220px; // smaller for mobile
    }

    .latest-post-small {
        height: 160px;
    }
    */
}
