/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/

.pxl-team-grid1, .pxl-team-carousel1 {
    .pxl-swiper-slide {        
        &.swiper-slide-visible {
            border-right: 1px solid $primary_color;            
        }
    }
    .pxl-item--image {
        position: relative;
        overflow: hidden;
        margin-bottom: 21px;
        a.item-link {
            position: absolute;
            z-index: 3;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }
        img {
            @include transition(all 0.7s);            
            object-fit: cover;
        }
    }
    .pxl-item--title, .pxl-item--position {
        position: relative;
        z-index: 2;
    }
    .pxl-item--title {
        margin-bottom: 5px;
        @media #{$max-md} {
            font-size: 24px;
        } 
        a {
            color: inherit;
            &:hover {
                color: $secondary_color;
            }
        }
    }
    .pxl-item--position {
        position: relative;
        display: inline-block;
        font-size: 20px;
        font-weight: 400;
        color: $primary_color;
        margin-bottom: 30px;
    }
    .pxl-item--social {
        display: flex;
        align-items: center;        
        z-index: 2;
        @include transition(all 300ms linear);
        a {
            position: relative;
            width: 51px;
            height: 27px;
            line-height: 27px;
            font-size: 13px;
            background: transparent;
            letter-spacing: 0.78px;
            border-radius: 50%;
            border: 1px solid $primary_color;
            text-align: center;
            z-index: 1;
            + a {
                margin-left: 10px;
            }
            span {
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                &:before {
                    content: '';
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    left: 0;
                    border-radius: 50%;
                    top: 0;
                    background-color: $secondary_color;
                    z-index: -1;
                    @include transform(scale(0));
                    @include transition(all 500ms ease-in-out);
                }
            }
            &:hover {
                background: transparent;
                color: $fourth_color;
                border-color: $secondary_color;
                span:before {
                    @include transform(scale(1));
                }
            }
        }
    }
    .pxl-item--inner {
        position: relative;
        &:hover {
            .pxl-item--image {                
                img {
                    @include transform(scale(1.3));                    
                }
            }
        }
    }
    &.style-circle {
        .pxl-item--inner {
            .pxl-item--image {
                &:before {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 0;
                    height: 0;
                    background: rgba(255,255,255,.2);
                    opacity: 0;
                    z-index: 1;
                    @include border-radius(100%);
                    @include transform(translate(-50%,-50%));
                }
            }
            &:hover {
                .pxl-item--image:before {
                    @include animation(img_circle .65s);
                }
            }
        }
    }
    &.style-overlay {
        .pxl-item--inner {
            .pxl-item--image {
                &:before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: linear-gradient(0deg, $gradient_color_from 0%, $gradient_color_to 70.43%);
                    z-index: 2;
                    opacity: 0;
                    @include transition(all 500ms ease-in-out);
                }
            }
            &:hover {
                .pxl-item--image:before {
                    opacity: 1;
                }
            }
        }
    }
}