I have a very simple grid, with two columns. The left column is a picture and the right column is some text.
I want the left column to adjust to the picture width (so the column must be as narrow as possible, as long as the picture fits). But I also want this column to take maximum 50% of the grid width.
I tried a couple of things like:
display: grid;
grid-template-columns: minmax(auto, 50%) 1fr;
But that doesn't work: the left column always takes 50%, even with a small picture!
So how can I tell it to take less width if the picture is smaller?
(Please note that the width of the picture is max-width: 100%)