.jml-team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 16px;
}

.jml-team-members-grid {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 16px;
}

.jml-team-members-columns-2 .jml-team-member {
    width: calc(50% - 12px);
}

.jml-team-members-columns-4 .jml-team-member {
    width: calc(25% - 18px);
}

.jml-team-member {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.wp-block-image.is-style-rounded {
    margin: 0 0 24px 0;
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.wp-block-image.is-style-rounded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.jml-team-member-buttons {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.wp-block-image.is-style-rounded .wp-element-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--contrast);
    border: none;
    font-size: 1.25rem;
    line-height: 0;
    margin: 0;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.wp-block-image.is-style-rounded .wp-element-button.linkedin {
    font-size: 16px;
}

.wp-block-image.is-style-rounded .wp-element-button.linkedin .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-image.is-style-rounded .wp-element-button:not(.linkedin)::after {
    content: "";
    color: var(--wp--preset--color--base);
    letter-spacing: 2px;
    margin-top: -0.4em;
}

.wp-block-image.is-style-rounded:hover .wp-element-button {
    opacity: 1;
}

.wp-block-image.is-style-rounded .wp-element-button:hover {
    background: var(--wp--preset--color--base);
}

.wp-block-image.is-style-rounded .wp-element-button:hover::after {
    color: var(--wp--preset--color--contrast);
}

.wp-block-image.is-style-rounded .wp-element-button span:not(.dashicons) {
    display: none;
}

.jml-team-member p {
    margin: 0;
}

.jml-team-member-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: center;
}

.jml-team-member-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-align: center;
    color: var(--wp--preset--color--contrast);
}

.jml-team-member-title {
    font-size: 1rem;
    color: var(--wp--preset--color--contrast);
    margin: 0 0 16px 0;
    text-align: center;
}

.jml-team-member-paragraph {
    text-align: left;
    margin-bottom: 16px;
    line-height: 1.5;
    white-space: pre-line;
    color: var(--wp--preset--color--contrast);
}

@media (max-width: 991px) {
    .jml-team-members,
    .jml-team-members-grid {
        display: block !important;
        padding: 0 16px;
    }
    
    .jml-team-member {
        width: 100% !important;
        margin-bottom: 32px;
    }
    
    .jml-team-member:last-child {
        margin-bottom: 0;
    }
}

/* Admin styles */
.jml-team-members-admin .form-field {
    max-width: 640px;
}

.jml-team-members-admin .wp-editor-wrap {
    max-width: 640px;
    width: 100%;
}

.jml-team-members-admin .wp-editor-area {
    min-height: 350px;
    height: 350px;
    resize: vertical;
}

.jml-team-members-admin .mce-edit-area iframe {
    min-height: 250px !important;
    height: auto !important;
}

.jml-team-member a:link,
.jml-team-member a:visited,
.jml-team-member a:hover,
.jml-team-member a:active {
    text-decoration: none !important;
}