/* grid.css */

.middle {
    display: grid;
    grid-template-columns: 70% auto; /* 70% for the wheels image, auto for the text */
    align-items: center; /* Center items vertically */
}

.text-container {
    grid-column: 2; /* Place the container in the second column */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.middle-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.image-pair {
    display: flex;
    justify-content: space-around; /* This will put space between the images */
    align-items: center;
    margin-bottom: 10px; /* Adds space between pairs */
}

.image-pair img {
    max-width: 20%; /* Reduce the max-width to make the images smaller */
    height: auto; /* Maintain aspect ratio */
    margin: 0 2.5%; /* Add space around the images */
}

@media (max-width: 767px) {
    .middle {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .text-container {
        width: 100%;
        text-align: center;
    }

    .image-pair {
        flex-direction: column;
        align-items: center;
    }

    .image-pair img {
        max-width: 90%;
        margin: 10px 0;
    }
}
