.banner {
    height: 88vh;
    width: 100%;
    position: fixed;
    top: 12vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    background-image: url("https://static.igem.wiki/teams/5919/images/members/team-photo.webp");
    background-color: #666;
    background-position: 30%;
    background-size: cover;
    background-blend-mode: screen;
}

.pageTitle {
    text-align: center;
    font-size: 8rem;
}

.contentblock {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 60px 5%;
            background-color: #feffe3;
            border-radius: 15px;
            margin: 100vh auto auto auto;
        }

        .heading {
            margin-bottom: 0.5rem;
            text-align: center;
            line-height: 1.2;
        }

        .headingen {
            font-family: "Montserrat Bold", sans-serif;
            font-size: 2.8rem;
            margin: 0;
        }

        .content-text {
            max-width: 1000px;
        }

    .image-medium {
        width: 70%;
        max-width: 600px;
        height: auto;
        border-radius: 10px;
        margin-top: 2.5rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

        .department-section {
            background-color: #feffe3;
            padding: 40px;
            border-radius: 12px;
            margin-bottom: 30px;
            max-width: 1000px;
            text-align: center;
        }

        .department-section-heading {
            font-family: "Montserrat Bold", sans-serif;
            font-size: 2.5rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .member-list-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            width: 100%;
            margin: 0 auto;
        }

        .member-card .member-departments {
            margin-top: 8px;
            padding-top: 5px;
        }
        
        .member-role-label {
            font-size: 0.75rem;
            font-weight: bold;
            color: #454;
            background-color: #4ffff0;
            padding: 3px 8px;
            border-radius: 5px;
            margin: 2px;
            display: inline-block;
            white-space: nowrap;
            width: min-content;
        }

        .member-card {
            background-color: #feffe3;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 1px 5px rgba(0,0,0,0.5);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: none;
            cursor: pointer;
            position: relative;
        }

        .member-card:hover {
            transform: none;
            box-shadow: 0 2px 7px rgba(0,0,0,0.7);
        }

        .member-photo {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 10px;
            border: 2px solid #117661;
        }

        .member-name {
            font-weight: 700;
            font-size: 1.1rem;
            color: #222;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        .member-description {
            font-size: 0.85rem;
            line-height: 1.5;
            color: #555;
        }

        .member-department-label {
            font-size: 0.75rem;
            font-weight: bold;
            color: #117661;
            background-color: white;
            padding: 3px 8px;
            border-radius: 5px;
            margin: 2px;
            display: inline-block;
            white-space: nowrap;
            width: min-content;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .member-modal-overlay {
            display: none; 
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            animation: fadeInOverlay 0.3s ease-out forwards;
        }

        .member-modal-content {
            background-color: #feffe3;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            max-width: 500px;
            width: 90%;
            text-align: center;
            position: relative;
            animation: slideInModal 0.3s ease-out forwards;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .member-modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 2rem;
            cursor: pointer;
            color: #888;
            transition: color 0.2s ease;
        }

        .member-modal-close:hover {
            color: #333;
        }

        .member-modal-photo {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 20px;
            border: 4px solid #117661;
        }

        .member-modal-name {
            font-family: "Noto Sans JP", sans-serif;
            font-size: 2.2rem;
            color: #117661;
            margin-bottom: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .member-modal-description {
            font-size: 1rem;
            line-height: 1.7;
            color: #444;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        @keyframes fadeInOverlay {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideInModal {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @media (max-width: 768px) {
            .contentblock {
                padding: 40px 10%;
                margin: 15px auto;
            }
            .heading {
                font-size: 2.2rem;
            }
            .headingjp {
                font-size: 1.6rem;
                margin-bottom: 1.5rem;
            }
            .department-section {
                padding: 30px;
                margin-bottom: 20px;
            }
            .department-section-heading {
                font-size: 2rem;
                margin-bottom: 1.5rem;
            }
            .member-list-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 15px;
            }
            .member-card {
                padding: 12px;
            }
            .member-photo {
                width: 80px;
                height: 80px;
            }
            .member-name {
                font-size: 1rem;
                flex-direction: column;
            }
            .member-grade-label {
                margin-right: 0;
                margin-bottom: 5px;
            }
            .member-role-label, .member-grade-label {
                font-size: 0.7rem;
                padding: 2px 6px;
            }
            .member-modal-content {
                padding: 20px;
                width: 95%;
            }
            .member-modal-photo {
                width: 100px;
                height: 100px;
            }
            .member-modal-name {
                font-size: 1.8rem;
            }
            .member-modal-description {
                font-size: 1.0rem;
            }
            .member-modal-close {
                font-size: 1.8rem;
                top: 10px;
                right: 15px;
            }

            .content-text {
                max-width: 500px;
            }
        }