.oaks-grid {
    overflow: hidden;
    padding: 0;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    width: 100%;
}

.oak-item {
    align-items: flex-end;
    display: flex;
    line-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.oak-background {
    aspect-ratio: 481 / 586;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1;
}
.oak-background .wp-block-cover,.oak-background .wp-block-cover-image{
    min-height: auto;
}
.oak-background img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 1440px) {
    .oak-text {
        min-height: 260px;
    }
}

.oak-text {
    align-items: flex-start;
    bottom: 0;
    color: #fff;
    display: flex;
    left: 0;
    min-height: clamp(200px, 210px, 300px);
    padding: 40px;
    position: absolute;
    text-align: left;
    width: 100%;
    z-index: 2;
}

@media (max-width: 1440px) {
    .oak-text {
        min-height: 260px;
    }
}

.oak-text {
    align-items: flex-start;
    bottom: 0;
    color: #fff;
    display: flex;
    left: 0;
    min-height: clamp(200px, 210px, 300px);
    padding: 40px;
    position: absolute;
    text-align: left;
    width: 100%;
    z-index: 2;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    max-width: 85%;
}

.oak-item>div {
    width: 100%;

}

@media (max-width: 768px) {
    .oaks-grid {
        flex-direction: column;
        gap: 0;
        grid-template-columns: 1fr;
        padding-bottom: 20px;
    }

    .oak-item {
        align-items: flex-end;
        display: flex;
        height: auto;
        overflow: hidden;
        position: relative;
        width: 100%;
        aspect-ratio: 393 / 305;
    }

    .oak-background {
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 1;
        aspect-ratio: 393 / 305;
        height: auto;
        position: relative;
    }

    .wp-block-cover.oak-background{
        min-height: auto;
    }

    .oak-background img {
        aspect-ratio: 393 / 305;
        display: block;
        height: auto;
        -o-object-fit: cover;
        object-fit: cover;
        width: 100%;
    }

    /* .oak-text {
        min-height: auto;
        padding: 20px 40px 25px;
                font-size: 14px;
        max-width: 100%;
    } */

    .oak-text {
        min-height: auto;
        padding: 20px 40px 25px;
        font-weight: 500;
        font-size: 15px;
        line-height: 1.6;
        margin: 0;
    }
}
