.flex-4 {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    width: 100%;
    gap: 20px;
}
.flex-4 img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.flex-4 article {
    flex: 0 0 calc(25% - (20px * 3 / 4));
    max-width: 25%;
    position: relative;
    box-sizing: border-box;
    border-radius: 5px;
    overflow: hidden;
}
.flex-4 article::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 26, 16, 0.9) 8%, rgba(9, 26, 16, 0) 62%);
}
.flex-4 article .nota__texto {
    z-index: 1;
    padding-inline: 15px;
    color: var(--papel);
    position: absolute;
    bottom: 0;
    left: 0;
}

.flex-4 article .nota__texto h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Change this number to limit lines */
    line-clamp: 2;

    overflow: hidden;

    overflow-wrap: break-word;
    word-break: keep-all;
    font-weight: normal;

    font-size: 1em;
    line-height: 1.1;
    margin-bottom: 10px;
    font-family: var(--sans);
}

.flex-4 article .nota__texto p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Change this number to limit lines */

    line-clamp: 3;

    overflow: hidden;

    overflow-wrap: break-word;
    word-break: keep-all;
    line-height: 1.1;
    /* margin-top:5px; */
}

.portada__texto .rotulo {
    font-weight: bold;
    text-shadow: 0 0 5px black;
}

.portada p,
.portada h1 {
    text-shadow: 0px 0 5px black;
}

@media (max-width: 768px) {
    .flex-4 article {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .flex-4 {
        gap: 0;
    }
}
