.heading-text-buttons__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 1px;
}

.heading-text-buttons__layout {
    align-items: start;
    display: grid;
    column-gap: var(--block-column-gap);
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    row-gap: 0;
    min-height: 1px;
    width: 100%;
}
.heading-text-buttons__heading {
    margin-bottom: 0;
}

.heading-text-buttons__heading-column,
.heading-text-buttons__content {
    min-width: 0;
}

.heading-text-buttons__heading-column {
    display: flex;
    flex-direction: column;
    gap: var(--block-content-flow-gap, var(--space-l));
}

.heading-text-buttons__content {
    box-sizing: border-box;
    width: 100%;
}

.heading-text-buttons--buttons-left-column .heading-text-buttons__layout,
.heading-text-buttons--has-card .heading-text-buttons__layout,
.heading-text-buttons--has-left-text .heading-text-buttons__layout {
    align-items: stretch;
}

.heading-text-buttons--buttons-left-column .heading-text-buttons__heading-column {
    gap: var(--block-content-flow-gap-before-buttons, var(--space-l));
}

.heading-text-buttons .heading-text-buttons__left-text {
    margin-top: auto;
    margin-bottom: 0;
    margin-block-start: auto;
    margin-block-end: 0;
}

.heading-text-buttons__left-text > :where(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, p, blockquote, ul, ol):last-child {
    margin-bottom: 0;
    margin-block-end: 0;
}

.heading-text-buttons--buttons-left-column .heading-text-buttons__buttons {
    align-items: flex-start;
    flex-direction: column;
    margin-top: auto;
    margin-block-start: auto;
}

.heading-text-buttons__left-text + .heading-text-buttons__buttons {
    margin-top: 0;
    margin-block-start: 0;
}

.heading-text-buttons__card {
    background-color: var(--color-grey, #d9d9d9);
    box-sizing: border-box;
    color: var(--color-midnight-blue, #0c2840);
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-block-start: auto;
    max-width: 20rem;
    min-width: 0;
    padding: var(--space-m);
    width: 100%;
}

.heading-text-buttons--has-card .heading-text-buttons__left-text,
.heading-text-buttons--has-card.heading-text-buttons--buttons-left-column .heading-text-buttons__buttons {
    margin-top: 0;
    margin-block-start: 0;
}

.heading-text-buttons__card-media {
    aspect-ratio: 3 / 2;
    background-color: var(--color-soft-white, #f5f5f5);
    overflow: hidden;
    width: 100%;
}

.heading-text-buttons__card-image {
    display: block;
    height: 100%;
    max-width: none;
    object-fit: cover;
    width: 100%;
}

.heading-text-buttons__card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding-top: var(--space-s);
}

.heading-text-buttons .heading-text-buttons__card-heading {
    margin: 0;
}

.heading-text-buttons__card-buttons {
    margin-top: auto;
    padding-top: var(--space-m);
}

.heading-text-buttons__card-buttons.block-content-buttons {
    gap: 0.5rem;
}

.heading-text-buttons--columns-half-half .heading-text-buttons__layout {
    column-gap: 0;
    grid-template-columns: minmax(0, 5.5fr) minmax(0, 1fr) minmax(0, 5.5fr);
}

.heading-text-buttons--columns-half-half .heading-text-buttons__heading-column {
    grid-column: 1;
}

.heading-text-buttons--columns-half-half .heading-text-buttons__content {
    grid-column: 3;
}

.heading-text-buttons--columns-sixty-forty .heading-text-buttons__layout {
    column-gap: var(--block-column-gap);
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.heading-text-buttons--columns-sixty-forty .heading-text-buttons__heading-column {
    grid-column: 1 / span 6;
}

.heading-text-buttons--columns-sixty-forty .heading-text-buttons__content {
    grid-column: 8 / span 5;
}

.heading-text-buttons--no-heading .heading-text-buttons__layout,
.heading-text-buttons--no-content .heading-text-buttons__layout {
    grid-template-columns: minmax(0, 1fr);
}

.heading-text-buttons--no-heading .heading-text-buttons__content {
    grid-column: 1 / -1;
}

.heading-text-buttons--columns-sixty-forty.heading-text-buttons--no-content .heading-text-buttons__heading-column {
    grid-column: 1 / -1;
}

@media (max-width: 781px) {
    .heading-text-buttons--columns-sixty-forty .heading-text-buttons__layout,
    .heading-text-buttons--columns-half-half .heading-text-buttons__layout,
    .heading-text-buttons__layout {
        row-gap: 2rem;
        grid-template-columns: 1fr;
    }

    .heading-text-buttons--columns-sixty-forty .heading-text-buttons__heading-column,
    .heading-text-buttons--columns-sixty-forty .heading-text-buttons__content,
    .heading-text-buttons--columns-half-half .heading-text-buttons__heading-column,
    .heading-text-buttons--columns-half-half .heading-text-buttons__content,
    .heading-text-buttons__heading-column,
    .heading-text-buttons__content {
        grid-column: auto;
    }
}
