/*Inline block for altmetric badges, will keep the badges in the same line*/
span.__dimensions_badge_embed__, div.altmetric-embed {
  display: inline-block;
}

/* Partner logo styles have been moved to styles.css */

.partners-grid .quarto-grid-item {
  border: 1px solid #e4e4e4;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.partners-grid .quarto-grid-item:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}

/* Logo tiles – fully contained, no cropping */

/* Fixed-size image well acting as the tile box */
.partners-grid .card-img-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  padding: 1rem;
  overflow: hidden;
  background: #ffffff;
  margin: 0;
}

/* Override Quarto's inline height; let the image breathe inside the well */
.partners-grid .card-img-top img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100px !important;
  object-fit: contain !important;
  padding: 0 !important;
  filter: grayscale(70%) opacity(0.70);
  transition: filter 0.30s ease;
}

.partners-grid .quarto-grid-item:hover .card-img-top img {
  filter: grayscale(0%) opacity(1);
}

/* Tile card frame */
.partners-grid .quarto-grid-item {
  border: 1px solid #e4e4e4;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.partners-grid .quarto-grid-item:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}

/* Hide the empty card body (no titles) */
.partners-grid .card-body {
  display: none !important;
}
