.heroContainer {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    margin: 10px auto;
}

.heroImg {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Extra small (xs) and smaller: < 576px */
@media (max-width: 575.98px) {
    .heroContainer {
        width: 90%;
        height: 300px;
    }
}

/* Small (sm): ≥ 576px */
@media (min-width: 576px) {
    .heroContainer {
        width: 80%;
        height: 300px;
    }
}

/* Medium (md): ≥ 768px */
@media (min-width: 768px) {
    .heroContainer {
        width: 70%;
        height: 350px;
    }
}

/* Large (lg): ≥ 992px */
@media (min-width: 992px) {
    .heroContainer {
        width: 60%;
        height: 400px;
    }
}

/* Extra Large (xl): ≥ 1200px */
@media (min-width: 1200px) {
    .heroContainer {
        width: 55%;
        height: 450px;
    }
}

/* XX-Large (xxl): ≥ 1400px */
@media (min-width: 1400px) {
    .heroContainer {
        width: 50%;
        height: 500px;
    }
}

/* XXX-Large (xxl): ≥ 1800px */
@media (min-width: 1800px) {
    .heroContainer {
        width: 40%;
        height: 500px;
    }
}