.cdhc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cdhc-card {
  --cdhc-scale: 1.12;
  --cdhc-duration: 700ms;
  --cdhc-reveal: 38px;
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}

.cdhc-image,
.cdhc-overlay,
.cdhc-content {
  position: absolute;
  inset: 0;
}

.cdhc-image {
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  transition: transform var(--cdhc-duration) cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cdhc-card:hover .cdhc-image,
.cdhc-card:focus-visible .cdhc-image {
  transform: scale(var(--cdhc-scale));
}

.cdhc-overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.58) 100%);
  pointer-events: none;
}

.cdhc-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  pointer-events: none;
}

.cdhc-copy {
  transform: translateY(var(--cdhc-reveal));
  transition: transform var(--cdhc-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.cdhc-copy > * + * {
  margin-top: 10px;
}

.cdhc-card:hover .cdhc-copy,
.cdhc-card:focus-visible .cdhc-copy {
  transform: translateY(0);
}

.cdhc-title,
.cdhc-text,
.cdhc-button {
  margin: 0;
}

.cdhc-title {
  color: #fff;
}

.cdhc-text {
  color: rgba(255,255,255,0.92);
}

.cdhc-divider {
  display: block;
  width: var(--cdhc-divider-width, 56px);
  max-width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.75);
  transition: width var(--cdhc-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.cdhc-card:hover .cdhc-divider,
.cdhc-card:focus-visible .cdhc-divider {
  width: var(--cdhc-divider-hover-width, 96px);
}

.cdhc-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity calc(var(--cdhc-duration) * 0.65) ease,
    transform var(--cdhc-duration) cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  color: #111;
  background: #fff;
  padding: 12px 20px;
}

.cdhc-card:hover .cdhc-button,
.cdhc-card:focus-visible .cdhc-button {
  opacity: 1;
  transform: translateY(0);
}

.cdhc-empty {
  padding: 16px;
  border: 1px dashed #ccc;
}

@media (max-width: 1024px) {
  .cdhc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cdhc-grid {
    grid-template-columns: 1fr;
  }

  .cdhc-copy,
  .cdhc-button,
  .cdhc-card:hover .cdhc-copy,
  .cdhc-card:hover .cdhc-button,
  .cdhc-card:focus-visible .cdhc-copy,
  .cdhc-card:focus-visible .cdhc-button {
    transform: none;
    opacity: 1;
  }
}

.cdhc-button-icon {
  display: inline-flex;
  line-height: 1;
}

.cdhc-button-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}
