@font-face {
    font-family: 'Violet Sans';
    src: url('fonts/SpaceGrotesk.woff2') format('woff2'),
        url('fonts/SpaceGrotesk-VariableFont_wght.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Violet Sans';
    src: url('fonts/VioletSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}





/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Violet Sans', sans-serif;
    background-color: #F5F3F3;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Global fix */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #F5F3F3;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    height: 30px;
    font-size: 1rem;
    /* or whatever height you need */



}




.name-container {
    position: relative;
    display: inline-block;
}

#rayane {
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 2;
    color: black;
    text-decoration: none;
}

.hover-box {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    transform: translateX(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1;
}

.hover-box a {
    color: black;
    text-decoration: underline;
    font-weight: regular;
}

.name-container:hover .hover-box {
    transform: translateX(225%);
    opacity: 1;
}

.info {
    padding-right: 10px;

}

.info a {
    padding-right: 10px;
    text-decoration: none;
    color: black;
}

main#gallery {
    column-count: 5;
    column-gap: 10px;
    flex: 1;
    padding: 0 10px;
    /* padding-top: 80px; */
    /* or whatever the header height is */

}

/* ===== Info‑page footer ===== */


@media (max-width: 1200px) {
    main#gallery {
        column-count: 4;
    }
}

@media (max-width: 900px) {
    main#gallery {
        column-count: 3;
    }
}

@media (max-width: 600px) {
    main#gallery {
        column-count: 2;
    }
}

@media (max-width: 400px) {
    main#gallery {
        column-count: 1;
    }
}

main#gallery img,
main#gallery video {
    width: 100%;
    margin-bottom: 10px;
    break-inside: avoid;
    display: block;
    border-radius: 6px;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    background: #F5F3F3;
    z-index: 1000;
    width: 100%;
}

.filters {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
}


.filter {
    position: relative;
}


.filter button {
    width: 100%;
    padding: 8px 12px;
    cursor: pointer;
    border: 0px solid black;
    background: none;
    color: black;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
}

.dropdown {
    position: absolute;
    bottom: 100%;
    /* Push it above the button */
    left: 0;
    /* Align it to the left of the button */
    background: white;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    display: none;
    flex-direction: column;
    z-index: 999;
    max-height: 300px;
    overflow-y: auto;
    white-space: nowrap;
}


.dropdown.show {
    display: flex;
}

.dropdown label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.dropdown input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid black;
    margin-right: 8px;
    background-color: transparent;
    cursor: pointer;
}

.dropdown input[type="checkbox"]:checked {
    background-color: black;
}

/* Intro Screen */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: all;
}





.intro-bold {
    font-weight: 100;
    color: white;
}

.intro-text {
    font-size: 2rem;
    margin-top: 60px;
}



.filters-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin: 0 auto;



}


@media (min-width: 601px) {
    .filters {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
    }

    .filter {
        flex: initial;
        text-align: left;
    }

    .filter button {
        width: auto;
        font-size: 1em;
        font-weight: 100;

        padding: 8px 12px;
    }

    #intro-sentence {
        max-width: 600px;
        text-align: center;
        font-family: 'Violet Sans', sans-serif;
        font-size: 1.2rem;
        color: rgb(179, 179, 179);
        opacity: 0;
        font-weight: 100;
        line-height: 1.6;
        padding: 0 1rem;
        animation: fadeInText 2s ease forwards 1s;
    }
}



@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

/* Mobile Filter Drawer */
.mobile-filter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    size: 0.5rem;
    height: 70vh;
    background: white;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-filter.active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .intro-text {
        font-size: 2rem;
        margin-top: 0px;
    }

    #intro-sentence {
        max-width: 600px;
        text-align: center;
        font-family: 'Violet Sans', sans-serif;
        font-size: 0.8rem;
        color: rgb(179, 179, 179);
        opacity: 0;
        font-weight: 100;
        line-height: 1.6;
        padding: 0 1rem;
        animation: fadeInText 2s ease forwards 1s;
    }


    /* ——— HEADER LAYOUT ——— */
    header {
        display: flex;
        /* put name‑block & nav on one line  */
        justify-content: space-between;
        align-items: center;
        /* vertical centring                 */
        padding: 0 12px;
        /* side breathing room               */
        font-size: 0.75rem;
        /* overall header text size          */
    }

    /* make the nav’s links sit on one row with tidy gap */
    .info-nav {
        display: flex;
        gap: 1.2rem;
        /* space between “Visual Research” & “Info” */
        align-items: center;
        margin: 0;
        padding: 0;
    }

    /* optional link styling (keeps what you already have) */
    .info-link {
        font-size: 0.75rem;
        font-weight: 100;
        color: black;
        text-decoration: none;
    }

    .info-link:hover {
        cursor: crosshair;
    }

    /* keep your existing name size override */
    #rayane {
        font-size: 0.75rem;
    }

    /* hide the hover box unless you need it */
    .hover-box {
        display: none;
    }




    .filters {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0;
    }

    .filter {
        flex: 1;
    }

    .filter:nth-child(1) button {
        text-align: left;
        padding-left: 12px;
        font-size: 0.75rem;
    }

    .filter:nth-child(2) button {
        text-align: center;
        font-size: 0.75rem;
    }

    .filter:nth-child(3) button {
        text-align: right;
        padding-right: 12px;
        font-size: 0.75rem;
    }

    .filter button {
        width: 100%;
        border: none;
        background: none;
        font-weight: bold;
        font-size: 1rem;
        color: black;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #F5F3F3;
        padding: 0;

    }
}


