.selector {
    height: fit-content;
    min-height: 24rem;
}