﻿.split-image-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 1100px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: 8px;
}

.split-image-text__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 360px;
    box-sizing: border-box;
    background: #edf1f5;
    color: #111827;
    padding: 0 30px;
}

.split-image-text__image-wrap {
    position: relative;
    min-width: 0;
    min-height: 360px;
    overflow: hidden;
    background: #e5e7eb;
}

.split-image-text__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.split-image-text__title {
    margin: 0 0 1rem;
    font-size: var(--h2);
    line-height: 1.2;
    font-weight: 700;
}

.split-image-text__content {
    line-height: 1.6;
}
    .split-image-text__content p {
        font-size: var(--body);
    }
    .split-image-text__content > :first-child {
        margin-top: 0;
    }

    .split-image-text__content > :last-child {
        margin-bottom: 0;
    }

.split-image-text__cta {
    align-self: flex-start;
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    background: #1267b2;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.split-image-text__empty {
    padding: 1rem;
    border: 1px dashed #9ca3af;
    border-radius: 4px;
    color: #6b7280;
}

.split-image-text__upload {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 360px;
    padding: 2rem;
    box-sizing: border-box;
}

.split-image-text__wcag-warning {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, .94);
    color: #b42318;
    font-size: 0.875rem;
}

.split-image-text--tekst-prawo .split-image-text__text {
    grid-column: 2;
    grid-row: 1;
}

.split-image-text--tekst-prawo .split-image-text__image-wrap {
    grid-column: 1;
    grid-row: 1;
}

@media (max-width: 768px) {

    .split-image-text,
    .split-image-text--tekst-prawo {
        grid-template-columns: 1fr;
    }

        .split-image-text__text,
        .split-image-text--tekst-prawo .split-image-text__text {
            grid-column: 1;
            grid-row: 1;
            min-height: 0;
            padding: 2rem;
        }

        .split-image-text__image-wrap,
        .split-image-text--tekst-prawo .split-image-text__image-wrap {
            grid-column: 1;
            grid-row: 2;
            min-height: 280px;
        }

    .split-image-text__image {
        min-height: 280px;
    }
}

.split-image-text--tablet {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 2rem auto;
}

    .split-image-text--tablet .split-image-text__text {
        order: 1;
        width: 100%;
        min-height: 0;
        padding: 2.5rem;
    }

    .split-image-text--tablet .split-image-text__image-wrap {
        order: 2;
        width: 100%;
        min-height: 320px;
    }

    .split-image-text--tablet .split-image-text__image {
        min-height: 320px;
    }

.split-image-text--phone {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 1.5rem auto;
}

    .split-image-text--phone .split-image-text__text {
        order: 1;
        width: 100%;
        min-height: 0;
        padding: 1.5rem;
    }

    .split-image-text--phone .split-image-text__image-wrap {
        order: 2;
        width: 100%;
        min-height: 240px;
    }

    .split-image-text--phone .split-image-text__image {
        min-height: 240px;
    }

    .split-image-text--phone .split-image-text__title {
        font-size: 1.5rem;
    }
