html {
    font-size: 90%;
    scroll-padding-top: 5rem;
}

/*font stuff*/
    body, ul, li, h1, h2, a{
        margin: 0;
        padding: 0;
        font-family: arial;
        background-color: rgb(221,221,221);
    }

    h1, h2, a {
        background-color: transparent;
    }
/*end font stuff*/
/*body & text*/
    main{
        background-color: rgb(221,221,221);
        max-width: 100%;
        width: 75rem;
        margin: auto;
        padding: 0 2.5rem;
        box-sizing: border-box;
    }
    article p,
    article li{
        font-size: 1.3em;
        line-height: 2em;
    }
    article p,
    article li{
        color: black;
    }
    article a{
        text-decoration: underline;
        font-size: inherit;
        line-height: inherit;
    }
    article p a[href^="#footnote"] {
        text-decoration: none;
        font-size: 1rem;
    }
    article ul, 
    article ol {
        margin: 1.5em 0;
        padding-left: 2.5rem;
    }

    article h1{
        color: rgb(4,50,66);
        font-size: 2.375rem;
    }
    article h2{
        color: rgb(4,50,66);
        font-size: 1.75rem;
    }
    .transcript p{
        font-size: 1em;
        line-height: 1.5em;
    }
/*end body & text*/

/*banner stuff*/
    .banner{
        position: relative;
    }
    .banner img{
        width: 40%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 1.875rem;
    }
/*end banner stuff*/

/*img stuff*/
    img{
        max-width: 100%;
    }
    video{
        max-width: 100%;
    }
/*end img stuff*/

/*menu stuff*/
    nav{
        background-color: rgb(221,221,221);
        padding: 0.625rem;
        position: sticky;
        top: 0px;
        z-index: 1000;
    }
    nav ul{
        white-space: nowrap;
        max-width: 75rem;
        margin: 0 auto;
    }
    nav li{
        width: 25%;
        display: block;
        font-size: 1.25rem;
        text-align: center;
        display: inline-block;
    }
    nav li a{
        text-decoration: none;
        color: black;
    }
    nav li a:hover{
        font-weight: bold;
    }
    a.active{
        text-decoration: underline;
    }
    .top-menu a{
        line-height: 2em;
        font-size: 1.3em;
    }
    .main-nav {
        position: sticky;
        top: 0;
        z-index: 1000;
        overflow: visible;
        position: sticky;
    }
    /*menu stuff*/
    /* Hide hamburger on large screens */
    /* Hamburger base */
    .hamburger {
        display: none;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        width: 2.1875rem;
        height: 1.875rem;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .hamburger span {
        display: block;
        width: 100%;
        height: 0.25rem;
        background: black;
        margin: 0.375rem 0;
        transition: all 0.3s ease;
    }
    /* Morph into X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(0.625rem) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-0.625rem) rotate(-45deg);
    }
    /* Slide-out menu panel */
    .side-menu {
        position: fixed;
        top: var(--menu-top, 0.01rem);
        right: -12.5rem;
        width: 12.5rem;
        height: 100vh;
        background-color: rgb(221,221,221);
        z-index: 999; /*lower than nav hamburger */
        transition: right 0.3s ease;
        padding-top: 0.1rem;
    }
    .side-menu ul {
        display: block !important;
        opacity: 1 !important;
    }

    .side-menu.open {
        right: 0;
    }
    .side-menu ul {
        list-style: none;
        padding: 0;
        white-space: normal;
    }
    .side-menu li {
        margin: 1.25rem;
        display: block;
        width: 100%;
        margin: 0;
        text-align: left;
    }
    .side-menu a {
        text-decoration: none;
        font-size: 1.25rem;
        color: black;
        display: block;
        padding: 0.9375rem 1.25rem;    
    }
    .side-menu a.active{
        text-decoration: underline;
    }
    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
    }
    @media (min-width: 43.750000001rem) {
        .side-menu {
            display: none;
        }
    }
    @media (max-width: 43.75rem) {
        .main-nav ul {
            display: none;
        }
        nav{
            padding-top: 1.25rem;
            padding-bottom: 1.25rem;
            min-height: 1.875rem;
        }
        .hamburger {
            display: block;
            top: 1.25rem;
            right: 1.25rem;
        }
        .banner img{
            width: 70%;
        }
    }
    .side-menu.open {
        right: 0;
    }
/*end menu stuff*/

