.quatre-b-layout {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}


.quatre-b-layout .top-image {
    display: flex;
    width: 100%;
    height: 440px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
    grid-column: 1 / span 3;
}

.quatre-b-layout .top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quatre-b-layout .bottom-row {
    display: contents;
}

.quatre-b-layout .media-item {
    overflow: hidden;
    grid-column: span 1;
    width: 100%;
}

.quatre-b-layout .media-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


@media (max-width: 768px) {
    .quatre-b-layout {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        grid-template-rows: auto 1fr; 
        gap: 10px; 
    }

    .quatre-b-layout .top-image {
        width: 100%; 
        height: auto; 
        grid-column: 1 / span 3; 
    }

    .quatre-b-layout .bottom-row {
        display: contents; 
    }

    .quatre-b-layout .media-item {
        width: 100%;
        height: auto; 
        grid-column: span 1; 
    }

    .quatre-b-layout .media-item img {
        width: 100%;
        height: auto; 
        object-fit: cover; 
    }
}
