.ppwix-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.ppwix-team-card {
    cursor: pointer;
    text-align: center;
    max-width: 200px;
    width: 100%;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 310px;
}

/* Make sure wrapper actually has height */
.ppwix-team-card .image-wrapper {
    height: 310px;
}

/* FORCE image to fill */
.image-wrapper img {
    width: 110% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Fallback for weird cases */
.image-wrapper img {
    min-height: 100%;
    min-width: 100%;
}
.ppwix-team-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.ppwix-team-card:hover .overlay {
    opacity: 1;
}

.overlay .icon {
    color: #fff;
    font-size: 32px;
    border: 2px solid #fff;
    border-radius: 50%;
    padding: 10px 16px;
}

.position {
    opacity: 0.7;
}

/* Modal */

.ppwix-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    background: #fff;
    max-width: 600px;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn 0.3s ease;
    text-align:justify;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity:0; transform: translateY(20px);}
    to {opacity:1; transform: translateY(0);}
}