.fsd-racer-hub-sections-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    /* Use gap instead of grid-gap for flexbox */
}

.fsd-racer-hub-section-item {
    display: block;
    position: relative;
    width: calc(20% - 12px);
    padding-top: 20%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.fsd-racer-hub-section-item span.title {
    display: grid;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    text-align: center;
    padding: 10px;
    margin: 0;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.5s ease-in-out, height 0.5s ease-in-out, padding 0.5s ease-in-out;
    overflow: hidden;
    text-shadow: 0 0 3px #000;
}

.fsd-racer-hub-section-item:hover span.title {
    height: 100%;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 1199px) {
    .fsd-racer-hub-section-item {
            width: calc(25% - 12px);
            padding-top: 25%;
        }
}

@media (max-width: 991px) {
    .fsd-racer-hub-section-item {
        width: calc(33.333% - 10px);
        padding-top: 33.333%;
    }
}

@media (max-width: 767px) {
    .fsd-racer-hub-section-item {
        width: calc(50% - 8px);
        padding-top: 50%;
    }
}

@media (max-width: 440px) {
    .fsd-racer-hub-section-item {
        width: 100%;
        padding-top: 100%;
    }
}