/* Styles of list/templates/list/welcome_section_rest.html, moved out of its inline <style>. */

    /* Treat the featurette row predictably */
.row.featurette {
  /* .row is already display:flex; keep wrap explicit for safety */
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* vertical centering of columns */
}

/* Only the RIGHT column needs to be a flex container to center its content */
@media (min-width: 768px) {
  .row.featurette .col-md-5 {
    display: flex;
    align-items: center;      /* vertical center inside the column */
    justify-content: flex-start; /* keep it near the text */
  }
}

/* Gentle, desktop-only spacing between text and carousel */
@media (min-width: 992px) {
  /* Use margin-start on the carousel OR padding-end on the text column (pick one) */
  #backgroundCarouselB { margin-left: 1.25rem; }
  /* or: .row.featurette .col-md-7 { padding-right: 1rem; } */
    #backgroundCarouselB {
      margin-top: 8rem;   /* increase this value to push it further down */
    }

}

.featurette-heading { font-weight: 700; }
.featurette-heading .text-muted { font-weight: 600; }
/* Keep images elegant and centered within their box */
.object-cover-center {
  object-fit: cover;
  object-position: center;
  max-height: 500px;        /* respects given height but stays responsive */
  width: 100%;
  border: none;
}

@media (min-width: 992px) {
    #image_share_family{
        margin-top: 8rem;   /* increase this value to push it further down */
    }
}
