/* ----------------------------------------
   Reset & Base
---------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    /* Medium weight, change as you like */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ----------------------------------------
   Branding & Menu
---------------------------------------- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3rem;
}

.site-brand {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-weight: bold;
    z-index: 101;
    font-size: 1.5rem;
}

.site-brand a {
    text-decoration: none;
    color: black;
}

.close-slide {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-weight: bold;
    z-index: 101;
    font-size: 1.5rem;
}

.close-slide a {
    text-decoration: none;
    color: black;
}

.menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    text-align: right;
    z-index: 100;
    font-weight: bold;
    background-color: white;
    /* border-radius: 5px; */
}

.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.burger-label {
    display: none;
}

.menu-items {
    list-style: none;
    display: none;
    flex-direction: column;
    font-size: 1.5rem;
    gap: 0.3rem;
}

.menu-items li a {
    text-decoration: none;
    color: black;
    white-space: nowrap;
}


.menu-items li.active::before {
    font-family: 'Space Grotesk';
    content: "→ ";
}

body.menu-open .menu-items {
    display: flex;
}

/* Burger menu on mobile */
@media (max-width: 600px) {
    .menu {
        width: 100%;
    }

    .burger-label {
        display: block;
    }

    .menu-label {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-items {
        display: none;
        align-items: flex-end;
    }

    .menu-items li.active::before {
        content: "→ ";
    }

    body.menu-open .menu-items {
        display: flex;
    }
}

/* ----------------------------------------
   Single‐Artwork Layout
---------------------------------------- */
.artwork-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* .image-row {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
} */

.image-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 0 1rem;
    gap: 1rem;
}


.nav-arrow {
    text-align: center;

}

.nav-arrow a {
    text-decoration: none;
    font-size: 2rem;
    color: black;
}

/* .nav-arrow .disabled {
    opacity: 1.0; 
    pointer-events: none;
} */

@media (max-width: 600px) {
    .nav-arrow a {
        font-size: 1.5rem;
    }
}


.image-wrapper {
    flex: 1;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.artwork-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    object-fit: contain;
    height: 100%;
    width: auto;
}

/* .artwork-image.loaded {
    opacity: 1;
} */

.caption {
    text-align: right;
    margin: 1rem;
    font-size: 1.1rem;
}

.caption .title {
    font-weight: bold;
}

/* Dragging feedback */
body.dragging {
    cursor: grab;
    user-select: none;
}

body.dragging .artwork-image {
    opacity: 0.85;
    transition: none;
}

body.dragging.swipe-left .artwork-image {
    transform: translateX(-1.5rem);
    transition: transform 0.5s ease;
}

body.dragging.swipe-right .artwork-image {
    transform: translateX(1.5rem);
    transition: transform 0.5s ease;
}

/* .artwork-image {
    transition: transform 0.2s ease, opacity 0.6s ease;
} */

/* ----------------------------------------
   Gallery Grid
---------------------------------------- */
.gallery-container {
    width: 100%;
    margin: 3rem auto;
    padding: 2rem;
}

.year-block {
    display: grid;
    padding-right: 10rem;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    align-items: start;
    width: 100%;
    /* margin-left: 5rem; */
    /* background-color: blue; */
}

.year-label {
    font-weight: bold;
    text-align: left;
    position: sticky;
    top: 3rem;
}

/* Grid of thumbnails */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    align-items: center;
    justify-items: stretch;
}

/* Thumbnail & “View” */
.grid-item {
    flex: 1;
    display: flex;
    justify-content: center;
    max-height: 40vh;
}

/* ----------------------------------------
   Anchor Offset for Fixed Header
---------------------------------------- */
/* Ensure smooth scroll to anchors leaves room for the 3rem top-bar */
[id] {
    scroll-margin-top: 4rem;
}

@media (max-width: 600px) {
    .caption {
        font-size: 0.85rem;
    }

    .top-bar {
        background-color: white;
    }

    .image-row {
        margin-top: 3rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-container {
        padding: 1rem;
    }

    .year-block {
        display: block;
        padding-right: 0rem;
        margin-top: 1rem;
        margin-left: 0rem;
    }

    .year-label {
        position: static;
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .grid-item {
        /* flex: 1; */
        /* width: 100%; */
        max-height: 40vh;
        /* max-width: 100%; */
    }
}

.view-link {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: black;
}

.email-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* vertically center if needed */
    margin-top: 3rem;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

.arrow-down {
    font-size: 2rem;
    line-height: 1;
    text-align: center;
}

.email-link {
    font-size: 1.2rem;
    text-align: center;
    text-decoration: none;
    color: black;
}

.contact-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
    /* or 100vh if you want perfect vertical centering */
}

.artwork-image-link,
input:focus {
    outline: none;
}