/**
 * Styling for the card block, used in multiple feature modules.
 */

.card {
    display: flex;
    flex-flow: column nowrap;
    border: 1px solid var(--color-grey-150);
    border-radius: 4px;
    word-break: break-word;
}

.card .img-box .img {
    width: 100%;
    height: 0;
    background-size: cover;
    padding-top: calc(9 / 16 * 100%); /* 16:9 aspect ratio */
}

.card .text-pane {
    padding: var(--spacing-6);
}

.card .text-pane .heading {
    margin-bottom: var(--spacing-4);
}

.card .text-pane .blurb.truncated {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card .button {
    flex-direction: row;
}
.card .text-pane .text-button {
    width: fit-content;
    margin-top: var(--spacing-7);
}

/* Breakpoint S */
@media screen and (min-width: 0px) and (max-width: 768px) {
    .card {
        flex-basis: unset;
    }
}
