.image-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* This is the gap between images */
}

.image-flex-container img {
    flex: 0 0 calc(33.33% - 20px);
    /* Adjust for the desired number of columns and gap */
    max-width: calc(33.33% - 20px);
    /* Adjust for the desired number of columns and gap */
}

.preview-image {
    width: 100%;
}