/* Main Widget Layout Styles */
.team-card-71295670 {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card-71295670.team-card-trigger-71295670 {
    cursor: pointer;
}

.team-card-image-wrap {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card-content {
    padding-top: 15px;
    display: flex;
    flex-direction: column;
}

.team-card-title {
    margin: 0 0 5px 0;
    transition: all 0.3s ease;
}

.team-card-title-wrap.team-card-trigger-71295670 {
    cursor: pointer;
}

.team-card-subtitle {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Full Page Modal Overlay */
.team-card-modal-71295670-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 60px;
    padding-top: 140px;
    cursor: none !important; /* Hide native cursor for custom cursor */
}

body.admin-bar .team-card-modal-71295670-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .team-card-modal-71295670-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* Custom Modal Pointer */
.team-card-modal-custom-cursor {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.1s ease-out;
    border: 2px solid currentColor; /* Added 2px solid border mapping to currentColor */
}

.team-card-modal-custom-cursor svg {
    width: 20px;
    height: 20px;
}

/* Modal Content Container */
.team-card-modal-container {
    display: grid;
    grid-template-columns: auto auto;
    margin-left: auto;
    margin-right: auto;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    max-height: 80vh;
    align-items: start; /* was: center — top-aligns both columns */
    pointer-events: auto;
    cursor: none !important;
}

.team-card-modal-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* was: center */
    height: 100%;
    overflow-y: auto;
}

.team-card-modal-column.image-column {
    align-items: center;
}

.modal-title {
    margin: 0 0 10px 0;
}

.modal-subtitle {
    font-weight: 600;
    margin-bottom: 25px;
}

.modal-content-text {
    line-height: 1.6;
}

.modal-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
}

/* Responsive Overrides - Tablet */
@media (max-width: 1024px) {
    .team-card-modal-71295670-overlay {
        padding: 30px;
        padding-top: 120px;
    }
}

/* Responsive Overrides - Mobile */

@media (max-width: 767px) {
    .team-card-modal-71295670-overlay {
        padding: 20px;
        padding-top: 100px;
    }

    .team-card-modal-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        margin-left: auto;
        margin-right: auto;
        gap: 40px;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .team-card-modal-column {
        height: auto;
    }
    .team-card-modal-column.image-column {
        order: 2;
    }
    .team-card-modal-column.text-column {
        order: 1;
    }

    .modal-image {
        width: 100%;
        aspect-ratio: 3 / 4; /* overrides the 4:5 from desktop */
        max-height: none;     /* remove old max-height: 350px cap */
    }
}