/* =========================================================
   MUCILAGE — MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   1. GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: #fff;
    font-family: "Inter", "Chalkboard", "Marker Felt";
    font-size: 15px;
}

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

a:hover {
    color: #000;
    text-decoration: underline;
}

a:visited {
    color: #000;
}

.andcover {
    margin-top: 0;
    padding-bottom: 50px;
    text-align: center;
    font-size: 9pt;
}

.footer {
    margin-top: 0;
    text-align: center;
    font-size: 9pt;
}


/* =========================================================
   2. SITE HEADER
   ========================================================= */

.site-header-right {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50%;
    text-align: right;
    z-index: 1000;
}

.wigglebig,
h1.wigglebig {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 1.75vw;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-align: right;
}

.wiggle {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Helvetica", Arial, sans-serif;
    color: darkgrey;
    font-size: 10pt;
    line-height: 1.3;
    text-align: right;
}

.wiggle a,
.wiggle a:visited {
    color: inherit;
}


/* =========================================================
   3. HOMEPAGE
   ========================================================= */

.grid-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    padding: 100px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: white;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.grid-container::-webkit-scrollbar {
    display: none;
}

.grid-item {
    flex: 0 0 50%;
    width: 50%;
    min-width: 50%;
    padding: 0.5%;
    border: 5px dashed;
    background-color: white;
    color: white;
    font-size: 30px;
    text-align: center;
}

.grid-item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 68vh;
    margin: 0 auto;
}

.textinfo {
    padding: 8px 0 0;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 1vw;
    text-align: center;
}

.producerinfo {
    padding: 2px;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 0.8vw;
    color: darkgrey;
    text-align: center;
}

.scroll-arrow {
    position: fixed;
    z-index: 2000;
    font-family: "Times New Roman", serif;
    font-size: 22px;
    color: darkgrey;
    cursor: pointer;
    user-select: none;
}

.scroll-direction {
    position: fixed;
    top: 90vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    font-size: 22px;
    cursor: pointer;
}


/* =========================================================
   4. PROJECT PAGE — HEADER / TITLES
   ========================================================= */

.category,
h1.category {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 13pt;
    font-weight: 700;
    line-height: normal;
    color: black;
    text-align: center;
}

.mucilage-info {
    width: 65%;
    margin: 0 auto;
    text-align: left;
}

.mucilage-info .category {
    text-align: left;
}

.mucilage-info .producerinfo {
    padding: 2px 0 0;
    text-align: left;
}


/* =========================================================
   5. STANDARD PROJECT MEDIA
   ========================================================= */

.project-media {
    width: 65%;
    margin: 0 auto;
}

.project-stills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

/* 2 × 2 PROJECT GRID */

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

.project-stills-grid img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.project-video {
    position: relative;
    width: 100%;
    margin-top: 30px;
    padding-top: 56.25%;
}

.project-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


/* =========================================================
   6. HELIXX — BESPOKE GALLERY
   ========================================================= */

.helixx-gallery {
    width: 65%;
    margin: 0 auto;
}

.helixx-row {
    display: grid;
    width: 100%;
    margin-bottom: 8px;
}

.helixx-row-1 {
    grid-template-columns: 1fr;
}

.helixx-row-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.helixx-row-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.helixx-row img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    cursor: zoom-in;
}


/* =========================================================
   7. PROJECT DESCRIPTION
   ========================================================= */

.project-description {
    width: 65%;
    margin: 24px auto 0;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: clamp(12px, 0.7vw, 14px);
    line-height: 1.5;
    color: darkgrey;
    text-align: left;
}


/* =========================================================
   8. PROJECT NAVIGATION / CONTACT
   ========================================================= */

.project-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 65%;
    margin: 20px auto 0;
}

.project-nav a {
    padding: 10px 0;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: clamp(11px, 0.8vw, 14px);
    color: black;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.project-nav a:first-child {
    text-align: left;
}

.project-nav a:nth-child(2) {
    text-align: center;
}

.project-nav a:last-child {
    text-align: right;
}

.project-nav a:hover {
    opacity: 0.4;
    text-decoration: none;
}

.project-divider {
    width: 65%;
    margin: 30px auto 0;
    border: none;
    border-top: 1px solid #f1f1f1;
}

.project-contact {
    width: 65%;
    margin: 30px auto 50px;
    font-family: "Helvetica", Arial, sans-serif;
    text-align: center;
}

.project-contact p {
    margin: 0 0 5px;
    font-size: 11px;
    color: darkgrey;
}

.project-contact a {
    font-size: 12px;
    color: black;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.project-contact a:hover {
    opacity: 0.4;
    text-decoration: none;
}


/* =========================================================
   9. LIGHTBOX
   ========================================================= */

.project-page .project-media img {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.96);
    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

.lightbox-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 160px);
    height: calc(100% - 80px);
}

.lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    cursor: default;
}

.lightbox button {
    position: fixed;
    border: 0;
    background: transparent;
    color: black;
    font-family: "Times New Roman", serif;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close {
    top: 18px;
    right: 20px;
}

.lightbox-prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}


/* --------------------------------
   KEYBOARD ACCESSIBILITY
-------------------------------- */

.project-media img:focus-visible {
    outline: 2px solid black;
    outline-offset: 4px;
}

.lightbox button:focus-visible {
    outline: 2px solid black;
    outline-offset: 4px;
}

/* =========================================================
   10. ABOUT PAGE
   ========================================================= */

