My goal is to create a display for multiple images with descriptions using a button cycling system. However, I am facing an issue where the buttons overflow the container instead of fitting within it when I wrap the cycler in a container with a fixed width. How can I make it scale down inside the container instead?
https://i.sstatic.net/IK8Ev.png
https://i.sstatic.net/xM1fz.png
<div class="container w-50">
<div class="row">
<div class="col-12 col-lg-6">
<div class="img-fluid" style="width: 100%" id="cycler">
<img class="w-100" src="https://via.placeholder.com/500x800" alt="Volunteer Profile Page" />
</div>
</div>
<div class="col-12 col-lg-6 bg-light p-0 mr-5" style="border-radius: 0.25rem;">
<div class="row">
<div class="col-12">
<div class="btn-group w-100" role="group">
<input type="radio" class="btn-check" checked>
<label class="btn btn-secondary m-0 selected">Photograph 1</label>
<input type="radio" class="btn-check">
<label class="btn btn-secondary m-0">Photograph 2</label>
<input type="radio" class="btn-check">
<label class="btn btn-secondary m-0">Photograph 3</label>
<input type="radio" class="btn-check">
<label class="btn btn-secondary m-0">Photograph 4</label>
</div>
</div>
<div class="row">
<div class="col-12">
<p class="p-3">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eligendi tempore laborum maxime sequi molestiae saepe soluta, quaerat dolorum ipsam incidunt aut amet nemo quis omnis veniam expedita voluptatum, laudantium in?</p>
</div>
</div>
</div>
</div>
</div>
</div>