/*
 * FUNDING TYPES AND FUNDING PROGRAMS LIST: cards of the base list (.list__wrapper, .list--cards, see base.css) with
 * title, teaser and a full width button (design C3), the same style for both plugins
 */

:is(.content-element--nrwkulturprograms_fundingtypes, .content-element--nrwkulturprograms_fundingprograms) {
    display: flex;
    flex-direction: column;
}

/*
 * Funding programs: the first image 16:9 on top of the card (like the internal programs, see ArtistGroups.css), it
 * reaches the border of the card, title, teaser and button below have the padding of the card
 */

/* Same specificity as the card of the base list, to replace its padding */
.list__wrapper.list--cards .list__item--fundingprogram {
    gap: 0;
    overflow: hidden;
    padding: 0;
}

/* Format landscape (16:9, see ImageViewHelper), the box keeps it without image */
.list__item--fundingprogram .list__item__media {
    aspect-ratio: var(--ratio--landscape);
    background-color: var(--color--light-grey);
}

.list__item--fundingprogram .list__item__image {
    height: 100%;
}

.list__item--fundingprogram :is(.list__item--content, .list__item--action) {
    padding-inline: var(--card--padding);
}

.list__item--fundingprogram .list__item--content {
    flex-grow: 1;
    padding-top: var(--card--padding);
}

/* Gap of the base card between text and button */
.list__item--fundingprogram .list__item--action {
    padding-top: var(--grid--gap);
    padding-bottom: var(--card--padding);
}
