.printable-cards-grid {display: grid; gap: calc(var(--unit) * 3); grid-auto-rows: auto; grid-template-columns: repeat(5, 1fr);}

@media (max-width: 800px) {
    .printable-cards-grid {grid-template-columns: repeat(3, 1fr);}
}

@media (max-width: 400px) {
    .printable-cards-grid {
        gap: calc(var(--unit) * 2);
        grid-template-columns: repeat(2, 1fr);
    }
}

.card img {
    background-color: var(--lightGray);
    width: 100%;
    padding: 8px;
}

.card {
    background-color: var(--lightGray);
    border-radius: var(--unit);
    overflow: hidden;
    height: 215px;
    border: 1px solid var(--lightGrayHover);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-rows: 1.2fr 1fr;
}

div.img_part {
    border-bottom: 1px solid var(--lightGrayHover);
    overflow: hidden;
}

div.text_part {
    background-color: white;
    padding-inline: 8px;
    padding-top: 8px;
    padding-bottom: 4px;
    display: flex;
    gap: var(--unit);
    flex-direction: column;
}