:root {
    --img-ratio: 5 / 1;
}

div#FAFImg {
    overflow: hidden;
    width: 100%;
    aspect-ratio: var(--img-ratio, 5 / 1);
    object-position: center center;
    display: flex;
}

    div#FAFImg > img {
        object-fit: cover;
    }

@media screen and (max-width: 1440px) {
    :root {
        --img-ratio: 4 / 1;
    }
}

@media screen and (max-width: 1024px) {
    :root {
        --img-ratio: 16 / 9;
    }
}

@media screen and (max-width: 600px) {
    :root {
        --img-ratio: 4 / 3;
    }
}                                                                                                                                                                                                                                                                                                                                                                                                                                        