/* Personnel Grid outside modal */
.wpm-personnel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.wpm-personnel-item {
    cursor: pointer;
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    transition: box-shadow 0.3s;
}
.wpm-personnel-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.wpm-personnel-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}
.wpm-no-img {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 10px;
}
.wpm-personnel-item h3 {
    margin: 0 0 5px;
    font-size: 16px;
}
.wpm-personnel-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* The Modal (background) */
.wpm-modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

/* Modal Content */
.wpm-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border: 1px solid #0033cc;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 0;
    position: relative;
}

/* Modal Header */
.wpm-modal-header {
    background-color: #0033cc;
    color: white;
    padding: 15px 20px;
}

.wpm-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: normal;
}

/* The Close Button */
.wpm-close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 8px;
    cursor: pointer;
}

.wpm-close:hover,
.wpm-close:focus {
    color: #ddd;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Body */
.wpm-modal-body {
    padding: 2px;
}

/* Table Info */
.wpm-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dfdfdf;
    background: #fff;
}

.wpm-info-table td {
    border: 1px solid #dfdfdf;
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
}

.wpm-col-image {
    width: 180px;
    text-align: center;
    vertical-align: middle;
    padding: 20px !important;
}

.wpm-col-image img {
    max-width: 150px;
    height: auto;
    display: inline-block;
}

.wpm-label {
    background-color: #fafafa;
    color: #555;
    white-space: nowrap;
    width: 25%;
}

.wpm-value {
    color: #000;
}
