/* Styling for the Research page (research.qmd) */

/* Funder logos: one centred row, with the University of Edinburgh (last logo)
   on its own line below; on narrow screens the row wraps */
.funders p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem 2.25rem;
  margin: 1.5rem 0;
}

.funders a:last-child {
  flex-basis: 100%;
  text-align: center;
}

.funders img {
  height: 2.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Square logos look small next to the wide ones, so show them a bit larger */
.funders img[src$="wellcome.svg"],
.funders img[src$="royal-society.png"] {
  height: 3.5rem;
}

/* Placeholder box for a figure or photo that is not yet available */
.figure-placeholder {
  margin: 1.5rem 0;
  padding: 3rem 1rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: 10px;
  text-align: center;
  font-size: 0.9em;
  color: var(--bs-secondary-color);
}

.figure-placeholder p {
  margin: 0;
}

/* Side-by-side figures (layout="[...]" in research.qmd): caption below the panel,
   styled like the figure captions; cells stack on narrow screens */
.quarto-layout-panel .figure-placeholder {
  margin: 0;
}

.figure-caption {
  margin: 0.5rem 0 1.5rem;
}

@media (max-width: 576px) {
  .quarto-layout-row {
    flex-direction: column;
  }

  .quarto-layout-cell {
    flex-basis: auto !important;
  }
}

/* No external-link icon on funder logos (link-external-icon in research.qmd) */
.funders a.external::after {
  content: none;
}
