/* Keeps asynchronously loaded demo images inside the thumbnail area. */
.demo-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  cursor: pointer;
}

.demo-thumb {
  position: relative;
  flex: 0 0 240px;
  height: 240px;
  min-height: 240px;
  overflow: hidden;
}

.demo-thumb > .catalog-cover {
  position: absolute;
  z-index: 3;
  inset: 13px;
  display: block;
  width: calc(100% - 26px);
  height: calc(100% - 26px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  pointer-events: none;
}

.demo-thumb > .demo-tag {
  z-index: 4;
}

.demo-body {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 245px;
  background: #fff;
}

.demo-body small,
.demo-body h3,
.demo-body p,
.demo-actions {
  position: relative;
  z-index: 6;
}

.demo-body h3 {
  display: block;
  min-height: 2.5em;
}

.demo-body p {
  display: block;
  flex: 1 1 auto;
}

.demo-actions {
  margin-top: auto;
}

@media (max-width: 620px) {
  .demo-body {
    min-height: 220px;
  }
}
