I am using CSS grid display to layout a grid of items (can be cards, text, iframes, etc.) on the page, however sometimes an item in that list might be wider than the others, therefore overflow occurs. How may I fix this? I've noticed that in terms of height, columns actually adjust when there is more content without any problems with my current setup.
.wrapper-content {
display: grid;
grid-template-columns:repeat(auto-fill, minmax(11rem, auto));
grid-auto-rows: minmax(12rem, auto);
grid-gap: 1em;
}
Here's the problem, as you can see, an iframe is larger than the cards surrounding it and therefore it is covered.
