@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

.rdg-blocks .rdg-image-column {
    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;

    .container {
        @media (max-width: $breakpoint-sm) {
            & {
                padding: 0;
            }
        }

        .title {
            text-align: center;
            padding-bottom: 3rem;

            span {
                font-size: 4rem;

                @media (max-width: $breakpoint-md) {
                    & {
                        font-size: 3.5rem;
                    }
                }

                @media (max-width: $breakpoint-sm) {
                    & {
                        font-size: 3rem;
                    }
                }
            }
        }
        
        .content {
            width: 100%;
            display: flex;

            @media (max-width: $breakpoint-md) {
                & {
                    flex-direction: column;
                }
            }

            .image {
                display: flex;
                align-items: flex-start;

                &.w-40 {
                    width: 40%;
                    padding-right: 3rem;
                    justify-content: end;
                }

                &.w-100 {
                    width: 100%;
                    justify-content: center;
                }

                @media (max-width: $breakpoint-md) {
                    & {
                        &.w-40 {
                            width: 100%;
                            padding-right: 0;
                            padding-bottom: 2rem;
                            justify-content: center;
                        }
                    }
                }

                img {
                    @media (max-width: $breakpoint-md) {
                        & {
                            width: 60%;
                        }
                    }

                    @media (max-width: $breakpoint-sm) {
                        & {
                            width: 80%;
                        }
                    }
                }
            }

            .items {
                &.w-60 {
                    width: 60%;
                }

                &.w-100 {
                    width: 100%;
                }

                @media (max-width: $breakpoint-md) {
                    & {
                        &.w-60 {
                            width: 100%;
                        }
                    }
                }

                .item {
                    padding-bottom: 1.5rem;

                    .item-title {
                        width: 100%;
                        font-size: 2rem;
                        font-weight: 600;
                        padding-bottom: 1rem;
                        display: inline-block;

                        @media (max-width: $breakpoint-md) {
                            & {
                                font-size: 1.7rem;
                            }
                        }

                        @media (max-width: $breakpoint-sm) {
                            & {
                                font-size: 1.5rem;
                            }
                        }
                    }

                    .item-text {
                        font-size: 1.5rem;
                        text-align: justify;
                        color: $color-dark-gray;
                    }
                }
            }
        }

        .buttons {
            padding-top: 2rem;
            display: flex;
            justify-content: center;

            a {
                margin-top: 1rem;
                padding: 1.5rem 4rem;
                font-size: 1.6rem;
                font-weight: 500;
            }
        }
    }
}

.acf-block-preview {
    .rdg-image-column {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
