/* People cards for speakers & team members about page blocks */
.person-cards {
    display: flex;
    flex-wrap: wrap;
    margin-right: -22px;
}

.person-cards.person-cards--centred {
    justify-content: center;
}

.person-cards .person-card {
    flex: 0 0 auto;
    margin-right: 22px;
}

.person-card {
    margin-bottom: 22px;
}

/* Orange people cards */
.person-card--orange .image-text--overlay:after {
    display: block;
    content: '';
    background-color: #D85849;
    z-index: 2;
    position: absolute;
    width: 100%;
    border-radius: 8px;
    top: 100%;
    left: 0;
    bottom: 0;
    mix-blend-mode: multiply;
    transition: top 0.2s ease-in-out;
}

.person-card--orange.no-overlay .image-text--overlay:after {
    display: none;
}

@media (prefers-reduced-motion) {
    .person-card--orange .image-text--overlay:after {
        transition: none;
    }
}

.person-card--orange a.image-text--overlay:hover:after {
    top: 0;
}

.person-card--orange .card--image {
    width: 282px;
    min-height: 340px;
    background-color:#F9FAFB;
}

.person-card--orange .image-overlay {
    padding: 15px;
    z-index: 3;
}

.person-card--orange a.image-text--overlay:hover .image-overlay.region--dark {
    background-color: #D85849;
}

.person-card--orange .card--name {
    font-size: 2rem;
    font-family: "abril_textbold", 'Times', 'Times New Roman', serif;
}

/* Grey people cards */
.person-card--grey {
    background-color:#ECECEC;
    border-radius: 23px;
    padding: 14px;
}

.person-card--grey .card--image {
    width: 240px;
    height: 290px;
    margin-bottom: 14px;
    border-radius: 16px;
}

.person-card--grey .card--text {
    font-family: "abril_textbold", 'Times', 'Times New Roman', serif;
    text-align: center;
    max-width: 268px;
}

/* Light grey card w/rounded corners */
.card--grey--rounded {
    border-radius: 10px;
    border: 1px solid #D0D5DD;
}

.card--grey--rounded.link-card {
    padding: 0;
}

.card--grey--rounded.link-card:hover {
    border: 1px solid #D85849;
    box-shadow: 0px 4px 32px -2px rgba(33,33,33,5%), 0px 2px 8px -2px rgba(33,33,33,6%);
}

.link-card > a:link,
.link-card > a:visited,
a.link-card:link,
a.link-card:visited {
    color: #171415;
    text-decoration: none;
    height: 100%;
}

a.link-card:hover,
a.link-card:focus,
a.link-card:active,
.link-card a:hover,
.link-card a:focus,
.link-card a:active,
.link-card > a:hover h2,
.link-card > a:active h2,
.link-card > a:focus h2,
.link-card > a:hover h3,
.link-card > a:active h3,
.link-card > a:focus h3 {
    color:#D92D20;
    text-decoration: underline;
}

/* Categories cards - used on library page for taxonomy categories */
.categories-cards {
    display: flex;
    flex-wrap: wrap;
    margin-right: -9px;
}

.categories-cards > * {
    flex: 0 0 192px;
    margin-right: 9px;
    margin-bottom: 13px;
}

.categories-card {
    display: flex;
    flex-direction: column;
}

.categories-card--image,
.categories-card img {
    border-radius: 10px 10px 0 0;
}

.categories-card--image {
    min-height: 174px;
}

.categories-card--text {
    padding: 14px;
}

.categories-card h2,
.categories-card h3 {
    font-size: 2rem;
    margin-bottom: 0.25em;
}

.categories-card .categories-card--description {
    max-width: 16rem;
    font-size: 1.6rem;
}

/* Side-by-side image and content teaser; image is about 40% width, doesn't break. Usually displayed 2 by 2 on larger screens. Used for e.g. articles homepage block & special programs block on programs page */
@media all and (min-width: 1100px) {
    .article-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 20px;
    }
}

