/* Styling for the Team Grid */

.team-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Gap between cards */
    justify-content: center;
}

.team-member-card {
    /* Settings for 3 columns on desktop */
    flex: 0 1 calc(33.333% - 20px);
    box-sizing: border-box;
    
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    text-decoration: none; /* Remove link underline */
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.team-member-card:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.team-member-image img {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-image {
    width: 100%;
    padding-top: 100%; /* Creates a square placeholder */
    background-color: #f0f0f0;
}

.team-member-info {
    padding: 15px;
}

.member-name {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.member-role {
    margin: 0;
    font-size: 0.9em;
    color: #777;
}

/* Media Query for Tablets */
@media (max-width: 1024px) {
    .team-member-card {
        /* 2 columns on tablets */
        flex: 0 1 calc(50% - 20px);
    }
}

/* Media Query for Smartphones */
@media (max-width: 767px) {
    .team-member-card {
        /* 1 column on mobile */
        flex: 0 1 100%;
    }
}