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

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

    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-left: 20px;
        padding-right: 20px;

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

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

            @media (max-width: 576px) {
                & {
                    background-position: right;
                }
            }
    
            @media (max-width: 350px) {
                & {
                    height: auto;
                    padding-bottom: .5rem;
                }
            }
    
            .positions {
                display: flex;
                flex-direction: row;
                align-items: center;
                width: 100%;
                height: 100%;
                color: var(--color-white);
                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;
                                        line-height: 2rem;
                                    }
                                }
                            }
                        }
                    }
    
                    .button {
                        display: flex;
                        justify-content: center;
                        background-color: inherit;
                        border: none;
                        padding: 0;
    
                        .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: $breakpoint-sm) {
                            & {
                                height: initial;
                            }
                        }
        
                        @media (max-width: 490px) {
                            & {
                                align-items: center;
                            }
                        }
    
                        .texts {
                            width: 30%;
                            display: flex;
                            align-items: flex-start;
                            height: 100%;
    
                            @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;
                            }
                        }
    
                        @media (max-width: $breakpoint-sm) {
                            & {
                                height: initial;
                            }
                        }
    
                        .texts {
                            width: 50%;
                            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 {
                            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: $breakpoint-sm) {
                            & {
                                height: initial;
                            }
                        }
        
                        @media (max-width: 490px) {
                            & {
                                align-items: center;
                            }
                        }
    
                        .texts {
                            width: 75%;
                            display: flex;
                            align-items: flex-end;
                            height: 100%;
    
                            @media (max-width: $breakpoint-xl) {
                                & {
                                    width: 70%;
                                }
                            }
    
                            @media (max-width: $breakpoint-lg) {
                                & {
                                    width: 60%;
                                }
                            }
    
                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 50%;
                                    align-items: center;
                                }
                            }
    
                            @media (max-width: $breakpoint-sm) {
                                & {
                                    width: 100%;
                                }
                            }
    
                            .content {
                                width: auto;
                                display: flex;
                                flex-direction: column;
                            }
                        }
    
                        .button {
                            width: 25%;
                            display: flex;
                            justify-content: center;
    
                            @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;
    }
}
