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

@property --color-banner-sidebar-positions {syntax: "<color>";inherits: true;initial-value: #ffffff;}

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

    .preview-thumbs {
        background-image: url('../images/rdg-banner-sidebar-template-preview.jpg');
    }

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;

        .body {
            border-radius: .8rem;
            height: auto;
            background-repeat: no-repeat;
            background-size: cover;
            padding-bottom: 1rem;

            @media (max-width: 768px) {
                & {
                    background-position: right;
                }
            }

            @media (max-width: 576px) {
                & {
                    background-position: right;
                }
            }
    
            .positions {
                display: flex;
                flex-direction: row;
                align-items: center;
                width: 100%;
                height: 100%;
                color: var(--color-banner-sidebar-positions);
                align-items: flex-start;
    
                @media (max-width: $breakpoint-md) {
                    & {
                        padding-left: 1rem !important;
                        padding-right: 1rem !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;
                    height: 100%;
    
                    @media (max-width: $breakpoint-sm) {
                        & {
                            flex-direction: column;
                        }
                    }
    
                    .texts {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: center;
    
                        @media (max-width: $breakpoint-sm) {
                            & {
                                justify-content: start;
                            }
                        }
    
                        .content {
                            @media (max-width: 350px) {
                                & {
                                    width: 100% !important;
                                }
                            }
    
                            h1, h2, h3, span {
    
                                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);
                                        padding: 0;
                                        margin: 0;
                                    }
                                }
                            }
                        }
                    }
    
                    .button {
                        display: flex;
                        justify-content: center;
                        background-color: inherit;
                        border: none;
                        padding: 0;
    
                        .link-member {
                            border-top: 2px solid var(--btn-box-shadow);
                        }
                    }
        
                    &.size-center {
                        flex-direction: column;

                        @media (max-width: 490px) {
                            & {
                                align-items: center;
                            }
                        }
    
                        @media (max-width: $breakpoint-sm) {
                            & {
                                height: initial;
                            }
                        }
    
                        .texts {
                            display: flex;
                            align-items: flex-end;
                            height: 100%;
    
                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 100%;
                                }
                            }
    
                            .content {
                                width: auto;
                                display: flex;
                                flex-direction: column;
    
                                @media (max-width: $breakpoint-md) {
                                    & {
                                        width: 100%;
                                    }
                                }
                            }
                        }
    
                        .button {
                            display: flex;
                            justify-content: flex-start;
                            padding-top: 1rem;
    
                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 100%;
                                    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-banner-sidebar {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
