I'm currently using Bootstrap 4.1.0 and have successfully created a grid layout on my webpage. However, I am facing difficulties in implementing a carousel for each grid image. The issue is that only the first grid element (B-1) displays the carousel when clicked. Upon clicking an image within the grid, a modal should pop up with a carousel inside it.
Below is the code snippet I'm using. Can anyone help me identify what I might have missed or done incorrectly?
<div class="container">
<div class="row mb-2 text-center">
<div class="col-sm-6 col-lg-3 mb-2">
<div class="col-md-12 text-center">
<img class="img-fluid" data-toggle="modal" data-target="#B-1" alt="B-1" src="http://nationalkitchencabinets.com/images/B-1.jpg">
<button type="button" class="btn btn-info">Door Style B-1</button>
...
(several more similar sections for different door styles)
...
To view the complete implementation in action, you can check out this CodePen link: https://codepen.io/mlegg10/pen/ZoQRME/