.mobile-filter-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#close-mobile-filter {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
}

#mobile-filter-content {
    display: flex;
    flex-direction: column;

    gap: 2rem;
}

.mobile-filter-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 20rem;

}

.mobile-filter label {
    background: transparent;
    color: black;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease;
    width: 100%;
    text-align: left;
}

.mobile-filter label.selected {
    background: black;
    color: white;
}

.mobile-filter input[type="checkbox"] {
    display: none !important;
}




.info-nav {
    display: flex;
    gap: 1.5rem;
    /* space between Info and Visual Research */
    align-items: center;
}

.info-link {
    text-decoration: none;
    color: black;

}

.info-link:hover {
    /* or whatever hover style you use */
}



/* INFO PAGE  */

.info-page {
    background-color: #F5F3F3;
    font-family: "violet sans";
    margin: 0;
    padding: 0;
}

.info-container {
    width: 30%;
    padding: 10px;
    font-size: 3rem;
    line-height: 1, 2;
    background-color: #F5F3F3;
    padding-bottom: 100px;

}

.info-section {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: start;
    column-gap: 2rem;
    margin-bottom: 1rem;
}

.info-label {
    font-size: 1rem;
    color: gray;
    text-transform: lowercase;
    white-space: nowrap;
}

.info-details div,
.info-details li {
    font-size: 1rem;
    color: black;
    line-height: 1.4;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


.info-section li {
    color: black;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-details a {
    color: black;
    text-decoration: none;

    transition: font-weight 0.2s ease;
}

.info-details a:hover {
    font-weight: bold;
}

.info-footer {
    font-family: "violet Sans";
    font-size: 1em;
    color: #666;
    text-align: left;
    padding: 40px 10px 20px;
    /* breathing room above / below */
}




/* INFO PAGE MOBILE */

/* ─── INFO‑PAGE • mobile tweaks ───────────────────────────── */
@media (max-width: 600px) {

    /* container now fills the screen */
    .info-page .info-container {
        width: 100%;
        padding: 24px 16px;

        /* comfortable side‑gutter */
        font-size: 1.5rem;
        /* smaller headline size */
        line-height: 1.25;
        margin-top: 30px;
        margin-bottom: 60px;


    }


    /* stack label above details */
    .info-page .info-section {
        display: block;
        margin-bottom: 1.5rem;

    }




    .info-page .info-label {
        font-size: 0.8rem;
        color: gray;
        margin-bottom: 0.4rem;
    }

    .info-page .info-details div,
    .info-page .info-details li {
        font-size: 0.9rem;
    }

    /* touch‑friendly spacing for links */
    .info-page .info-details a {
        line-height: 1.6;
    }

    /* footer copy a bit smaller / centred */
    .info-footer {
        font-size: 0.8rem;
        text-align: center;
        padding: 24px 0;
    }
}






/* PHOTO ABOUT GRID */
/* full‑viewport vertical strip */
/* ---- full‑width media grid ---- */
/* Replace the old rule for .strip / .media-strip */
.media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding: 0 10px;
}

.media-grid .item {
    box-sizing: border-box;
}

.media-grid .span-1 {
    width: calc(50% - 4px);
    /* two columns */
}

.media-grid .span-2 {
    width: 100%;
    /* full width */
}

.media-grid img,
.media-grid video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        /* override span widths */

    }

    .media-grid .item {
        grid-column: span 1 !important;
        width: 100% !important;
        /* override span widths */

    }
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    font-family: 'Violet Sans', sans-serif;
}

#loader-text {
    font-size: 1.5rem;
    color: white;
}



.coming-soon {
    position: relative;
}

.coming-soon::after {
    content: "Coming soon";
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(-6px);
    background: black;
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border-radius: 4px;
    z-index: 10;
}

.coming-soon:hover::after {
    opacity: 1;
}

#gallery img:hover,
#gallery video:hover {
    filter: grayscale(100%) invert(100%);
    cursor: pointer;
}