/* ---------- Card shell ---------- */
.node-card {
    border: unset;
    min-height: 520px;
    height: 100%;
    max-width: calc(1.5rem + 350px);
}
.node-card.node-card-large {
    max-width: calc(1.5rem + 450px);
}
.node-card-body {
    padding: 1.5rem 1.5rem 0rem 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* ---------- Images ---------- */
.node-card-image {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}
.node-card-image-link {
    display: block;
}
.node-card-image .field--name-field-media-image,
.node-card-image .field--name-field-image {
    margin: unset;
}

.node-card-image.missionary-profile-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.missionary-profile-card-image .missionary-profile-image,
.node-card .image-style-card-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: left top;
}
.node-card .image-style-card-thumbnail {
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

/* ---------- Eyebrow (hidden unless inside full search; see full-search.css) ---------- */
.node-card-eyebrow {
    display: none;
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ---------- Subtitle ---------- */
.node-card-subtitle {
    padding-bottom: .5rem;
    display: flex;
    gap: .5rem;
}

/* ---------- Title & text clamping ---------- */
.node-card-title,
.node-card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.node-card-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.node-card-text {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}
.node-card-text-long {
    overflow: scroll;
}
/* Margins inside a clamped box let the clipped lines show through */
.node-card-text p,
.node-card-title p {
    margin-bottom: 0;
}

/* ---------- Button ---------- */
.node-card .node-card-button {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    bottom: -1rem;
}