.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: scale(1.05);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.grid-item .bio-info {
    padding: 15px;
    text-align: center;
}

.grid-item .bio-info h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.grid-item .bio-info p {
    font-size: 0.9em;
    color: #555;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Grid Styles */
#smule-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.smule-member-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.smule-member-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

.smule-member-card h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

/* Modal Styles */
#smule-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999;
}

.smule-member-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
}

.smule-modal-content {
    position: relative;
}

.smule-modal-close {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 28px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}

.smule-modal-close:hover {
    color: #000;
}

.smule-profile-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #29a7de;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.smule-profile-link:hover {
    background-color: #2185b0;
}