Your camera names files IMG_0001.jpg . That index resets every time you format your card. To make the index globally unique:
How to arrange elements in the frame to create impact. index of photo better
.card-info a color: #fff; text-decoration: none; font-weight: 500; word-break: break-all; Your camera names files IMG_0001