/** Show Team Member Image on Hover **/
.team-image-on-hover {
    .wp-block-post-group {
        position: relative;
        padding: 0 70px 0 0;
        z-index: 1;
        transition: transform 0.4s ease, z-index 0s linear 0.4s;

        &:hover {
            z-index: 5;
            transition-delay: 0s;
        }

        /* IMAGE */
        .wp-block-image {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            opacity: 0;
            transform: translateY(-50%) scale(0.9);
            transition: opacity 0.4s ease, transform 0.4s ease;
            pointer-events: none;
        }

        .block-editor-block-list__block.wp-block-image {
            position: relative;
            transform: none !important;
            opacity: 1;
            top: 0;
            left: 0;
        }

        &:hover .wp-block-image {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }

        /* TEXT */
        .wp-block-entry-content {
            position: relative;
            z-index: 3;
            transition: color 0.3s ease;

            .wp-block-heading {
                position: relative;

                &::before {
                    content: '/';
                    position: absolute;
                    right: -50px;
                    opacity: 0.3;
                    font-weight: bold;

                }
            }
        }

        &:hover .wp-block-entry-content:not(.block-editor-block-list__block) .wp-block-heading,
        &:hover .wp-block-entry-content:not(.block-editor-block-list__block) p {
            color: var(--wp--preset--color--light) !important;
        }
    }
}

.block-editor-block-list__block.wp-block-team-wrapper {
    max-width: 100% !important;
}

.block-editor-block-list__block.wp-block-team-wrapper>* {
    flex: 0 0 33%;
    max-width: 30%;
    padding: 0 !important;
}

.team-image-on-hover .wp-block-post-group .wp-block-entry-content.block-editor-block-list__block .wp-block-heading::before {
    display: none;
}