/* ===== Latest Posts Widget ===== */

.latest-posts-wrapper {
    width: 100%;
}

/* Grid */
.latest-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* Card */
.lp-item {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Image link */
.lp-thumb {
    display: block;
    flex-shrink: 0;
}

.lp-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Content container */
.lp-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Title link */
.lp-title {
    display: block;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lp-title:visited,
.lp-title:hover,
.lp-title:active {
    color: #ffffff !important;
}

/* Excerpt */
.lp-excerpt {
    display: block;
    font-size: 0.9em;
    line-height: 1.5;
    color: #cccccc;
    margin: 0;
}

/* Button wrapper */
.lp-button-wrapper {
    margin-top: 1rem;
    text-align: center;
}

/* Button */
.lp-button {
    display: inline-block;
    padding: 12px 25px;
    background: #EEEEEE;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.lp-button:visited {
    color: #000000;
}

/* Mobile */
@media (max-width: 767px) {
    .latest-posts {
        grid-template-columns: 1fr;
    }
}
