Normal: the last card in the HTML is on top

Card 1
Card 2
Card 3

Card 1 has z-index: 3

Card 1 — z-index: 3
Card 2
Card 3