#zoom_div_container {
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: color-mix(in srgb, var(--complementary), transparent 20%); */
    background-color: var(--complementary);
    margin: 1rem 1rem;
    border-radius: 15px;
    /* backdrop-filter: blur(6px); */
    display: flex;
    flex-direction: column;
    display: none;
}

#zoom_div_container  h2 {
    font-size: 250%;
    padding: 0.5rem;
    margin: 1rem 10rem;
    border-radius: 5rem;
    text-align: center;
    max-height: 100%;

    background-color: var(--IA);
    flex: 0;
}

#zoom_curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
}

#zoom_curtain.zoom_active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#zoom {
    height: 100%;
    margin: 1rem;
    display: flex;
    flex-direction: row;
    overflow: hidden;                /* safety net */
    /* background-color: var(--complementary); */
    border-radius: 15px;
    padding: 1rem;
}

#zoom_clear {
    clear: both;
}

#zoom_svg {
    margin: 1rem;
    justify-self: baseline;
    aspect-ratio: 1/1;
    max-width: 50%;
    flex: none;
    max-height: 75%;
}

#zoom_names {
    flex: 1;
    padding-left: 1rem;
    overflow-y: auto;
    font-size: 2rem;
    line-height: 1.5rem;
}

#zoom_names h4 {
    padding-top: .5rem;
    font-size: 2.5rem;
}

#zoom_names > a > h3, h3 {
    text-align: center;
    cursor: pointer;
    font-size: 2rem;
}

#zoom_names > a:hover,
#zoom_names > a:active {
    text-decoration: underline;
}

/* #zoom_names > a::after {
    position: relative;

    content: "→";
    margin-left: 8px;
} */

#zoom_div_container .hamburger {
    right: 1rem;
    top: 1rem;
}

svg text {
    cursor: pointer;
}

@media screen and (max-width: 1000px) {
    #zoom_div_container {
        margin: 1rem;
        font-size: 5vw;
    }
    
    #zoom_div_container h2 {
        font-size: 5vw;
        margin: 1rem 2rem;
    }

    #zoom_svg {
        width: 100% !important;          /* full width on mobile */
        height: auto !important;         /* respect aspect ratio */
        max-height: 45vh;                /* limit how tall it can get – adjust to taste */
        flex: 0 0 auto;                  /* don’t grow/shrink */
        margin: 0 auto;                  /* center it */
        aspect-ratio: unset !important;  /* kill the forced 1/1 square */
        object-fit: contain;
        display: block;
    }
    
    #zoom {
        max-height: 100%;
        flex-direction: column;
        overflow: hidden;                /* safety net */
        height: 100%;                    /* important – let it take the remaining space */
        gap: 1rem;
    }
    
    #zoom_names {
        flex: 1;                         /* list takes whatever space is left */
        overflow-y: auto;
        font-size: 4.5vw;
        line-height: 1.4;
        padding: 0 1rem;
    }
}
