.employee-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    box-sizing: border-box;
}

.employee-popup__content {
    background: #fff;
    max-width: 835px;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    position: relative;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    border-top-left-radius: 20px;
    overflow: hidden;
    height: 640px;
    z-index: 1001;
}

.employee-popup__left {
    flex: 0 0 300px; 
    max-height: 100%;
    overflow: hidden;
}
.employee-popup__left img {
    border-radius: 0px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.employee-popup__right {
    flex: 1;
    overflow-y: auto; 
    padding: 2rem 1rem;
    max-height: 100%;
}

.employee-popup__right a {
  word-break: break-word;
  overflow-wrap: break-word;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

body.popup-open {
    overflow: hidden;
}
.view-more-btn{
    border-radius: 23px;
    border-top-left-radius: 0;
    margin-top: 12px;
    padding: 7px 12px !important;
}
.bio{
    padding-right: 20px;
}




@media (max-width: 768px) {
    .employee-popup__content {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        flex-wrap: nowrap;
        overflow: auto;
        padding-right: 20px;
    }

    .employee-popup__left,
    .employee-popup__right {
        flex: 1 1 100%;
    }
    .employee-popup__left
    {
        margin-top: 30px;
    }

    .employee-popup__right h3 {
        font-size: 1.25rem;
        margin: 0px;
    }

    .employee-popup__right p {
        font-size: 0.95rem;
    }

    .popup-close {
        font-size: 30px;
    }

    .employee-popup__left img{
        border-top-right-radius:20px;
        border-bottom-right-radius:20px;
    }


    .employee-popup__left {
        flex: 1 1 100%;
        height: auto;
    }

    .employee-popup__left img {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        max-height: 560px !important;
        object-fit: cover;
        object-position: top center;
    }
    .view-more-btn{
        padding: 10px !important;
        font-size: 18px !important;
    }
    .employee-popup__content{
        max-height: 85vh;
    }
    
}
@media (max-width: 767px) {
    .employee-popup__content{
        max-height: 77vh;
    }
    .employees h2{
        margin: 0px !important;
    }
    .employee-popup__right{
        padding: 0px;
    }
}

@media (max-width: 375px) {
    .employee-popup__content {
        max-height: 60vh;
    }
}