/* --- Masonry Grid --- */
.employee-masonry-wrapper {
    position:relative;
}
.employee-grid {
    /* display: flex; /* Or use CSS Grid, or float for basic masonry */
    /* gap: 15px; /* Adjust as needed */
    /* If using JS Masonry, it might handle some of this */
    width:100%;
}
.employee-item {
    width: calc(20% - 15px); /* Adjust for 5 columns with gap */
    /* For CSS masonry with column-count: break-inside: avoid; */
    /* margin-bottom: 15px; /* Gap for rows */
    /* position: relative; /* For positioning hover info */
    cursor: pointer;
}
.employee-grid.type-desandro .employee-item {
    margin-bottom: 10px;
}
.employee-item.double-width {
    width: calc(40% - 20px);
}

.employee-masonry-image-container {
    position: relative;
    overflow: hidden; /* If hover info slides in/out */
}

.employee-masonry-image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.employee-item:hover .employee-masonry-image-container img {
    transform: scale(1.05); /* Optional hover zoom */
}

/* --- Hover Info --- */
.employee-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #B1C607; /* Yellowish overlay from screenshot */
    color: #0C2C39;
    padding: 15px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.employee-item:hover .employee-hover-info {
    opacity: 1;
}

.employee-hover-info .employee-name {
    font-size: 0.9em;
    margin: 0;
    color: #0C2C39;
    font-family: "Museo Slab";
}

.employee-hover-info .employee-title {
    font-size: 0.7em;
    margin: 0;
}

/* --- Expanded Description Area --- */
.employee-expanded-description-area {
    width: 100%;
    position: absolute;
    padding: 30px 0; /* Adjust as needed */
    background-color: #f9f9f9; /* Or your desired background */
    margin-top: 20px; /* Space above */
    box-sizing: border-box;
    display: none; /* Initially hidden */
    clear: both; /* Important if grid items are floated */
}

.employee-expanded-content {
    display: flex;
    gap: 60px; /* Space between image and text */
    margin: 0 auto;
    position: relative; /* For close button */
}

.hidden {
    display:none;
}

.close-expanded-view {
    position: absolute;
    top: -10px; /* Adjust positioning relative to the content or area padding */
    right: 0px; /* Adjust */
    background: none;
    border: none;
    font-size: 50px;
    cursor: pointer;
    color: #1a657c; /* Teal color from screenshot? */
}

.expanded-image-column {
    flex: 0 0 40%; /* Adjust width of image column */
    /* max-width: 300px; */ /* Example max width */
}

.expanded-image-column img {
    width: 100%;
    height: auto;
    display: block;
}

.expanded-details-column {
    flex: 1;
    position:relative;
}

.expanded-employee-name {
    font-family: "Museo Slab";
    font-weight: 300;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 5px;
    color: #1a657c;
}

.expanded-employee-title {
    font-family: Roboto;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 20px;
    color: #000;
}

.expanded-details-column .separator {
    border: 0;
    height: 8px; /* Thickness of the line */
    background-color: #1a657c; /* Teal color from screenshot */
    margin: 0 0 20px;
    width: 56px; /* Length of the separator */
}

.expanded-employee-description {
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: Roboto;
    font-size: 20px;
    font-weight: 400;
}

.linkedin-link {
    display: inline-flex; /* For icon alignment */
    align-items: center;
    text-decoration: none;
    color: #5f5f5f; /* LinkedIn blue */
    font-family: Roboto;
    font-size: 18px;
    font-weight: 400;
}

.linkedin-link svg, /* If using an SVG icon */
.linkedin-link i /* If using a font icon */ {
    margin-right: 8px;
}

/* Active state for clicked item (optional) */
.employee-item.active .employee-masonry-image-container {
    /* box-shadow: 0 0 0 3px #008080; */ /* Example highlight */
}