.cases-index__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-list-card {
  height: 600px;
}

.case-list-card__visual {
  height: 350px;
  background: #0575ff;
}

.case-list-card__visual > img:first-child {
  height: 350px;
  object-position: center;
}

.case-list-card--prime .case-list-card__visual > img:first-child {
  transform: scaleX(-1);
}

.case-list-card__tags { position: absolute; z-index: 2; top: 20px; left: 20px; display: flex; max-width: calc(100% - 40px); flex-wrap: wrap; gap: 8px; }
.case-list-card__tags span { display: inline-flex; height: 40px; padding: 0 15px; align-items: center; border-radius: 40px; background: #fff; color: var(--blog-ink); font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap; }

.case-list-card__visual > .case-list-card__logo {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  width: 84px;
  height: 84px;
  padding: 8px;
  border-radius: 18px;
  background: rgb(255 255 255 / 88%);
  object-fit: contain;
}

.case-list-card__result {
  position: absolute;
  top: 390px;
  left: 40px;
  margin: 0;
  color: rgb(27 27 27 / 55%);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.case-list-card h2 {
  top: 418px;
  max-width: calc(100% - 80px);
}

.case-list-card:hover { box-shadow: 0 14px 34px rgb(27 27 27 / 11%); transform: translateY(-2px); }
.case-list-card { transition: box-shadow 180ms ease, transform 180ms ease; }

@media (max-width: 1819px) {
  .case-list-card { height: 580px; }
  .case-list-card__result, .case-list-card h2 { left: 28px; }
  .case-list-card h2 { max-width: calc(100% - 56px); }
}

@media (max-width: 1100px) {
  .cases-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-list-card { height: 580px; }
}

@media (max-width: 760px) {
  .cases-index__grid { grid-template-columns: minmax(0, 1fr); }
  .case-list-card { height: 500px; }
  .case-list-card__visual, .case-list-card__visual > img:first-child { height: 285px; }
  .case-list-card__tags { top: 12px; left: 12px; max-width: calc(100% - 24px); gap: 6px; }
  .case-list-card__tags span { height: 34px; padding: 0 12px; font-size: 13px; }
  .case-list-card__visual > .case-list-card__logo { right: 12px; bottom: 12px; width: 62px; height: 62px; padding: 6px; border-radius: 14px; }
  .case-list-card__result { top: 306px; left: 20px; font-size: 15px; }
  .case-list-card h2 { top: 330px; left: 20px; max-width: calc(100% - 40px); }
}
/* The cases index has no category filters, so search sits directly below the intro. */
.cases-index__controls--search-only .blog-search { margin-top: 0; }
