.card {
  display: block;
  border-radius: var(--mantine-radius-md);
  background: var(--mantine-color-blue-9);
  color: #fff;
  overflow: hidden;

  .stack {
    padding: var(--mantine-spacing-lg);
  }

  @container (min-width: 800px) {
    display: flex;
    min-height: 100%;
    align-items: stretch;

    /* border-color is dynamic based on the color prop; set via style or a modifier class */
    .stack {
      padding: 30px var(--mantine-spacing-lg);
    }
  }
}

.imageContainer {
  height: 200px;
  width: 100%;

  @container (min-width: 800px) {
    width: 300px;
    height: auto;
    margin-right: var(--mantine-spacing-lg);
    border-bottom: none;
  }

  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

.stack {
  flex: 1;
}

.title {
  font-size: var(--mantine-font-size-lg);

  @container (min-width: theme('screens.sm')) {
    // md breakpoint (Mantine default)
    font-size: var(--mantine-font-size-xl);
  }
}

.text {
  font-size: var(--mantine-font-size-md);

  @container (min-width: theme('screens.sm')) {
    font-size: var(--mantine-font-size-lg);
  }
}

.action {
  align-self: flex-start;
  color: #fff;
  border-color: #fff;
  border-width: 2px;

  &:hover {
    background-color: var(--mantine-color-blue-8);
  }
}
