/* Start Vertical List */
.wp-block-latest-posts__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 0;
    padding-top: 10px;
    margin: 0;
    list-style: none;

    &.is-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        /* Adjust for desired responsiveness */
        gap: 15px;
        padding-left: 0;
        padding-top: 10px;
        margin: 0;
    }
}

.wp-block-latest-posts__list.condensed {
    .custom-list-meta {
        flex-direction: column-reverse;
        align-items: flex-start;
        margin: -10px 0 0 0;
    }

    .custom-list-category {
        margin-top: 10px;

        a {
            white-space: wrap;
            font-size: 12px;
        }
    }

    .custom-list-date {
        position: relative;
        right: 5px;
        top: 5px;
        align-self: flex-end;
    }
}

.custom-list-category a svg {
    width: 5px;
    height: auto;
    display: inline-flex;
}

.custom-list-title {
    font-size: .9rem;
    line-height: 1.3;
    font-weight: 500;
    text-decoration: none;
    color: black;
}

.custom-list-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.custom-list-item {
    display: flex;
    flex-direction: column;
    box-shadow: 2px 3px 16px rgba(0, 0, 0, .2);
}

.custom-list-inner {
    display: flex;
    flex-direction: row;
    /* Align image and content side by side */
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    background: light-dark(#fff, rgba(255, 255, 255, .15));
    position: relative;
}

.custom-list-thumbnail {
    width: 25%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.custom-list-thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    object-position: top;
}

.custom-list-content {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.custom-list-category {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
}


.custom-list-category a {
    display: inline-flex;
    text-decoration: none;
    white-space: nowrap;
    align-items: center;
    gap: 3px;

}

.custom-list-category {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 0;

    a {
        display: inline-flex;
        text-decoration: none;
        white-space: nowrap;
        align-items: center;
        gap: 3px;

        svg {
            width: 5px;
            height: auto;
            display: inline-flex;
        }
    }
}

.custom-list-date,
.custom-list-author {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-self: flex-end;
}

/* End Vertical List */