/* Apply styles in both frontend and Site Editor */
.equipe-card,
.editor-styles-wrapper .equipe-card {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    background: white;
    width: 100%; /* Ensures it uses full width */
    max-width: 800px; /* Restricts max width on larger screens */
    margin: 0 auto; /* Centers the block */
}

.equipe-image,
.editor-styles-wrapper .equipe-image {
    position: relative;
}

.equipe-image:before,
.editor-styles-wrapper .equipe-image:before {
    content: '';
    position: absolute;
    background: var(--wp--preset--color--secondary);
    width: 100%;
    height: 100%;
    top: -50%;
}

.equipe-card img,
.editor-styles-wrapper .equipe-card img {
    max-width: 100%;
    border-radius: 50%;
    display: block;
    margin: 2em auto .5em;
    position: relative;
    border: solid 10px #FFF;
}

.equipe-content,
.editor-styles-wrapper .equipe-content {
    padding: .5em 1em 1em 1.5em;
}

.equipe-name,
.editor-styles-wrapper .equipe-name {
    text-align: center;
    margin: 0;
    font-size: 1.2em;
    font-family: 'Gotham';
    font-weight: 350;
    color: var(--wp--preset--color--secondary);
}

.equipe-position,
.editor-styles-wrapper .equipe-position {
    color: var(--wp--preset--color--primary);
    font-weight: 100;
    display: block;
    text-align: center;
    color: black;
}

.equipe-description,
.editor-styles-wrapper .equipe-description {
    font-size: .9em;
    line-height: 1.2em;
    text-align: center;
    color: var(--wp--preset--color--contrast);
}

@media (max-width: 768px) {
    .equipe-card,
    .editor-styles-wrapper .equipe-card {
        width: 100%;
        max-width: 100%; /* Ensures full width */
    }
}
