html {
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif ;
    font-optical-sizing: auto;
    font-style: normal;
    overflow-x: hidden;
background-color: #000; 
}

body {
    margin: 0;
    
    background-color: #000;
    font-size: 10pt;

}

#nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;   
    align-items: center; 
    text-align: left;
    height: 6.5vh;
    justify-content: flex-start;
    width: 100vw;
    color: white;
    padding-top: px;
    font-size: 10pt;
    overflow-y: hidden;
    position: fixed;
    z-index: 20020;
}

#nav.pattern-active {
    color: black;
}

body.home-page #nav:not(.pattern-active) #Title {
    mix-blend-mode: difference;
}

#nav.pattern-active ~ #InfoContent.active {
    color: black;
}

#nav.pattern-active ~ #InfoContent.active a {
    color: black;
}

#Title { 
    text-align: left;
    cursor: pointer;
    margin-left: 20px;
    width: 80px;
}

#Index { 
    text-align: left;
    cursor: pointer;
    width: 40px;
}

#InfoButton { 
    text-align: left;
    margin-right: 0;
    cursor: pointer;
    width: 20px;
}

/* DESKTOP / REAL HOVER DEVICES:
   hover = temporary line-through
*/
@media (hover: hover) {
  #Title:hover,
  #Index:hover,
  #InfoButton:hover {
    text-decoration: line-through;
  }
}

/* TOUCH DEVICES:
   disable hover text-decoration completely so it
   doesn't get "stuck" after tapping.
   Only .info-open controls the line-through.
*/
@media (hover: none) {
  #Title:hover,
  #Index:hover,
  #InfoButton:hover {
    text-decoration: none;
  }
}





#main-column {
    width: 100%;
    background-color: black;
}

/* One shoot / project row */
.project {
    position: relative;
    width: 100%;
    height: auto;          /* JS will set fixed height */
    overflow-x: auto;      /* allow horizontal scroll */
    overflow-y: hidden;
    background-color: #000;
}

/* Horizontal track that holds all images/videos */
.project-track {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;  /* make sure they butt up from the left */
    height: 100%;
    background-color: #000;
    font-size: 0;                 /* kill any stray whitespace */
}

/* Each media cell */
.project-item {
    flex: 0 0 auto;        /* don’t shrink, don’t wrap */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;          /* fill the row height */
    margin: 0;
    padding: 0;
    width: auto;          /* 👈 this is causing the issues */
    overflow: hidden; 
}

/* Single-item rows: make the one media cell fill the width
   so videos don't start tiny on first paint */
.project.single-item .project-item {
    width: 100%;
}


/* Desktop-only: rows that are 3× copies of one portrait */
/* Desktop-only: rows that are 3× copies of one portrait */
@media (min-width: 769px) {
  .project.triptych-row {
    overflow-x: hidden; /* no horizontal scroll for this row */
  }

  .project.triptych-row .project-track {
    justify-content: center;
  }

  .project.triptych-row .project-item {
    /* width will be set in JS so we can make 3 fit perfectly */
    flex: 0 0 auto;
  }
}



/* All media: always fill the cell, no tiny-in-the-corner phase */
.project-item img,
.project-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* crop if needed, no black bars */
}


/* First image: full width, sets the height via JS 
.project-item:first-child img,
.project-item:first-child video {
    width: 100%;
    height: auto;
}*/



/* All NON-first images:
   - exactly match the row height
   - width auto adjusts (can be wider than screen)
   - no black bars top/bottom
*/

/* You can keep .active / .passed for styling if you want,
   but they no longer control transform */



/* When manually scrubbing, disable the slide animation 
.project.no-slide img,
.project.no-slide video {
    transition: none !important;
}*/


#index {
    cursor: pointer  !important;
}
/* Full-screen Index overlay */
#pattern-wrapper {
    display: none;          /* hidden until Index is clicked */
    position: fixed;
    inset: 0;               /* top:0; right:0; bottom:0; left:0 */
    width: 100vw;
    background: #ffffff;
    z-index: 1500;
    overflow: hidden;
    box-sizing: border-box;
    touch-action: none;     /* prevent touch scroll leaking to body on iOS */
}

/* When Index is open, lock page scroll so home can't move underneath */
html.index-open,
body.index-open {
    overflow: hidden;
}




.label1 {
    top: 100px !important;
    justify-content: space-between;
    width: 100vw;
    position: absolute;
}
.label2 {
    top: 100px !important;
    left: 200px;
    justify-content: space-between;
    width: 100vw;
    position: absolute;
}
.label3 {
    top: 100px !important;
    left: 400px;
    justify-content: space-between;
    width: 100vw;
    position: absolute;
}
.label4 {
    top: 100px !important;
    left: 600px;
    justify-content: space-between;
    width: 100vw;
    position: absolute;
}

#InfoContent {
    display: none;              /* Hidden by default */
    position: fixed;
    top: 7.2vh;                 /* same as before (just under nav) */
    left: 0;
    right: 0;
    bottom: 0;                  /* <-- instead of height: calc(...) */
    width: 100vw;
    font-size: 10pt;
    color: white;
    z-index: 1500;
    overflow-y: auto;           /* scrollable */
    -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
    box-sizing: border-box;
}


