/* Text Image block boilerplate styles */
.text-image-block {
    font-style: normal;
}

.text-image-block h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 40px;

}

.text-image-block p {
    font-size: 18px;
    font-weight: 400;
}

.text-image-block__inner {
    display: grid;
    grid-template-columns: calc(50% - 28.5px) calc(50% - 28.5px);
    gap: 57px;
}

.text-image-block__inner--vertical-aligned {
    align-items: center;
    background-color: transparent;
}

.text-image-block__inner--vertical-aligned > .text-image-block__content > p {
    display: inline-block;
    position: relative;
    z-index: 1;
    color: white;
    background-color: var(--bs-dark-text-color);
    padding: 70px 40px;
    margin-left: calc(-57px - 45px);
}

.text-image-block__inner--vertical-aligned.text-image-block__inner--image-right > .text-image-block__content > p {
    margin-left: 0;
    margin-right: calc(-57px - 45px);
}

.text-image-block__content > div {
    display: inline-block;
    background-color: var(--bs-dark-text-color);
    color: white;
    padding: 20px 15px;

    margin-left: calc(-57px - 45px);
}

.text-image-block__inner--image-right .text-image-block__content > div {
    margin-left: 0;
    margin-right: calc(-57px - 45px);
}

.text-image-block__media {
    overflow: hidden;
}

.text-image-block__media img {
    object-fit: contain;
    display: block;
    width: 100%;
    height: 100%;
}

.text-image-block__table {
    border-collapse: collapse;
}

.text-image-block__table td {
    padding: 0 10px;
    font-size: 18px;
}

.text-image-block__table th {
    border-bottom: 2px solid white;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}


@media (max-width: 1024px) {
    .text-image-block h2 {
        margin-bottom: 28px;
    }

    .text-image-block__inner {
        grid-template-columns: 1fr;
    }

    .text-image-block__inner--image-right .text-image-block__media {
        order: -1;
    }

    .text-image-block__content > div {
        display: table;
        margin-left: auto;
        margin-right: auto;
        margin-top: calc(-57px - 45px);
    }

    .text-image-block__inner--vertical-aligned > .text-image-block__content > p,
    .text-image-block__inner--vertical-aligned.text-image-block__inner--image-right > .text-image-block__content > p {
        margin-left: auto;
        margin-right: auto;
        display: table;
        margin-top: calc(-57px - 45px);
        max-width: 80%;
    }

}

@media (max-width: 425px) {
    .text-image-block h2 {
        margin-bottom: 18px;
    }

    .text-image-block__table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .text-image-block__table thead,
    .text-image-block__table tbody,
    .text-image-block__table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .text-image-block__table th,
    .text-image-block__table td {
        font-size: 13px;
        padding: 6px 6px;
        word-break: break-word;
        hyphens: auto;
    }

    .text-image-block__table th {
        border-bottom-width: 1px;
    }

    /* Pull the content box back to full width on tiny screens */
    .text-image-block__content > div {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .text-image-block__inner--vertical-aligned > .text-image-block__content > p,
    .text-image-block__inner--vertical-aligned.text-image-block__inner--image-right > .text-image-block__content > p {
        margin-left: auto;
        margin-right: auto;
        max-width: none;
    }
}