It looks like you're trying to ensure that the image fits and clips correctly within the grid element while . The issue likely arises because the overflow property isn’t set on the parent container to handle clipping.
.bento3 { display: grid;
overflow: hidden; }
.bento3 > img {
width: 100%;
height: 100%;
object-fit: cover;
margin-top: 14px; }