/*About us*/

/* Navbar Custom Width */
.navbar.menu-active {
  width: 325px;
}

.jamsz {
    margin: auto;
    margin-top: 30px;
    width: 25vw;
    border-radius: 1em;
    display: flex;
}


.border {
    margin: 20px 0;
}

body.light .border {
    border: 1px solid black;
}

body.dark .border {
    border: 1px solid white;
}

.image-container {
    display: flex;
    flex-direction: column; 
}

.photo-left, .photo-right {
    display: flex; 
    justify-content: flex-start; 
    align-items: center;
    margin: 2vw 2vw;
    gap: 20px;
}

.photo-right {
    justify-content: flex-end;
    flex-direction: row;
}

.photo-left img, .photo-right img {
    width: 15vw; 
    max-width: 45vw; 
    border-radius: 1em;
}

.image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name-tag {
    text-align: center;
    width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
    color: inherit;
}

.photo-left .image-container, 
.photo-right .image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.headers{
    color: inherit;
}

@media screen and (max-width: 800px) {
    .jamsz {
        width: 70vw;
    }

    .photo-left img, .photo-right img {
        width: 40vw;
    }

    .photo-left, .photo-right {
        flex-direction: column !important; /* Force column direction */
        align-items: center;
        gap: 10px;
    }

    .phone-margin {
        width: 100% !important;
    }

    /* Force image container to top */
    /* These selectors were incorrect, they should target the direct children of photo-left/right */
    .photo-left > div:first-child,
    .photo-right > div:last-child {
        order: 1;
    }

    /* Force text below image */
    /* These selectors were incorrect, they should target the direct children of photo-left/right */
    .photo-left > div:last-child,
    .photo-right > div:first-child {
        order: 2;
        width: 90vw;
        margin-top: 10px;
    }
}