My Swiper carousel seems to be adding an unnecessary 5px margin-right to each slide, resulting in the cards not fitting into one frame.
https://i.sstatic.net/fwn5G.png
I attempted to fix this by setting the margin-right to 0px for the .swiper-slide class using !important, but it didn't work as expected.
https://i.sstatic.net/uoeUT.png
Another temporary solution that I tried was adjusting the slidesPerView and spaceBetween properties in the Swiper component, but the problem keeps re-emerging every time I refresh the page.
<Swiper
slidesPerView={1}
spaceBetween={0} // gets overwritten by SwiperJS?
>
...
</Swiper>
At this point, I'm stuck and out of ideas on how to resolve this issue. Any suggestions or help would be greatly appreciated.