.c-card__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
    gap: 30px;
}

.c-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background-color: var(--card-bg, var(--color-white));
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--card-color, var(--color-grey-900));
}

.c-card__image {
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: var(--card-placeholder, var(--color-grey-500)); // fallback while image is loading
    border-radius: 20px 20px 0 0;
}

.c-card__info {
    padding: 12px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-primary);
    min-height: calc(1.5em + (12px * 2));
}

.c-card__tag-abbr {
    text-decoration: none;
}

.c-card__tag-first-letter {
    width: 22px;
    height: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    background-color: var(--card-tag-bg, var(--color-grey-900));
    color: var(--card-tag-color, var(--color-white));
    border-radius: 50%;
}

.card__time {
    display: flex;
    align-items: center;

    svg {
        margin-right: 6px;
        fill: var(--card-color, var(--color-grey-900));
    }
}

.c-card__title-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--card-color, var(--color-grey-900));

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        border-radius: 20px;
    }

    &:hover, &:focus {
        text-decoration: none;
        
        &::before {
            outline: none;
            box-shadow: var(--shadow-lg);
            color: var(--card-color, var(--color-grey-900));
            text-decoration: none;
        }
    }

    &:focus-visible {
        &::before {
            box-shadow: 0 0 0 2px var(--color-secondary), var(--shadow-lg);
        }
    }
}

.c-card__title {
    font-size: 1.4rem;
}