.root {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.root[data-color-scheme='dark'] {
    background-color: var(--color-bg-fill-primary);
    color: var(--color-text-primary-inverted);
}

.root[data-color-scheme='neutral'] {
    background-color: var(--color-bg-neutral-light);
}

.container {
    display: flex;
    width: 100%;
    max-width: var(--content-max-width);
    padding: 60px 120px;
    position: relative;
    align-items: center;
    gap: 96px;
    overflow: hidden;
}

.container[data-image-position='left'] {
    flex-direction: row-reverse;
}

.textContainer {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1 1 50%;
}

.titleContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buttonContainer {
    width: fit-content;
}

.imageContainer {
    max-width: 600px;
    max-height: 600px;
    flex: 1 1 50%;
    display: flex;
}

.image {
    width: 100%;
    object-fit: contain;
}

.mobileImage {
    display: none;
}

.buttonMobile {
    display: none;
}

@media (width <= 1240px) {
    .container {
        gap: 48px;
    }
}

@media (width <= 1024px) {
    .container {
        padding: 60px 64px;
        gap: 40px;
    }

    .title h2 {
        font-size: var(--font-size-display-xs);
    }

    .description {
        font-size: var(--font-size-body-md);
    }
}

@media (width <= 820px) {
    .container {
        padding: 56px 48px;
        gap: 36px;
    }

    .title h2 {
        font-size: var(--font-size-heading-xl);
        line-height: var(--line-height-sm);
    }

    .buttonDesktop {
        display: none;
    }

    .buttonMobile {
        display: block;
    }
}

@media (width <= 768px) {
    .container,
    .container[data-image-position='left'] {
        flex-direction: column;
        gap: 0px;
        padding: 40px 20px;
    }

    .textContainer {
        gap: 32px;
    }

    .titleContainer {
        gap: 24px;
    }

    .image {
        display: none;
    }

    .mobileImageContainer {
        align-self: center;
        max-width: 728px;
        max-height: 728px;
    }

    .mobileImage {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .buttonContainer {
        width: 100%;
        margin-top: 16px;
    }
}
