html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Vehicle photos fill their 4:3 frame and crop instead of stretching.
   Bootstrap 5.1 has no object-fit utility (it arrived in 5.3), hence this rule. */
.vehicle-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail page thumbnail strip: small fixed-size tiles, the current photo outlined. */
.gallery-thumb {
  width: 72px;
  height: 54px;
  background: none;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

  .gallery-thumb:hover,
  .gallery-thumb.active {
    opacity: 1;
  }

  .gallery-thumb.active {
    outline: 2px solid #0d6efd;
    outline-offset: 1px;
  }

@media (prefers-reduced-motion: reduce) {
  .gallery-thumb {
    transition: none;
  }
}

/* TinyMCE output: keep images inside the column and trim the last paragraph's gap. */
.vehicle-description img {
  max-width: 100%;
  height: auto;
}

.vehicle-description > :last-child {
  margin-bottom: 0;
}