I recently integrated this example into my web application: https://getbootstrap.com/docs/5.0/examples/album
Although it's working well, I'm looking to adjust the number of columns from 3 to 2. Is there a way to achieve this?
This is a snippet of my code:
<div class="album py-5 bg-light">
<div class="container">
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3">
<div id="swap-image-container" style="display: none;" class="col">
<div class="card shadow-sm">
<img id="swap-image" class="bd-placeholder-img card-img-top" width="100%" height="100%"/>
<div class="card-body">
<p class="card-text">Swap image. Face replacement result.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
</div>
</div>
</div>
</div>
</div>
<div id="enchanced-swap-image-container" style="display: none;" class="col">
<div class="card shadow-sm">
<img id="enchanced-swap-image" class="bd-placeholder-img card-img-top" width="100%" height="100%"/>
<div class="card-body">
<p class="card-text">Enchanced Swap image. Face replacement result with post-processing.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
I attempted to modify the bootstrap class names to change the column count, but unfortunately, it didn't have any effect.