.tms-3194-container {
    text-align: center;
    height: 100%;
}

.tms-3194-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease; /* For scaling */
}

/* Scaling option */
.tms-3194-scale-yes .tms-3194-card {
    font-size: clamp(14px, 1.5vw, 18px); /* Responsive font scaling */
}
.tms-3194-scale-yes .tms-3194-image-wrapper {
   width: clamp(100px, 15vw, 150px);
   height: clamp(100px, 15vw, 150px);
}


.tms-3194-image-wrapper {
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto 15px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.tms-3194-image-wrapper:hover {
    transform: scale(1.05);
}

.tms-3194-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tms-3194-name {
    margin: 0 0 5px;
    font-size: 1.2em;
    color: #333;
}

.tms-3194-title-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.tms-3194-title {
    margin: 0;
    color: #777;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Modal Styles */
.tms-3194-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.tms-3194-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tms-3194-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tms-3194-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.tms-3194-close:hover,
.tms-3194-close:focus {
    color: #000;
    text-decoration: none;
}

.tms-3194-modal-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tms-3194-modal-img {
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.tms-3194-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tms-3194-modal-text {
    text-align: left;
}

.tms-3194-modal-name {
    margin: 0 0 5px;
}

.tms-3194-modal-title {
    color: #666;
    margin-bottom: 15px;
    font-weight: bold;
}

.tms-3194-modal-bio {
    color: #444;
    line-height: 1.6;
}

.tms-3194-modal-scale-yes .tms-3194-modal-content {
    width: min(90vw, 1100px);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.tms-3194-modal-scale-yes .tms-3194-modal-inner {
    align-items: flex-start;
}

.tms-3194-modal-scale-yes .tms-3194-modal-img {
    width: clamp(120px, 18vw, 260px);
    height: clamp(120px, 18vw, 260px);
    flex-shrink: 0;
}
   

@media (max-width: 768px) {
    .tms-3194-modal-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tms-3194-modal-text {
        text-align: center;
    }
	.tms-3194-modal-scale-yes .tms-3194-modal-content {
        width: 94vw;
        max-width: 94vw;
        max-height: 92vh;
    }

    .tms-3194-modal-scale-yes .tms-3194-modal-inner {
        flex-direction: column;
    }

    .tms-3194-modal-scale-yes .tms-3194-modal-img {
        width: clamp(100px, 30vw, 180px);
        height: clamp(100px, 30vw, 180px);
    }
}
