/* --- MOBILE OPTIMIZATIONS --- */
@media screen and (max-width: 768px) {
    
    header img { width: 250px; }
    nav ul { flex-direction: column; gap: 15px; }
    .left-slope, .right-slope { display: none; }
    
    .member-vault {
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .vault-header {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.8rem;
        gap: 10px;
        margin-bottom: 20px;
    }

    .member-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .member-item {

    width: 160px;            /* Narrows the box to match your 'slice' shape */
    aspect-ratio: 1 / 1.5;   /* Makes the container tall and thin */
    flex: none;
    /* 1. THE FIX: 'contain' keeps the photo in its original 'normal' proportions */
    background-size: contain; 
    /* 2. Prevents the image from repeating if the box is taller than the photo */
    background-repeat: no-repeat;
    /* 3. This centers the photo and pushes it to the top/bottom as needed */
    background-position: center 15%; 
    background-color: transparent; /* Ensures no weird background colors show */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
    .overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
        padding-bottom: 15px;
        text-align: center;
    }

    .name { font-size: 1.1rem; }
    .role { font-size: 0.8rem; }
}

/* Fix for iPhone SE / Small screens */
@media screen and (max-width: 380px) {
    .member-item {
        width: 160px;
        aspect-ratio: 1 / 2;
    }
}
