/* Gallery thumbnails: inline flow and wrapping */
.thumbWrapper {
    position: relative;
    display: inline-block;
    margin: 4px;
    vertical-align: top;
}

.thumbWrapper img {
    display: block;
    max-width: 150px;
    height: auto;
}

.thumbSourceBadge {
    position: absolute;
    top: 4px;
    right: 4px;
    top: -0.25rem; right: -0.25rem;
    background: rgb(0, 0, 0);
    color: lime;
    color: #ffffff;
    border: 1px solid rgb(87, 87, 87); 
    padding: 0px 3px;
    font-size: 1rem;
    /* font-weight: bold; */
    border-radius: 3px;
}

.sourcesList {
    margin-top: 8px;
    font-size: 0.85rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.sourcesList ul {
    list-style-type: none;
    padding-left: 0;
}

.sourcesList li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0.5rem;
}

.sourceLine {
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
}




#menuBackdrop {
    background-color: rgba(0, 0, 0, 0.884);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    visibility: hidden;
    display: none;

    z-index: 2;
}

nav {
    position: fixed;
    top: 0px;

    right: -350px;
    transition:0.3s;
    z-index: 1;
    text-align: left;
    color: white;
    /* background-color: rgba(0, 0, 0, 0.301); */
    /* background-color: rgba(0, 0, 0, 0.89); */
    background-color: rgba(0, 0, 0, 0.945);

    padding-left: 1.6rem;

    height: 100vh;

    z-index: 3;

}

/* Ensure the off-canvas nav has a definite width and can scroll internally */
nav {
    width: 350px;
    max-width: 90vw;
    box-sizing: border-box;
    overflow-y: auto;
}
nav ol{
    list-style-type: upper-roman;
}
nav ol ol {
    list-style-type: lower-alpha;
}
nav li {
    margin: 5px 0px;
}
nav h3{
    padding-top: 0px; 
    margin-top: 10px;
}
nav a {
    color: rgb(0, 247, 255); 
    color: white;
    text-decoration: none;
}
nav a:hover {
    color: black;
    background-color: white; 
}

.hiddenMenu{
    right: -350px;
}
.visibleMenu {
    right: 0px;
}   


#menuCloseX{
    /* display: fixed; */
    float: right;
    top: 0px;
    right: 0px;
    border: 1px solid black;
    /* color: rgb(121, 255, 121); */
    color: white;
    width: 28px;
    height: 28px;
    padding: 0px; margin: 3px;
    font-size: 28px;
    text-align: center;
    display: flex; flex-direction: column; justify-content: center;
    cursor: pointer;
}

.close {
    font-family: Arial, sans-serif;
}

#menuIconWrapper{
    /* transform: translate3d(0,0,0); */
    z-index: 0;
    transition: .5s;
    /* display: flex; flex-direction: column; justify-content: center; text-align: center; */
    font-size: 22px;
    cursor: pointer;
}
#menuOpenIcon{
    position: fixed;
    right: 15px; 
    top: 15px;
    transition: .5s;
    width: 35px;
}

/* Make sure the hamburger button stays above the header */
#menuOpenIcon {
    z-index: 60;
}
.hiddenMenuOpenIcon{
    display: none;
    visibility: hidden;
    transition: .5s;
}
.visibleMenuOpenIcon{
    display: block;
    visibility: visible;
}





.nav-toggle {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 22px;
    width: 22px;
    z-index: 50;
}

.nav-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    transition: all 100ms ease-in-out;
}

.nav-toggle:hover {
    cursor: pointer;
}

.x:nth-of-type(1) {
    transition: all 100ms ease-in-out;
    transform: rotate(45deg);
    transform-origin: top left;
    width: 28px;
}

.x:nth-of-type(2) {
    transition: all 100ms ease-in-out;
    transform-origin: center;
    width: 0;
}

.x:nth-of-type(3) {
    transition: all 100ms ease-in-out;
    transform: rotate(-45deg);
    transform-origin: bottom left;
    width: 28px;
}

















/* Extra Small Devices */
@media (max-width: 575px) {

    header {
        height: 2.3rem;
        font-size: 0.65rem;
        font-size: 2.3vw;
        margin: 0;
        width: 100%;
    }
    header > h1 {
        margin-left: 0;
    }

}

/* Small Devices */
@media (min-width: 576px) and (max-width: 767px) {

    main {
        /* width: 90%; */
        width: 100%;
        float: left;
    }

    header {
        height: 2.3rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0;
        width: 100%;
    }
    header > h1 {
        margin-left: 0;
    }

    nav {
        height: 100vh;
        /* width: 30%; */
        float: right;
        /* color: #fff; */
        box-sizing: border-box;
        padding: 20px;
    }
    #navMenu {
    }

}

/* Medium Devices */
@media (min-width: 768px) and (max-width: 991px) {
/* 
    main {
        margin-left: 25vw;
        width: 80vw;
    } */

    header {
        height: 2.3rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0;
        width: 100%;
    }
    header > h1 {
        /* margin-left: 0; */
    }
/* 
    #menuOpenIcon {
        display: none;
        visibility: hidden;
    }

    #navMenu {
        left: 0px;
        width: 25vw;
    } */

}

/* Large Devices */
@media (min-width: 992px) and (max-width: 1199px) {
    body{
    }

    main {
        margin-left: 25vw;
        width: 75vw;
    }

    header {
        margin-left: 25vw;
        width: 80vw;
        height: 2.3rem;
        font-size: 1rem;
    }

    #menuOpenIcon {
        display: none;
        visibility: hidden;
    }

    #navMenu {
        left: 0px;
        width: 25vw;
    }

}



/* Extra Large Devices */
@media (min-width: 1200px) {
    body{
    }

    main {
        margin-left: 21vw;
        width: 80vw;
    }

    header {
        height: 2.3rem;
    }

    #menuOpenIcon {
        display: none;
        visibility: hidden;
    }

    #navMenu {
        left: 0px;
        width: 21vw;
        /* background-color: lime; */
        /* width: max-content; */
    }

    /* Match header left offset and width to `main` for large viewports */
    header {
        margin-left: 21vw;
        width: 80vw;
    }
}