.block-team.custom-ep-block {
    border-radius: var(--wp--preset--spacing--20);
    padding: 1.5em;
}

.block-team {
    margin-left: auto;
    margin-right: auto;
}

.block-team .intro {
    font-size: smaller;
}

.block-team h4 {
    font-size: smaller;
    color: var(--wp--preset--color--accent-5);
    font-weight: normal;
    text-transform: unset;
    text-decoration:none;
    margin-block-start: 0.01em;
    margin-block-end: 0.5em;
}

.block-team figure {
    margin-top: 0 !important;
    aspect-ratio: 11 / 12 !important;
}

.block-team img {
    object-position: top center;
}

.block-team h2 {
    font-size: 1.4em !important;
}

.block-team h4 a {
    color: unset;
    font-weight: unset;
    text-decoration: unset;
}
.block-team li .wp-block-group {
    flex-direction: column;
    gap: 0;
}
.block-team li .wp-block-group .team_title {
    text-decoration: none;
    font-size: 1em !important;
}
.block-team li .wp-block-group .team_desc {
    text-decoration: none;
    color: var(--wp--preset--color--contrast-2);
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 1em !important;
    line-height: 1.1;
}

.block-team  .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg {
    fill: var(--wp--preset--color--contrast-2);
}

.block-team .wp-block-social-links {
    gap: 0;
     padding-left: 0;
}

.block-team p {
    margin-block-start: .01em;
    margin-block-end: .02em;
    font-size: smaller;
}

.block-team .wp-block-buttons {
    justify-content: end;
    margin: .5rem;

}

.block-team .team_title {
    text-align: center;
    line-height: 1.1;
}

.block-team li {
    list-style-type: none;
    margin: 1em;
}
/* Ensure the container height remains constant */
.wp-block-post {
    position: relative;
}

/* Style the figure to allow hover effects */
.wp-block-post-featured-image {
    position: relative;
    overflow: hidden;
}

/* Container for title, description, and social links */
.wp-block-group {
    position: relative;
    min-height: 100px; /* Adjust this value to match the height of your title + social links */
}

/* Hide the description by default, but keep its space */
.team_desc {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: var(--wp--preset--color--contrast-3);
    padding: 20px;
    text-align: center;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through when hidden */
}

/* Show the description and hide title/social links on figure hover */
.wp-block-post-featured-image:hover ~ .wp-block-group .team_title,
.wp-block-post-featured-image:hover ~ .wp-block-group h2,
.wp-block-post-featured-image:hover ~ .wp-block-group .wp-block-social-links {
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    pointer-events: none; /* Prevent interaction when hidden */
}

.wp-block-post-featured-image:hover ~ .wp-block-group .team_desc {
    opacity: 1;
    position: relative;
    z-index: 2;
    pointer-events: auto; /* Allow interaction when visible */
}

/* Ensure title and social links are visible by default */
.team_title,
h2,
.wp-block-social-links {
    position: relative;
    z-index: 1;
    transition: opacity 0.5s ease;
}


@media only screen and (min-width: 1201px){
    .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Desktop small */
@media only screen and (max-width: 1100px) {
  
}

/* Tablet */
@media only screen and (max-width: 700px) {
  .cta-link {
    padding: 2.5rem;
}
}


/* Iphone */
@media only screen and (max-width: 450px) {
  
}