/**
 * Members Grid Styles
 */

.members-grid {
    width: 100%;
    margin: 20px 0;
}

.members-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 20px 0;
}

/* Responsive column variations */
@media (max-width: 1700px) {
    .members-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .members-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .members-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .members-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Member card styles */
.member-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.member-card.has-bio {
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

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

.member-info {
    padding: 15px;
    text-align: center;
}

.member-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.member-title {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Bio modal styles */
.member-bio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.member-bio-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.member-bio-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.member-bio-close:hover {
    color: #333;
}

.member-bio-content h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.member-bio-text {
    color: #666;
    line-height: 1.6;
}

.member-bio-text p:first-child {
    margin-top: 0;
}

.member-bio-text p:last-child {
    margin-bottom: 0;
}


