.bronk-text-image-layout {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 250px;
    border-radius: 25px;
    overflow: hidden;
}

.bronk-text-image-layout.reverse {
    grid-template-areas: "content image";
}

.bronk-text-image-layout.reverse .bronk-text-image-content {
    grid-area: content;
    order: 2;
}

.bronk-text-image-layout.reverse .bronk-text-image-image {
    grid-area: image;
    order: 1;
}

.bronk-text-image-content {
    background-color: var(--content-bg-color, #ffffff);
    display: flex;
    align-items: stretch;
    height: auto;
    order: 2;
}

.content-wrapper {
    padding: 40px;
    max-width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bronk-text-image-layout.no-description .content-wrapper {
    justify-content: flex-start;
}

.bronk-text-image-image {
    height: auto;
    min-height: 100%;
    position: relative;
    order: 1;
}

.bronk-text-image-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-image-button {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px 15px;
    text-decoration: none !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    width: fit-content;
    z-index: 1;
    color: var(--button-text-color, #ffffff) !important;
    background-color: var(--button-bg-color, #0A3A2D) !important;
    border: none;
    font-weight: 600;
}

.text-image-button.transparent {
    background-color: transparent !important;
    padding: 7px 15px;
}

.text-image-button.transparent[style*="--button-border-color"] {
    border: 2px solid var(--button-border-color);
}

.text-image-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--button-bg-hover-color, #099747);
    transition: left 0.3s ease;
    z-index: -1;
}

.text-image-button:hover::before {
    left: 0;
}

.text-image-button:hover {
    color: var(--button-text-hover-color, #ffffff) !important;
}

.text-image-button.transparent:hover {
    border: 2px solid var(--button-bg-hover-color, #099747);
}

.text-image-button i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.text-image-button:hover i {
    transform: translateX(3px);
}

.image-link {
    position: absolute;
    bottom: 40px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    z-index: 2;
    transition: all 0.3s ease;
    width: fit-content;
}

.image-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.image-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.image-link:hover i {
    transform: translateX(3px);
}

.bronk-text-image-image {
    position: relative;
}

/* Gradient overlay alleen voor button layout */
.layout-button .bronk-text-image-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.text-image-buttons {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bronk-heading {
    color: var(--title-color, #000000);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}


@media screen and (min-width: 768px) {
    .bronk-text-image-layout.no-description {
        height: 250px;
    }
}

@media screen and (min-width: 768px) and (max-width: 880px) {
    .bronk-text-image-layout.no-description {
        height: 320px;
    }
}

@media screen and (max-width: 768px) {
    .bronk-container-marge.text-image{
        padding:0px;
    }
    .image-link{
        left:40px;
    }
    .bronk-text-image-layout,
    .bronk-text-image-layout.reverse {
        display: flex;
        flex-direction: column;
        border-radius: 0px;
        height: auto;
    }

    .bronk-text-image-layout .bronk-text-image-image,
    .bronk-text-image-layout.reverse .bronk-text-image-image {
        order: 1;
    }

    .bronk-text-image-layout .bronk-text-image-content,
    .bronk-text-image-layout.reverse .bronk-text-image-content {
        order: 2;
    }

    .bronk-text-image-image {
        margin-left: 0;
        margin-right: 0;
        height: 340px;
    }
}

.bronk-text-image-layout:not(.no-description) .bronk-text-image-content {
    order: 2;
}

.bronk-text-image-layout:not(.no-description) .bronk-text-image-image {
    order: 1;
}

.bronk-text-image-layout.no-description .bronk-text-image-content {
    order: 1;
}

.bronk-text-image-layout.no-description .bronk-text-image-image {
    order: 2;
}