/*

Kirbyxhibit
Thanks to Kirby Starterkit by Bastian Allgeier / Sascha Lack (http://getkirby.com)
A tribute to Indexhibit by Daniel Eatock and Jeffery Vaska 
Big hugs to Greg Cadars

Author:  Julien Bidoret
URL:     http://accentgrave.net
Twitter: @julienbidoret

*/




/* Reset
-------------------------------------------------- */
*, *:before, *:after {
    margin: 0;
    padding: 0;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
    display: block;
}


/* Pix
-------------------------------------------------- */
img {
    display: block;
    max-width: 500px;
    max-height:80vh;
}


/* Links
-------------------------------------------------- */
a {
    color: #00f;
    text-decoration: none;
    transition: color .3s, background .3s, border .3s;
}
a:hover {
    color: black;
}


/* Clearfix
-------------------------------------------------- */
.cf {
    overflow:auto;
}


/* Site
-------------------------------------------------- */
html {
    height: 101%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    }
body {
    margin: 0 auto;
    font-family: sans-serif;
    font-family: 'Red Hat Text', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    color: #222;
    overflow-x: hidden;
    }

.wrap {
    /* No longer using flex for sidebar */
    }



/* Removed old hamburger menu styles - using top header now */

/* Top Header (3 columns)
-------------------------------------------------- */
.top-header {
    padding: 1rem 0;
    background: white;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    font-size: 14px;
}

/* Add padding to body so content doesn't hide under fixed header */
body {
    padding-top: 0;
}

.header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-col {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.site-title {
    font-size: 1em;
    font-weight: 700;
}

.site-title a {
    color: #000;
    text-decoration: none;
}

.site-tagline {
    font-size: 1em;
    color: #666;
    line-height: 1.4;
}

.header-nav {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.header-nav a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
}

.header-nav a.active {
    text-decoration: none;
}

.header-nav a:hover {
    text-decoration: none;
}

.header-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 1em;
}

.header-links a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
}

.header-links a:hover {
    text-decoration: none;
}

@media screen and (max-width: 48.24em) {
    .header-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .header-nav {
        border-top: none;
        padding-top: 0;
    }

    .header-links {
        border-top: none;
        padding-top: 0;
    }
}


/* Headings
-------------------------------------------------- */
h1 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 1.5em;
    }
h2 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 1.5em;
    }
h3 {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 1.5em;
    }
h4 {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: .5em;
    }
h1 a, h2 a, h3 a, h4 a {
    color: inherit;
    border: 0 !important;
    }

h1 small {
    font-weight: normal;
    }

hr {
    border: 0;
    border-bottom: 1px dashed black;
}

/* Main
-------------------------------------------------- */
.main {
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-top: calc(120px + 2rem);
}

.main > :first-child {
    margin-top: 0;
}
.main > header {
    padding-top: 0;
    margin-top: 0;
}
.main > header.wrap {
    padding-top: 0;
    margin-top: 0;
}
.main > header.wrap > p:first-child {
    margin-top: 0;
}

/* Text blocks */
.text p,
.text ul,
.text ol {
    max-width: 45em;
    }

.text p {
    margin-bottom: 1rem;
}

.text figure {
    margin-bottom: 1rem;
}

.text .figcaption {
    font-style: italic;
}

.text ul { 
    list-style: none;
    }

.text ul li:before { 
    content: "– ";
    }

.text ol {
    margin-left: 1em;
    }


/* Project meta
-------------------------------------------------- */
.meta {
    margin-bottom: 1.5em;
    }
.meta li {
    float: left;
    list-style: none;
    margin-right: 2em;
    }
.meta li b {
    font-weight: 400;
    color: #000;
    padding-right: .25em;
    }


/* Project teaser
-------------------------------------------------- */
.teaser {
    list-style: none;
    }
.teaser li {
    margin-bottom: 1.5em;
    list-style: none;
    }
.teaser figure { margin: 1.5rem 0;}    


/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
    padding: 1em 0;
    }
.nextprev a {
    border: 0;
    }
.nextprev .prev + .nextprev .next {
    margin-left: 1em;
    }


/* Footer
-------------------------------------------------- */
.footer {
    padding: 2rem;
    font-size: .75em;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 4rem;
    }

.footer a {
    color: black;
    border-bottom:1px solid #aaa ;
    }
.footer a:hover {
    border-color: #222;
    }

/* Media queries
-------------------------------------------------- */
@media screen and (max-width: 48.24em) {
    .main {
        padding: 1.5rem;
        margin-top: 0;
    }

    .top-header {
        padding: 1.5rem;
        /* Make header scroll with page on mobile */
        position: relative;
    }
}


/* Project Grid
-------------------------------------------------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 0 2rem 0;
}

.project-item {
    position: relative;
    overflow: hidden;
}

.project-item a {
    display: block;
    border: 0;
    color: #000;
    text-decoration: none;
}

.project-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease, transform 0.1s ease;
    /* Black and white pixelated effect */
    filter: grayscale(100%) invert(13%) contrast(1.2);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.project-item:hover .project-thumbnail {
    /* Remove filters on hover - show color and sharp */
    filter: none;
    image-rendering: auto;
}

.project-info {
    margin-top: 0.5rem;
}

.project-year {
    font-size: 0.75em;
    color: #666;
}

.project-title {
    font-weight: 400;
    margin-top: 0.25rem;
    text-decoration: none;
    color: #000;
}

/* Two Column Layout for Project Pages
-------------------------------------------------- */
.work-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.work-description {
    /* position: sticky; */
    top: 120px;
}

.work-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media screen and (max-width: 48.24em) {
    .work-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-description {
        position: relative;
        top: 0;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    figure img{max-width: 100%;}
}