/* WP Staff Manager Modal Styles */

.wpsm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.wpsm-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 900px;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: left;
}

.wpsm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.wpsm-modal-close:hover,
.wpsm-modal-close:focus {
    color: #333;
    text-decoration: none;
    outline: none;
}

.wpsm-modal-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.wpsm-staff-title, .wpsm-staff-region, .wpsm-staff-company, .wpsm-staff-job-title{
	font-size:1em !important;
}

img.wpsm-staff-logo-grid{
	max-width: 160px !important;
  	max-height: 120px !important;
}

.wpsm-modal-logo {
    display: block;
    max-width: 225px;
    max-height: 120px;
    height: auto;
    margin: 0 auto 15px auto;
    object-fit: contain;
}

.wpsm-modal-header h2.wpsm-modal-name {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1em;
    color: #333;
}

.wpsm-modal-body {
    margin-bottom: 20px;
}

.wpsm-modal-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 5px;
}

.wpsm-modal-description {
    font-size: 1em;
    line-height: 1;
    color: #555;
    margin-bottom: 5px;
    clear: both;
	white-space: pre-wrap;
}

.wpsm-modal-link-wrapper {
    margin-top: 15px;
    text-align: center;
}
.wpsm-modal-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s ease-in-out;
}
.wpsm-modal-link:hover {
    background-color: #005a87;
    color: #fff;
}

.wpsm-modal-element-hidden {
    display: none !important;
}

.wpsm-staff-trigger {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}
.wpsm-staff-trigger:hover img {
    opacity: 0.8;
}
.wpsm-staff-trigger:hover .wpsm-staff-title {
    color: #0073aa;
}

.wpsm-modal-meta {
    font-size: 1em;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}
.wpsm-modal-company,
.wpsm-modal-region {
     display: inline;
}
/* Separator for meta elements */
.wpsm-modal-company + .wpsm-modal-region::before {
    content: " | ";
    margin: 0 5px;
}