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

@property --color-logo-team-link {syntax: "<color>";inherits: true;initial-value: #3a96e0;}
@property --color-logo-team-link-hover {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-logo-team-title {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-logo-team-description {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-logo-team-dark-gray {syntax: "<color>";inherits: true;initial-value: #555;}

.rdg-blocks .rdg-logo-team {
    .preview-thumbs {
        background-image: url('../images/rdg-logo-team-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: 2.5rem 20px;
        
        .content {
            width: 100%;
            display: flex;

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

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

                &.w-20 {
                    width: 20%;
                    padding-right: 2rem;
                    justify-content: end;

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

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

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

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

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

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

            .items {
                &.w-80 {
                    width: 80%;

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

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

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

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

                .item {
                    .item-link {
                        color: var(--color-logo-team-link);
                        padding-bottom: 1rem;

                        &:hover {
                            color: var(--color-logo-team-link-hover);
                        }
                    }

                    .item-title {
                        width: 100%;
                        padding-bottom: 1rem;
                        display: inline-block;
                        color: var(--color-logo-team-title);
                    }

                    .item-text {
                        text-align: justify;
                        color: var(--color-logo-team-dark-gray);
                        margin-bottom: 0;
                        color: var(--color-logo-team-description);
                    }
                }
            }
        }
    }
}

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