
@font-face {
    font-family: "AkkuratLLEduWeb-Light";
    src: url("AkkuratLLEduWeb-Light.woff") format("woff");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Light";
    src: url("AkkuratLLEduWeb-Light.woff2") format("woff2");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Bold";
    src: url("AkkuratLLEduWeb-Bold.woff") format("woff");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Bold";
    src: url("AkkuratLLEduWeb-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Regular";
    src: url("AkkuratLLEduWeb-Regular.woff") format("woff");
}

@font-face {
    font-family: "AkkuratLLEduWeb-Regular";
    src: url("AkkuratLLEduWeb-Regular.woff2") format("woff2");
}


a {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    color: black;
    font-size: 0.8rem;
    font-weight: normal;
    /* font-weight: 400;*/
    letter-spacing: 0.02em;
}

h1 {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-top: 9em;
    margin-bottom: 2em;
    line-height: 0.7em;
    font-weight: 600; 
    letter-spacing: 0.04em;
    float: none;
}

h2 {
    font-family: "AkkuratLLEduWeb-Light", sans-serif;
    font-size: 0.9rem;
    font-weight: 100;
    margin-top: 5em;
    margin-bottom: 0.5em;
    line-height: 1.5em;
    float: none;
    letter-spacing: 0.02em;
}

h3 {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    font-size: 36px;
    margin-top: 3.6em;
    line-height: 1em;
    /*font-weight: 100; */
    letter-spacing: 0.02em;
    float: none;
}

h4 {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    font-size: 12px;
    /* font-weight: 200; */
    margin-top: 1em;
    margin-bottom: 3em;
    line-height: 1.5em;
    float: none;
}

body {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    background-color: #fcfcfc;
    font-size: 12px;
    color: black;
    letter-spacing: 0.004em;
    width: 100vh;
    font-weight: 400;
    min-height: 100vh;
    padding: 0;
}

section{
    overflow: hidden;
    width: 100rem;
    margin: 0 auto 0 auto; 
}

div.main{
    width: 100vh;
    float: left;
    margin-left: 22vh;
    margin-top: 0;
    padding-top: 0;
}

/* Keep the first two index thumbnails flush with the top of the main area. */
div.main > a:first-child,
div.main > a:nth-child(2) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

div.main > a:first-child > img,
div.main > a:nth-child(2) > img {
    margin-top: 0 !important;
}

div.side{
    width: 350px;
    float: left;
    padding-right: 3em;
    padding-left: 7em;
    margin-left: 1em;
    margin-right: 3em;
    margin-top: 5.5em;
}



img{
    width: 40vh;
    height: 40vh;
    overflow: hidden;
    object-fit: cover;
    margin: 0.2em;
    padding-bottom: 0.3em;
}

iframe {
    float:left;
    width: 200px;
    height: auto;
    overflow: hidden;
    object-fit: fill;
    margin: 0em;
}

footer {
    font-family: "AkkuratLLEduWeb-Regular", sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    line-height: 1em;
    font-weight: 400;
    letter-spacing: 0.02em;
    float: none;
    text-align: left;
    height: 4em;
}

/* Added the section style from your second block here */
section {
    margin-left: 0em;
    overflow: visible;
}
    
                
@media (max-width: 756px) {
    /* Keep the mobile page exactly within the viewport: vertical scrolling only. */
    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    h1 {
        margin-top: 7em;
        margin-bottom: 0;
    }

    h2 {
        margin-top: 4em;
    }

    section {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    /* Exactly the same mobile sidebar geometry as project pages. */
    div.side {
        position: relative;
        z-index: 3000;
        width: 350px;
        box-sizing: border-box;
        padding-left: 2.5em;
        padding-right: 2.5em;
        margin: 5.5em auto 0 auto;
        float: none;
        overflow: visible;
    }

    /* Exactly the same mobile main geometry as project pages. */
    div.main {
        position: relative;
        z-index: 1;
        width: 350px;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 2.5em;
        padding-right: 2.5em;
        padding-top: 0;
        margin: 0 auto;
        float: none;
        clear: both;
        overflow: visible;
    }

    /* Index thumbnails: square, cropped, and contained within the same
       left/right content edges as the sidebar and project pages. */
    div.main > a {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    div.main > a > img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin: 0 0 1.2rem 0;
        padding: 0;
        float: none;
        box-sizing: border-box;
    }
}
    

/* Index footer: match project page footer exactly */
footer {
    float: none;
    text-align: left;
    height: 4em;
    font-family: Akkurat, sans-serif;
    line-height: 1em;
    font-weight: 600;
    text-transform: uppercase;
    color: black;
    padding-left: 0;
    font-size: 10px;
    letter-spacing: 0.03em;
}

footer p {
    margin: 0;
}
