* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Family Photo */
.family-photo {
    position: relative;
    max-width: 600px;
    margin: 0 auto 50px;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.family-photo:hover {
    transform: scale(1.02);
}

.family-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.family-photo:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    font-size: 3em;
    color: white;
    margin-bottom: 10px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.member-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.member-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.message {
    padding: 25px;
}

.message h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.message p {
    color: #666;
    line-height: 1.6;
}

/* Lightbox */
.lightbox, .member-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-content, .modal-content {
    position: relative;
    max-width: 90%;
    /* max-height: 90%; */
    margin-left: auto;
    margin-right: auto;
    margin-top: 21px;
    left: 0;
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.close, .close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5em;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover, .close-modal:hover {
    color: #333;
}

.show-img img, #memberImg {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
}

.family-title {
    margin-bottom: 30px;
}

.family-title h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.family-title p {
    color: #666;
    font-size: 1.3em;
}

.modal-message h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

.modal-message p {
    color: #666;
    font-size: 1.3em;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 30px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .family-photo {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .lightbox-content, .modal-content {
        margin: 20px;
        padding: 20px;
    }
}
