I have a container which contains either 1,2 or three images (depending on some stuff that is unknow).
If there's multiple images, then they should all be able to fit side-by-side in the container.
I have tried setting
.image-wrapper {
    display:flex;
    height: 50%;
    flex-grow: 1;
}
.image-wrapper img{
    width: auto;
    max-height: 100%;
    flex-grow: 1;
}
and thought the flex-grow:1 should do exactly that, but that does not quite do the trick.
<div class="image-wrapper">
      {% if p.does_exist %}
      <a href="{{p.link}}" target="_blank" rel="noopener">
        <img src="{{p.image_url}}" alt="image of product produkt" />
      </a>
      {% else %}
      <a href="{{p.link}}" target="_blank" rel="noopener">
        <img src="{{p.image_url}}" alt="Image off produkt" />
        <img src="{% static 'media/discount.png' %}" alt="Discount tag" />
      </a>
      
      {% endif %}
    </div>
 
     
    