Image Overflowing from the container

hey folks this is my html
<section className="flex flex-wrap gap-8 p-36">
            {data.map((item, index) => (
                <div key={index} className="grow shrink basis-1/3 h-80">
                    <img src={item.feature_image} alt="" className="h-full w-full object-cover object-center />
                    <p>{item.title}</p>
                </div>
            ))}
        </section>

I have set this css for all the images to make them responsive
max-width: 100%
height: auto;

but still the image is overflowing from the container I have attached the image
image.png
Was this page helpful?