/*requiem grid*/
    .quilt-wrapper{
        position: relative;
        width: fit-content;
        margin: 0 auto;
    }
    #quilt{
        display: block;
        max-height: 90vh;
        max-width: 100%;
        width: auto;
        margin: 0 auto;
    }
    .grid-overlay{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    .grid-overlay .cell{
        border: 1px solid transparent;
        background: transparent;
        display: block;
    }
    .instructions p{
        text-align: center;
    }
/*end requiem grid*/

/*requiem museum write-ups*/
    .gridDescript{
        text-align: left;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    .back-btn{
        align-self: flex-end;
        margin: 0;
    }
    .back-btn a {
        display: inline-block;
        padding: 0.25rem 0.625rem;
        background-color: #ddd;
        border-radius: 0.25rem;
        text-decoration: none;
        font-size: 0.8rem;
        color: #333;
    }
    .back-btn a:hover {
        background-color: #ccc;
    }
    .gridDescript img{
        max-width: 40%;
        display: inline-block;
        margin: 0 0;
        bottom: 5.3125rem;
    }
    .gridDescript p{
        max-width: 100%;
        position: relative;
        /* left: 18%;*/
        font-size: 1em;
        /* line-height: 1em; */
        margin: 0.2rem 0;
    }
    .gridDescript .side-by-side {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0.9375rem;
    }

    .gridDescript img {
        max-width: 40%;
        height: auto;
        margin-right: auto;
        display: block;
    }

    .gridDescript article {
        flex: 1 1 18.75rem;
        min-width: 15.625rem;
    }
    p.indent{
        margin-left: 1.875rem;
    }
/*end requiem museum write-ups*/

/*timeline*/
    .timeline {
        display: grid;
        row-gap: 0.5rem;
        font-size: 1.3em;
    }
    .time-row {
        margin-left: 1.875rem;
        display: grid;
        grid-template-columns: minmax(min-content, 30%) 1fr; 
        column-gap: 1.5rem;
        margin-bottom: 1.5rem;
        align-items: baseline;
        max-width: 100%; 
        box-sizing: border-box;
    }
    .time-row.circumscribed {
        margin-bottom: 0.5rem;
        grid-template-columns: minmax(min-content, 35%) 1fr;
    }

    .month {
        font-weight: bold;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .event {
        min-width: 0;
    }
/*end timeline*/

/*footer*/
    footer{
        background: rgb(150, 167, 212);
        color: white;
        padding: 0x;
        text-align: center;
    }
    .site-footer {
        padding: 1rem 1rem;
        text-align: center;
        font-size: 0.9rem;
        color: #333;
    }
    .site-footer a {
        color: #333;
        text-decoration: none;
        margin: 0 0.75rem;
    }
    .site-footer a:hover {
        text-decoration: underline;
    }
    .footer-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    .footer-links img {
        width: 2.1875rem;
        height: 2.1875rem;
        object-fit: cover;
        display: inline-block;
        vertical-align: middle;
    }
    .footer-links a:nth-child(2) img {
        transform: scale(1.8);
    }
    .footer-meta p {
        margin: 0.2rem 0;
    }
/*end footer*/

/*about proj side-by-side formatting*/
    .aboutProject1 .side-by-side{
        display: flex;
        align-items: center;
        gap: 1.25rem;
        container-type: inline-size;
    }
    .aboutProject1 .side-by-side img {
        width: 100%;
        height: auto;
    }
    .aboutProject1 .side-by-side h3 {
        font-size: clamp(1.2rem, 2.5vw + 0.5rem, 2.2rem);
        margin: 0;
        line-height: 1.2;
    }
    .side-by-side {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }
    .side-by-side.video-layout > div:last-child {
        flex-basis: 28.125rem;
        flex-shrink: 0;
        width: 28.125rem;
    }
    h3{
        font-family: arial;
    }

    .ratio-1-1 img { flex: 1; }
    .ratio-1-1 h3 { flex: 1; }
    .ratio-1-1 p { flex: 1; }

    .ratio-2-1 img { flex: 2; }
    .ratio-2-1 h3 { flex: 1; }
    .ratio-2-1 p { flex: 1; }

    .ratio-3-1 img { flex: 3; }
    .ratio-3-1 h3 { flex: 1; }
    .ratio-3-1 p { flex: 1; }

    .ratio-1-2 img {
        flex: 0 0 100% !important;
        max-width: 100% !important; 
    }
    .ratio-1-2 div { 
        flex: 0 0 100% !important; 
        max-width: 100% !important; 
    }

    /* Desktop: Side-by-side when screen is wider than 768px */
    @media (min-width: 48rem) {
        .side-by-side {
            flex-direction: row; 
            align-items: flex-start;
        }
        .side-by-side img {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
        }

        .ratio-1-1 img, 
        .ratio-1-1 h3 { 
            flex: 1 1 50%; 
            max-width: 50%;
        }

        .ratio-2-1 img { flex: 1 1 66%; max-width: 66%; }
        .ratio-2-1 h3  { flex: 1 1 33%; max-width: 33%; }

        .ratio-3-1 img { flex: 1 1 75%; max-width: 75%; }
        .ratio-3-1 h3  { flex: 1 1 25%; max-width: 25%; }

        .ratio-1-2 img { 
            flex: 0 0 33.33% !important; 
            max-width: 33.33% !important; 
        }

        .ratio-1-2 div { 
            flex: 0 0 66.66% !important; 
            max-width: 66.66% !important; 
        }
        
        .gridDescript p{
            max-width: 100%;
            flex: 2;
        }
        .gridDescript img{
            flex: 1;
            max-width: 33%; 
        }
        .back-btn {
            float: right;
            clear: right;
            margin-left: 1rem;
            margin-bottom: 0.5rem;
        }
        .gridDescript article {
            display: block;
        }
        .diagram img{
            max-width: 75%;
        }
        .diagram p{
            max-width: 75%;
            font-size: 0.8rem;
        }
        .imgCaption p {
            font-size: 0.6rem;
        }
    }
/*end side by side stuff*/

img.circle {
    border-radius: 50%;
    object-fit: cover;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #333;
  color: #fff;
  padding: 10px 15px;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid orange;
}


.diagram {
    display: table;
    margin: 0 auto;
}
.diagram img{
    display: block;
    width: 100%;
    height: auto;
    margin: auto;
}
.diagram p{
    font-size: 0.6rem;
    margin-top: 10px;
    margin: auto;
}

.imgCaption p {
    font-size: 0.6rem;
}
