/* Two-row institution wall: four academic partners, then three competition organizations. */
.institution-strip {
  padding: 30px max(24px, calc((100% - 1180px) / 2));
  background: transparent;
}

.institution-strip-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 18px 26px;
}

.institution-mark {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  padding: 16px 10px;
  border-radius: 4px;
}

.institution-mark:nth-child(n + 5) { grid-column: span 4; }
.institution-mark img {
  display: block;
  width: 100%;
  max-width: 270px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.institution-mark:nth-child(n + 5) img { max-width: 330px; }
.institution-mark-sfu img { max-width: 235px; }
.institution-mark-emily-carr img { width: auto; max-width: 118px; max-height: 90px; }
.institution-mark-bcit img { width: auto; max-width: 92px; max-height: 84px; }
.institution-mark:focus-visible { outline: 3px solid #28699a; outline-offset: 3px; }

@media (max-width: 750px) {
  .institution-strip { padding: 24px 20px; }
  .institution-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px 24px;
    max-width: 560px;
    margin-inline: auto;
  }
  .institution-mark,
  .institution-mark:nth-child(n + 5) {
    grid-column: auto;
    min-height: 96px;
    padding: 12px 8px;
  }
  /* Long wordmarks get a full row so their lettering stays readable. */
  .institution-mark:nth-child(n + 5) { grid-column: 1 / -1; }
  /* Keep these bounds above the later shared logo rules in clarity.css. */
  body .institution-strip .institution-mark img {
    width: 100%;
    min-width: 0;
    max-width: 250px;
    height: 64px;
    max-height: 64px;
    flex-shrink: 1;
    object-fit: contain;
  }
  body .institution-strip .institution-mark-emily-carr img { max-width: 80px; }
  body .institution-strip .institution-mark-bcit img { max-width: 72px; }
}
