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

.rdg-blocks .rdg-main-banner {
    width: 100%;

    .body {
        border-radius: .8rem;
        height: 9rem;
        background-repeat: no-repeat;
        background-size: cover;

        @media (max-width: 350px) {
            & {
                height: 12rem;
            }
        }

        .positions {
            display: flex;
            flex-direction: row;
            align-items: center;
            width: 100%;
            height: 100%;
            color: $color-white;
            align-items: flex-start;

            @media (max-width: $breakpoint-md) {
                & {
                    padding-left: 1.5rem !important;
                    padding-right: 1.5rem !important;
                }
            }

            @media (max-width: $breakpoint-sm) {
                & {
                    padding: .5rem .5rem 0 .5rem !important;
                }
            }
    
            h1, h2, h3, h4, h5, span {
                text-align: center;
                margin: 0;
            }
    
            .position {
                display: flex;
                align-items: center;
                justify-content: center;

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

                .texts {
                    display: flex;
                    flex-direction: column;
                    align-items: center;

                    .content {
                        @media (max-width: 350px) {
                            & {
                                width: 100% !important;
                            }
                        }

                        h1, h2, h3, span {
                            &:first-child {
                                @media (max-width: $breakpoint-sm) {
                                    & {
                                        padding-bottom: .5rem !important;
                                    }
                                }
                            }

                            font-size: var(--font-size);
                            line-height: var(--line-height);

                            @media (max-width: $breakpoint-lg) {
                                & {
                                    font-size: var(--font-size-lg);
                                    line-height: var(--line-height-lg);
                                }
                            }

                            @media (max-width: $breakpoint-md) {
                                & {
                                    font-size: var(--font-size-md);
                                    line-height: var(--line-height-md);
                                }
                            }

                            @media (max-width: $breakpoint-sm) {
                                & {
                                    font-size: var(--font-size-sm);
                                    line-height: var(--line-height-sm);
                                }
                            }
                        }
                    }
                }

                .button {
                    display: flex;
                    justify-content: center;
                    background-color: inherit;
                    border: none;

                    .link-member {
                        border-top: 2px solid var(--btn-box-shadow);
                    }
                }
    
                &.size-left {
                    @media (max-width: $breakpoint-md) {
                        & {
                            align-items: center;
                            width: 100% !important;
                        }
                    }
    
                    @media (max-width: 490px) {
                        & {
                            align-items: center;
                        }
                    }

                    .texts {
                        width: 30%;
                        display: flex;
                        align-items: flex-start;

                        @media (max-width: $breakpoint-xl) {
                            & {
                                width: 35%;
                            }
                        }

                        @media (max-width: $breakpoint-lg) {
                            & {
                                width: 40%;
                            }
                        }

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

                        @media (max-width: $breakpoint-sm) {
                            & {
                                width: 100%;
                                align-items: flex-start;
                            }
                        }

                        .content {
                            width: auto;
                            display: flex;
                            flex-direction: column;
                        }
                    }

                    .button {
                        width: 70%;
                        display: flex;
                        justify-content: flex-start;
                        padding-left: 2rem;

                        @media (max-width: $breakpoint-xl) {
                            & {
                                width: 65%;
                            }
                        }

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

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

                        @media (max-width: $breakpoint-sm) {
                            & {
                                width: 100%;
                                padding: 1rem 0 0 0;
                                padding-left: 0;
                                justify-content: flex-start;
                            }
                        }

                        @media (max-width: 350px) {
                            & {
                                justify-content: center;
                            }
                        }

                        a {
                            width: auto;

                            @media (max-width: 350px) {
                                & {
                                    font-size: 1rem !important;
                                }
                            }
                        }
                    }
                }
    
                &.size-center {
                    @media (max-width: 490px) {
                        & {
                            align-items: center;
                        }
                    }

                    .texts {
                        width: 50%;
                        display: flex;
                        align-items: flex-end;

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

                        .content {
                            width: auto;
                            display: flex;
                            flex-direction: column;

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

                    .button {
                        width: 50%;
                        padding-left: 4rem;
                        display: flex;
                        justify-content: flex-start;

                        @media (max-width: $breakpoint-md) {
                            & {
                                width: 100%;
                                padding-top: 0;
                                padding-left: 0;
                                justify-content: center;
                            }
                        }

                        @media (max-width: $breakpoint-sm) {
                            & {
                                padding-top: 1rem ;
                            }
                        }

                        a {
                            width: auto;

                            @media (max-width: 350px) {
                                & {
                                    font-size: 1rem !important;
                                }
                            }
                        }
                    }
                }
    
                &.size-right {
                    @media (max-width: $breakpoint-md) {
                        & {
                            align-items: center;
                            width: 100% !important;
                        }
                    }
    
                    @media (max-width: 490px) {
                        & {
                            align-items: center;
                        }
                    }

                    .texts {
                        width: 75%;
                        display: flex;
                        align-items: flex-end;

                        @media (max-width: $breakpoint-xl) {
                            & {
                                width: 70%;
                            }
                        }

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

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

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

                        .content {
                            width: auto;
                            display: flex;
                            flex-direction: column;
                        }
                    }

                    .button {
                        width: 25%;
                        display: flex;
                        justify-content: flex-end;

                        @media (max-width: $breakpoint-xl) {
                            & {
                                width: 30%;
                            }
                        }

                        @media (max-width: $breakpoint-lg) {
                            & {
                                width: 40%;
                            }
                        }

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

                        @media (max-width: $breakpoint-sm) {
                            & {
                                width: 100%;
                                padding: 1rem 0 0 0;
                            }
                        }

                        @media (max-width: 350px) {
                            & {
                                justify-content: center;
                            }
                        }

                        a {
                            width: auto;

                            @media (max-width: 350px) {
                                & {
                                    font-size: 1rem !important;
                                }
                            }
                        }
                    }
                }
    
                &.size-small {
                    @media (max-width: $breakpoint-md) {
                        & {
                            width: 0% !important;
                        }
                    }
                }

                .link-member {
                    @include button('success');

                    padding: .8rem 1.5rem !important;
                }
            }
        }
    }
}

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