a {
    text-decoration: underline;
    color: white;
}

a:hover {
    text-decoration: none;
    color: white;
}

/* Remove underline from nav links (home + index page) */
#nav a {
    text-decoration: none;
}

/* Keep your line-through hover behavior for nav items */
#nav a:hover {
    text-decoration: line-through;
}

#Title,
#Index,
#InfoButton {
  text-decoration: none;
}

/* Desktop hover only (real pointer & hover) */
@media (hover: hover) and (pointer: fine) {
  #Title:hover,
  #Index:hover,
  #InfoButton:hover {
    text-decoration: line-through;
  }

  /* Links inside Info (AMAZE / ART) – underline off on hover, like home */
  #aboutcontact a:hover {
    text-decoration: none;
  }
}

/* Info open state (works on mobile + desktop) */
#InfoButton.info-open {
  text-decoration: line-through;
}


#InfoContent.active {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Match nav's 3 columns */
}

#aboutcontact {
    font-size: 10pt;
    grid-column: 1; /* First column */
    position: fixed;
    padding-left: 20px;
}

#Clients {
    grid-column: 3; /* Third column, aligned with Info button */
    display: flex;
    flex-direction: row;
    gap: 20px;

    padding-left: 0;
}

/* Mobile typography WITHOUT viewport meta — brute force */
@media screen and (max-device-width: 768px) {
    body {
        font-size: 22px !important;  /* big on purpose */
        line-height: 1.4;
    }

    #nav,
    #nav p,
    #InfoContent,
    #aboutcontact,
    #Clients,
    #list {
        font-size: 25px !important;
        line-height: 1.4;
    }

    #Title {
        margin-left: 16px;
        width: 200px;
    }
}

/* Mobile-only Index fallback: simple vertical grid instead of p5 orbit */
@media (max-width: 768px) {
  #pattern-wrapper.mobile-index {
    display: block;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .mobile-index-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-index-grid img {
    width: 100vw;
    height: auto;
    display: block;
  }
}

/* When Index is open: force background white again */
html.index-open,
body.index-open {
    background-color: #ffffff !important;
}

/* =======================================
   INDEX PAGE (separate index-view.html)
   ======================================= */

html.index-page-root {
  background-color: #ffffff;
}

body.index-page {
  margin: 0;
  background-color: #ffffff;
  color: #000000;
  overflow: hidden; /* index canvas handles everything */
}

/* Reuse existing nav, but keep it on white */
body.index-page #nav {
  background-color: #ffffff;
  color: #000000;
}

/* Full-screen orbit area under the nav */
body.index-page #pattern-wrapper {
  position: fixed;
  top: 6.5vh;   /* same height as nav */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  overflow: hidden;
}

#index-loading,
.index-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Links on the index page */
body.index-page a {
  color: inherit;
  text-decoration: none;
}
body.index-page a:hover {
  text-decoration: line-through;
}
/* =============== SEPARATE INDEX PAGE =============== */

body.index-page {
  margin: 0;
  background: #ffffff;
  color: #000;
  height: 100vh;
  overflow: hidden;
  font-family: 'Franklin Gothic Medium','Arial Narrow',Arial,sans-serif;
}

/* Top nav on index page */
#index-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  background: #ffffff;
  color: #000;
  z-index: 10;
}

#index-nav a,
#index-nav span {
  font-size: 10pt;
  text-decoration: none;
  color: #000;
}

#index-nav a:hover {
  text-decoration: line-through;
}

/* Area where the orbit canvas lives */
#pattern-wrapper-index {
  position: fixed;
  top: 52px;   /* same as nav height */
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  overflow: hidden;
}

/* ---------- INDEX PAGE OVERRIDES ---------- */

body.index-page {
    background-color: #ffffff;  /* white background for index page */
}

/* Make nav text black on index page */
body.index-page #nav {
    color: #000000 !important;
}

/* Make nav links black + no blend mode weirdness */
body.index-page #nav a {
    color: #000000 !important;
    text-decoration: none;  /* still no underline in nav */
}

/* On index page, disable mix-blend for the title */
body.index-page #Title {
    mix-blend-mode: normal;
}
/* =========================
   INDEX PAGE (index-view.html)
   ========================== */

/* Index page background + base text */
body.index-page {
    background-color: #ffffff;
    color: #000000;
}

/* Use same layout as home, but black text on white */
body.index-page #nav {
    background-color: #ffffff;
    color: #000000;
}

/* Turn OFF mix-blend-mode on index page so text is stable */
body.index-page #Title,
body.index-page #Index,
body.index-page #InfoButton {
    mix-blend-mode: normal;
}

/* Links in the index header are black, no underline by default */
body.index-page #Title a,
body.index-page #Index a,
body.index-page #InfoButton a {
    color: #000000;
    text-decoration: none;
}

