On my webpage, I have two sections that are not aligned in height or centered. How can I center these sections in the middle of the page with the same height alignment? One section is a profile section and the other contains photos of the profile, but they are currently not positioned exactly in the middle of the page.
<div class="container">
<div class="row ">
<!-- Mom Profile -->
<div class="col-md-3 col-sm-12 py-6 ">
<div class="card card-profile card-secondary">
<div class="card-header" style="background-image: url(assets/img/blogpost.jpg)">
<div class="profile-picture center-align">
<div class="avatar avatar-xl">
<img src="assets/img/profile.jpg" alt="..." class="avatar-img rounded-circle">
</div>
</div>
</div>
<div class="card-body ">
<div class="user-profile text-center">
<div class="desc">Ege</div>
</div>
</div>
<div class="card-footer">
<div class="row user-stats text-center">
<div class="col">
<div class="">125</div>
<div class="">Score</div>
</div>
<div class="col">
<div class="">25</div>
<div class="accordion-danger">Sell</div>
</div>
<div class="col">
<div class="">134</div>
<div class="">Meal</div>
</div>
</div>
</div>
</div>
</div>
<!-- Image Gallery -->
<div class="py-6 mt-5 col-md-9 col-sm-12">
<div class="card">
<div class="body">
<div id="aniimated-thumbnials" class="list-unstyled row clearfix">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
<a href="img/1.jpg" data-sub-html="Demo Description">
<img class="img-responsive thumbnail" src="img/thumb/thumb-1.jpg">
</a>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
<a href="img/2.jpg" data-sub-html="Demo Description">
<img class="img-responsive thumbnail" src="img/thumb/thumb-2.jpg">
</a>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
<a href="img/3.jpg" data-sub-html="Demo Description">
<img class="img-responsive thumbnail" src="img/thumb/thumb-3.jpg">
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>