/* --- Block Team
-------------------------------------------------------- */

.wp-block-team .wp-block-post-group {
    position: relative;
    overflow: hidden;
}

.wp-block-team .wp-block-entry-content {
    position: absolute;
    bottom: 0;
    padding: clamp(28px, 3.5vw, 42px);
    width: 100%;
    left: 0;
    z-index: 1;
}

.wp-block-team .wp-block-post-group:hover::before {
    opacity: 1;
}

.wp-block-team .wp-block-post-group::before {
    content: "";
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(34, 146, 177, 0), rgba(34, 146, 177, 0.2));
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
}

.wp-block-team .wp-block-entry-content > *:not(.wp-block-buttons) {
    transform: translateY(48px);
    transition: all 0.5s ease-in-out;
}

.wp-block-team .wp-block-post-group:hover .wp-block-entry-content > *:not(.wp-block-buttons) {
    transform: translateY(0px);
    animation: smoothScrollBack 0s backwards, fadein 1s;
}

.wp-block-team .wp-block-entry-content > .wp-block-buttons {
    transform: translateY(120px);
    transition: 0.5s;
}

.wp-block-team .wp-block-post-group:hover .wp-block-entry-content > .wp-block-buttons {
    animation: fadein 1s;
    transform: translateY(0px);
}


 .wp-block-team-default {
     .wp-block-entry-content {
         box-shadow: 5px 8.7px 15px 0 rgba(0, 0, 0, 0.1);
         padding: clamp(30px, 3.5vw, 50px);
         background-color: var(--wp--preset--color--secondary);
     }

    .wp-block-separator {
        border-width: 1px !important;
        height: 1px !important;
        width: 42px !important;
    }
 }

 .wp-block-section:nth-child(2n+1).wp-block-team-default {
     .wp-block-entry-content {
         background-color: var(--wp--preset--color--background);
     }
 }

 .wp-block-team-default {
    .wp-block-post-group {
        overflow: hidden;
        &:hover {
            .wp-block-image {
                img {
                    transform: scale(1.1);
                    opacity: 0.8;
                }
            }
        }
        .wp-block-image {
            img {
                transition: 1s ease;
            }
        }
    }
 }