/* Optional: hover on index page */
body.index-page #Title a:hover,
body.index-page #Index a:hover,
body.index-page #InfoButton a:hover {
    text-decoration: line-through;
}

/* ---- UNIVERSAL NAV HOVER STYLE ---- */
@media (hover: hover) and (pointer: fine) {
  #nav #Title:hover,
  #nav #Index:hover,
  #nav #InfoButton:hover,
  #index-nav a:hover,
  #index-nav span:hover {
    text-decoration: line-through;
  }
}


/* Prevent underline on index page links except on hover */
#index-nav a {
    text-decoration: none;
}

#index-nav a:hover {
    text-decoration: line-through;
}

/* =========================
   INDEX PAGE OVERRIDES
   ========================= */

/* White background on index page */
body.index-page {
  background-color: #ffffff;
}

/* Nav on index page: black text, no mix-blend weirdness */
body.index-page #nav {
  color: #000000;
}

body.index-page #Title,
body.index-page #Index,
body.index-page #InfoButton {
  color: #000000;
}

/* Title is an <a> here → remove underline, keep strike-through on hover */
body.index-page #Title {
  text-decoration: none;
  mix-blend-mode: normal;  /* stop the "difference" effect on white bg */
}



/* Info overlay on index page: show black text on white bg */
body.index-page #InfoContent {
  color: #000000;
}

body.index-page #InfoContent a {
  color: #000000;
}



@media screen and (max-device-width: 768px) {
 #list {
  padding-bottom: 250px;  /* adjust to taste */
}
}

body.index-page #nav a,
body.index-page #InfoButton {
  cursor: pointer !important;
}

/* Make sure InfoContent is scrollable everywhere */
#InfoContent {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
}

/* Mobile override: avoid hard-coded 100vh, stretch between nav and bottom */
@media (max-width: 768px) {
  #InfoContent {
    top: 6.5vh;      /* match your nav height */
    bottom: 0;       /* pin to bottom instead of using height: calc(...) */
    height: auto;    /* let it size itself between top and bottom */
  }
}

/* Home page Info links = white */
body.home-page #InfoContent a {
  color: white;
  text-decoration: underline;
}

/* Index page Info links = black (white background) */
body.index-page #InfoContent a {
  color: black;
  text-decoration: underline;
}


body.home-page #InfoContent a:hover,
body.index-page #InfoContent a:hover {
    text-decoration: none;
}

/* Base Info button (home + index) */
body.home-page #InfoButton,
body.index-page #InfoButton {
  text-decoration: none;
}

/* Desktop-only hover state for Info button */
@media (hover: hover) and (pointer: fine) {
  body.home-page #InfoButton:hover,
  body.index-page #InfoButton:hover {
    text-decoration: line-through;
  }
}
/* While the panel is actually open, keep it striked */
body.home-page #InfoButton.info-open,
body.index-page #InfoButton.info-open {
  text-decoration: line-through;
}

/* MOBILE ONLY: enlarge hit area of Info button */
@media (max-width: 768px) {
  #InfoButton {
    padding: 12px 10px;   /* more tap-friendly */
    margin: -6px -4px;    /* counteracts padding so layout doesn't shift */
    display: inline-block;
  }
}

/* ---------------------------------
   INFO OVERLAY (HOME + INDEX)
---------------------------------- */

#InfoContent {
  display: none; /* hidden by default */
  position: fixed;
  top: 7.2vh;
  left: 0;
  width: 100vw;
  height: calc(100vh - 6.5vh);
  font-size: 10pt;
  color: white;
  z-index: 1500;
  overflow-y: auto;              /* ✅ scrollable on mobile */
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background: transparent;
  pointer-events: auto;          /* ✅ allow touch/scroll */
}

/* active = visible */
#InfoContent.active {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

/* left column text */
#aboutcontact {
  font-size: 10pt;
  grid-column: 1;
  padding-left: 20px;
}

/* right column clients list */
#Clients {
  grid-column: 3;
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding-left: 0;
}

/* links inside Info */
#InfoContent a {
  text-decoration: underline;
  color: white;
}

#InfoContent a:hover {
  text-decoration: none;
  color: white;
}

/* strike state for Info button (home + index) */
#InfoButton.info-open {
  text-decoration: line-through;
}

/* ------------------------------
   MOBILE TWEAKS
------------------------------ */

@media (max-width: 768px) {
  /* stack Info into a single column & give more padding */
  #InfoContent.active {
    display: block;
    padding: 16px 20px 120px 20px;
  }

  #aboutcontact {
    position: static;
    padding-left: 0;
    margin-bottom: 32px;
  }

  #Clients {
    margin-top: 0;
  }
}

.project {
  scrollbar-width: none;        /* Firefox */
}

.project::-webkit-scrollbar {
  display: none;                /* Chrome / Safari / Edge */
}

html, body {
  scrollbar-width: none;        /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;                /* Chrome / Safari / Edge */
}

#InfoContent {
  scrollbar-width: none;
}

#InfoContent::-webkit-scrollbar {
  display: none;
}
