.wp-block-programs {
    .wp-block-post-group {
        position: relative;
        z-index: 1;
        transition: transform 0.4s ease, z-index 0s linear 0.4s;

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

        &:nth-child(even) {
            .wp-block-image {
                left: auto;
                right: 10%;
            }

        }

        /* IMAGE */
        .wp-block-image {
            position: absolute;
            top: 50%;
            left: 10%;
            width: 500px;
            aspect-ratio: 4 / 3;
            /* 4:3 ratio */
            opacity: 0;
            transform: translateY(-50%) scale(0.9);
            transition: opacity 0.4s ease, transform 0.4s ease;
            pointer-events: none;
            max-width: 100%;
            overflow: hidden;

            a {
                position: relative;
                display: block;

                &::before {
                    position: absolute;
                    content: '';
                    width: 100%;
                    height: 100%;
                    background-color: var(--wp--preset--color--dark);
                    left: 0;
                    top: 0;
                    z-index: 3;
                    opacity: 0.4;
                }
            }
        }

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

        &: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;
            padding-inline: var(--wp--style--root--padding-right);

            .wp-block-heading {
                position: relative;

            }

            a:hover,
            &:focus {
                color: var(--wp--preset--color--text-link);
            }

        }


    }
}

.team-slider .block-editor-block-list__block.wp-block-team-wrapper>* {
    max-width: 100%;
}

.wp-block-programs .wp-block-post-group .wp-block-entry-content.block-editor-block-list__block .wp-block-heading::before {
    display: none;
}

.wp-block-team-wrapper a {
    text-decoration: none;
}