/css
/* ==========================================================================
   Modal Popup Component
   Pair with modal.js. Load AFTER Bootstrap's CSS.
   ========================================================================== */

/* Trigger: base reset, keeps it focusable */
.c-modal__trigger {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.c-modal__trigger:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

/* Text-only trigger (no image): match .btn-default */
.c-modal__trigger:not(:has(.c-modal__trigger-img)) {
  background-color: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  text-transform: capitalize;
  padding: 8px 10px;
  margin: 10px 0;
  min-width: 140px;
  font-weight: 100;
}

/* Image trigger: photo card on the page */
.c-modal__trigger:has(.c-modal__trigger-img) {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.c-modal__trigger-img {
  display: block;
  max-width: 350px;      /* image size on the page */
  height: auto;
  border-radius: 8px;
}

/* Larger image at the top of the modal */
.c-modal__body-img {
  display: block;
  max-width: 100%;       /* fills the modal width */
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.c-modal__text:empty { display: none; }