h1 {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 3em;
}

.carousel {
   min-height: auto
}

.carousel-inner {
  height: 0;
  padding-bottom: 45%; /* this sets carousel aspect ratio (4:1 here) */
}

.carousel-item {
  position: absolute !important; /* Bootstrap is insistent */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.carousel-item img {
  height: 100%; /* Bootstrap handles width already */
  object-fit: cover; /* or 'contain' if you want stretch instead of crop */
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.card-body {
    padding: 1.5rem;
}

.card-img-top.face {
width: 100%;
height: 40vh;
object-fit: cover;
}

.card-img-top.lab {
  height: 20vh;
  object-fit: scale-down;
}

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}

html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
}

.card-columns {
   column-count: 2;
}

.logo {
  height: 10vh;
  object-fit: scale-down;
}