.about-content {
    padding: 20% 10% 0;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 13px;
    text-align: center;
}

.about-heading {
    margin: 0 0 2em;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    text-align: inherit;
}

.about-copy {
    color: darkgrey;
}

.about-copy p {
    margin: 0 0 1.4em;
}

.about-contact {
    margin-top: 10em;
}

.about-contact p {
    margin: 0 0 5px;
}

.about-contact a {
    color: black;
    text-decoration: none;
}

.about-contact a:hover {
    color: darkgrey;
    text-decoration: none;
}


/* =========================================================
   11. HOVER LANGUAGE
   ========================================================= */

.wigglebig a:hover,
.textinfo a:hover,
.project-nav a:hover,
.category a:hover {
    color: darkgrey;
    text-decoration: none;
}

.project-page h1.category a:hover {
    color: darkgrey;
    text-decoration: none;
}

.site-header-right .wiggle a:hover {
    color: #d3d3d3;
    text-decoration: none;
}


/* =========================================================
   12. DESKTOP ONLY
   ========================================================= */

@media screen and (min-width: 769px) {

    body.home-page {
        overflow-y: hidden;
    }

    .home-page .grid-container {
        height: 100vh;
        height: 100dvh;
        padding: 0;
        display: flex;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    

}


/* =========================================================
   13. MOBILE / TABLET
   ========================================================= */

@media screen and (max-width: 768px) {

    html,
    body {
        background-color: white;
        overscroll-behavior-y: none;
    }

        .about-page .about-content {
        padding: 130px 10% 0;
    }



    /* FIXED MOBILE HEADER */

    .site-header-right {
        position: fixed;

        top: 0;
        left: 0;
        right: 0;

        width: 100%;

        height: calc(
            75px + env(safe-area-inset-top, 0px)
        );

        padding-top: calc(
            12px + env(safe-area-inset-top, 0px)
        );

        padding-right: 12px;

        background-color: #fff;

        text-align: right;

        z-index: 1000;

        box-sizing: border-box;
    }


    .wigglebig,
    h1.wigglebig {
        font-size: clamp(16px, 4.8vw, 22px);
        line-height: 1;
    }


    .wiggle {
        font-size: clamp(9px, 2.7vw, 13px);
        line-height: 1.05;
    }


    /* HOMEPAGE */

    .home-page .grid-container {
        display: block;
        width: 100%;

        padding-top: calc(
            90px + env(safe-area-inset-top, 0px)
        );

        overflow: visible;
    }

    .home-page .grid-item {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 2%;
    }

    .home-page .grid-item .andcover {
        width: 100%;
    }

    .home-page .grid-item img {
        display: block;
        width: 100%;
        height: auto;
    }

    .home-page .textinfo {
        display: block;
        width: 100%;
        max-width: 100%;
        padding-top: 5px;
        font-size: 11px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .home-page .textinfo a {
        display: block;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .home-page .producerinfo {
        width: 100%;
        max-width: 100%;
        padding-top: 2px;
        font-size: 11px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
        overflow-wrap: break-word;
    }

  .home-page .scroll-direction {
    display: none !important;
}


    /* PROJECT HEADER */


.project-page .wigglebig {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(16px, 4.8vw, 22px);
    line-height: 1;
    text-align: right;
}

.project-page .wiggle {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(9px, 2.7vw, 13px);
    line-height: 1.05;
    text-align: right;
    white-space: nowrap;
}

    .project-page .category {
        padding-top: 95px !important;
    }

    .mucilage-info {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .mucilage-info .category,
    .mucilage-info .producerinfo {
        text-align: center;
    }

    .producerinfo {
        font-size: 11px;
    }


    /* PROJECT MEDIA */

    .project-page .andcover {
        width: calc(100% - 16px);
        margin-left: 8px;
        margin-right: 8px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .project-page .andcover > img,
    .project-page .andcover > a > img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .project-page .andcover > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .project-page .andcover iframe {
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }

    .project-stills-grid {
        gap: 4px;
    }

    .project-video {
        margin-top: 20px;
    }


    /* HELIXX */

    .helixx-row {
        margin-bottom: 4px;
    }

    .helixx-row-3,
    .helixx-row-2 {
        gap: 4px;
    }


    /* PROJECT DESCRIPTION */

    .project-description {
        width: calc(100% - 16px);
        margin: 20px auto 0;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
    }


    /* PROJECT NAVIGATION / CONTACT */

    .project-nav {
        width: calc(100% - 24px);
        margin: 15px auto 0;
    }

 .project-nav a {
    padding: 10px 2px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

    .project-divider {
        width: calc(100% - 24px);
        margin-top: 25px;
    }

    .project-contact {
        width: calc(100% - 24px);
        margin: 25px auto 40px;
    }

    .project-contact p {
        font-size: 10px;
    }

    .project-contact a {
        font-size: 11px;
    }


    /* LIGHTBOX */

    .lightbox-image-wrap {
        width: calc(100% - 30px);
        height: calc(100% - 100px);
    }



    .lightbox-prev,
    .lightbox-next {
        color: white !important;

        text-shadow:
            0 0 4px rgba(0, 0, 0, 0.65);
    }

    .lightbox-prev:focus-visible,
    .lightbox-next:focus-visible {
        outline: 2px solid white;
        outline-offset: 4px;
    }

}

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox button {
        font-size: 22px;
    }

}


@media screen and (max-width: 768px) {

    .home-page .scroll-arrow,
    .home-page .scroll-direction {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

}