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

@property --color-image-column-item-title {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-image-column-item-text {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-image-column-dark-gray {syntax: "<color>";inherits: true;initial-value: #555;}

.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: 99.55vw;

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 2.5rem 20px;

        @include title;
        
        .content {
            width: 100%;
            display: flex;

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

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

                &.w-40 {
                    width: 40%;
                    padding-right: 2rem;
                    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%;
                        padding-bottom: 1rem;
                        display: inline-block;
                        color: var(--color-image-column-item-title);
                    }

                    .item-text {
                        text-align: justify;
                        color: var(--color-image-column-dark-gray);
                        margin-bottom: 0;
                        color: var(--color-image-column-item-text);
                    }
                }
            }
        }

        .buttons {
            padding-top: 1rem;
            display: flex;
            justify-content: center;
            gap: 1rem;
    
            @media (max-width: 350px) {
                & {
                    flex-direction: column;
                }
            }
    
            @include buttons-links;
        }
    }
}

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