.article-card {
    display: flex;
    flex-wrap: wrap;
    background-color: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media all and (min-width: 700px) {
    .article-card {
        flex-wrap: nowrap;
    }
}

.article-card.article-card--solid {
    background-color: #F9FAFB;
}

.article-card.article-card--outline {
    background-color: transparent;
    border: 1px solid #D0D5DD;
}

.article-card .article-card--image {
    flex: 1 1 240px;
    border-radius: 8px 8px 0 0;
    min-height: 285px;
}

@media all and (min-width: 700px) {
    .article-card .article-card--image {
        flex: 0 0 240px;
        border-radius: 8px 0 0 8px;
    }
}

.article-card .article-card--text {
    flex: 1 1 auto;
    padding: 1.6rem 2rem;
}

.article-card .article-card--text h3 {
    margin-bottom: 0.25em;
}

.article-card p.article-card--body {
    margin-bottom: 0.5em;
}

/* Vertical layout article cards. Used on new articles listing pages & related articles block on article nodes */
.article-card--vert {
    display: flex;
    flex-direction: column;
    background-color: #F2F3F4;
    border-radius: 8px;
    max-width: 380px;
}

.article-card--vert > a.image-link, 
.article-card--vert > a.image-link img {
    border-radius: 8px 8px 0 0;
}

.article-card--vert a:link,
.article-card--vert a:visited {
    text-decoration: none;
}

.article-card--vert a:focus,
.article-card--vert a:hover,
.article-card--vert a:active {
    text-decoration: underline;
}

.article-card--vert h3 {
    margin-top: 16px;
    margin-left: 20px;
    margin-right: 20px;
}

.article-card--vert .text {
    padding: 0px 20px 20px 20px;
}

.article-card--vert .article-meta {
    row-gap: 0.25em;
    border-bottom: 1px solid #171415;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.article-card--vert .article-meta > * {
    margin-bottom: 0.25em;
}

.article-card--vert .article-author--content,
.article-card--vert .article-tags--content {
    font-weight: bold;
}

.article-card--vert .article--author-date,
.article-card--vert .article-date,
.article-card--vert .article-meta .article-author,
.article-card--vert .article-meta .article-tags,
.article-card--vert .article-author--content {
    display: flex;
}

.article-card--vert .article--author-date {
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 0.25em;
}

.article-card--vert .article-author--content,
.article-card--vert .article-date--content,
.article-card--vert .article-tags--content {
    flex-wrap: wrap;
    transform: translateY(-0.25em);
}

.article-card--vert .article-meta svg {
    margin-right: 10px;
    flex: 0 0 auto;
}

.article-card--vert .article-body {
    font-size: 1.8rem;
}

/* article category cards. Used on library page */
.cards--article-categories {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
}

.cards--article-categories > * {
    flex: 0 0 auto;
    margin-right: 15px;
    margin-bottom: 15px;
}

.card--article-category,
.card--article-category > a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card--article-category img {
    border-radius: 20px;
    margin-bottom: 2.8rem;
}

/* Browse media cards */
.media-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, max-content));
    gap: 30px;
}

.media-cards .media-card {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media all and (min-width: 1100px) {
    .media-cards .media-card {
        font-size: 2.5rem;
    }
}

.media-card img {
    margin-bottom: 20px;
    border-radius: 40px;
}

/* Travel cards */
.travel-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.travel-cards > * {
    flex: 0 1 auto;
}

.travel-card {
    box-shadow: -4px 4px 8px 0 rgba(23, 20, 21, 0.2);
    position: relative;
}

.travel-card,
.travel-card img,
.travel-card .img {
    border-radius: 8px 8px 8px 0;
}

.travel-card .card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    background-color: white;
    padding: 8px 10px;
    border-radius: 0 8px 0 0;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media all and (min-width: 900px) {
    .travel-card .card-text {
        padding: 12px 20px 20px 20px;
    }
}

.travel-card h3 {
    margin-bottom: 0;
}

@media all and (max-width: 560px) {
    .travel-card h3 {
        font-size: 2.2rem;
    }
}

.travel-card .travel-dates {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.travel-card.travel-card--hero .card-text {
    width: auto;
    margin-right: 40px;
}

@media all and (max-width: 699px) {
    .travel-card.travel-card--hero .card-text svg {
        width: 20px;
    }
}

.travel-card.travel-card--hero .travel-dates {
    font-family: 'abril_textregular', 'Times', 'Times New Roman', serif;
}

@media all and (min-width: 700px) {
    .travel-card.travel-card--hero .travel-dates {
        font-size: 2.8rem;
    }
}

/* Testimonials */
.card--quote {
    background: #F9FAFB url(../../images/quote--light-grey.svg) no-repeat top 30px left 30px;
    border-radius: 8px;
    padding: 110px 30px 30px 30px;
}

.card--quote .quote--body {
    margin-bottom: 20px;
}

.card--quote .quote--attribution {
    font-weight: bold;
    font-size: 1.8rem;
}