
/* Preview-only: Random Ventures logo grid. Not deployed. */
.entry-content .company-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0 0 2.4rem;
  padding: 0;
}

.entry-content .company-grid > li {
  margin: 0;
  min-width: 0;
}

.company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 100%;
  min-height: 16rem;
  padding: 1.6rem 1.2rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  text-decoration: none;
  color: #000;
}

.company-card:hover,
.company-card:focus-visible {
  border-color: #1dbec0;
  text-decoration: none;
  outline: none;
}

.company-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 10.4rem;
  flex: 1 1 auto;
}

.company-card img {
  max-width: 100%;
  max-height: 10.4rem;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
}


.company-card--orange {
  background: #fe7e00;
  border-color: #fe7e00;
}

.company-card--orange:hover,
.company-card--orange:focus-visible {
  border-color: #c45f00;
}


.company-card--yellow {
  background: #fff57b;
  border-color: #e0d056;
}

.company-card--yellow:hover,
.company-card--yellow:focus-visible {
  border-color: #1dbec0;
}



@media (max-width: 389px) {
  .entry-content .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .company-card {
    min-height: 14rem;
    padding: 1.2rem 0.8rem;
  }
  .company-logo-wrap,
  .company-card img {
    height: 8.4rem;
    max-height: 8.4rem;
  }
}

@media (min-width: 1280px) {
  .company-card {
    min-height: 18rem;
  }
}

/* Keep the ninth card the same size, but center it in the last row. */
.entry-content .company-grid > li:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 1.2rem) / 2);
}
@media (max-width: 389px) {
  .entry-content .company-grid > li:last-child {
    width: calc((100% - 0.8rem) / 2);
  }
}

