
/* =========================
   FONTS
========================= */

@font-face {
  font-family: "ABC Areal";
  src: url("fonts/ABCAreal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "ABC Areal";
  src: url("fonts/ABCAreal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}


/* =========================
   GENERAL
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: white;
  font-family: "ABC Areal", Arial, sans-serif;
  letter-spacing: -0.05em;
}

button {
  cursor: pointer;
}


/* =========================
   HOMEPAGE
========================= */

#home {
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* NAME AND COPYRIGHT */

.identity {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  line-height: 1;
}

.identity p {
  margin: 0;
}

/* NAVIGATION */

.navigation {
  position: absolute;
  top: 48px;
  left: 20px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  font-size: 28px;
  line-height: 1;
}

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

#about-link:hover,
#contact-link:hover {
  text-decoration: line-through;
}


/* =========================
   SELECTED WORKS
========================= */

.selected-works {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.selected-works h2 {
  font-family: "ABC Areal", Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 4px 0;
}

.work-row {
  display: grid;
  grid-template-columns: 190px 190px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.6;
}


/* PROJECT LINKS */

.work-row a {
  color: black;
  text-decoration: none;
}

.work-row a:hover {
  color: #0000FF;
  text-decoration: underline;
}


/* ACTIVE PROJECT */

.work-row a.active,
.work-row a.active + span {
  color: #0000FF;
}

.work-row a.active {
  text-decoration: line-through;
}

.work-row a.active:hover {
  text-decoration: line-through;
}


/* =========================
   SLIDING PANELS
========================= */

#about,
#contact {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  background-color: white;

  transform: translateX(-100%);
  transition: transform 0.6s ease-in-out;
}

#about {
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#contact {
  z-index: 20;
  overflow-y: auto;
}


/* =========================
   ABOUT / CONTACT HEADERS
========================= */

.about-header,
.contact-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;

  padding: 20px 20px 5px 20px;
  border-bottom: 1px solid black;

  font-family: "ABC Areal", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;

  flex-shrink: 0;
}


/* PAGE TOGGLE BUTTONS */

#about-toggle,
#contact-toggle {
  justify-self: start;
  align-self: end;

  border: none;
  background: none;
  padding: 0;
  margin: 0;

  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  line-height: inherit;

  color: black;
  text-decoration: line-through;
}


/* CLOSE BUTTONS */

#close-about,
#close-contact {
  justify-self: center;
  transform: translateX(180px);

  border: none;
  background: none;
  padding: 0;
  margin: 0;

  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  line-height: inherit;

  color: black;
}

#close-about:hover,
#close-contact:hover {
  text-decoration: underline;
}


/* =========================
   NAME AND COPYRIGHT
========================= */

.about-identity,
.contact-identity {
  justify-self: end;
}

.about-identity p,
.contact-identity p {
  margin: 0;
}

.identity p:last-child,
.about-identity p:last-child,
.contact-identity p:last-child {
  color: #999999;
}


/* =========================
   ABOUT PAGE LAYOUT
========================= */

.about-layout {
  display: grid;
  grid-template-columns: 60% 40%;

  flex: 1;
  min-height: 0;
}


/* =========================
   LEFT COLUMN — BIOGRAPHY
========================= */

.about-left {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;

  padding: 15px 25px 25px 0;

  min-width: 0;
  align-content: start;
  overflow-y: auto;
}


/* PORTRAIT */

.portrait {
  width: 110px;
  align-self: start;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}


/* BIOGRAPHY */

.bio {
  max-width: 650px;

  font-family: "ABC Areal", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.bio p {
  margin: 0 0 28px 0;
}

.bio p:last-child {
  margin-bottom: 0;
}


/* =========================
   RIGHT COLUMN — CV
========================= */

.about-right {
  border-left: 1px solid #777777;

  padding: 35px 30px 60px 35px;

  overflow-y: auto;
  min-height: 0;
  min-width: 0;

  scrollbar-width: thin;
}


/* CV SECTION HEADINGS */

.cv-section {
  margin-bottom: 45px;
}

.cv-heading {
  margin: 0 0 40px 0;

  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}


/* CV ENTRIES */

.cv-entries {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.cv-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0;
}

.cv-details {
  min-width: 0;
}

.cv-details p {
  margin: 0;
}

.cv-details strong,
.cv-details em {
  display: block;
}

.cv-date {
  color: #777777;
  margin-bottom: 5px !important;
}

.cv-location {
  margin: 0;
  white-space: nowrap;
  font-size: 10px;
  color: #777777;
}


/* =========================
   CONTACT PAGE
========================= */

.contact-content {
  position: absolute;
  top: 100px;
  left: 20px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  font-family: "ABC Areal", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.contact-content a {
  color: #999999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-content a:hover {
  color: #bf0095;
  text-decoration: underline;
}


/* =========================
   PROJECT LAYOUT
========================= */

/* BOTH PROJECTS SHARE THE SAME POSITION */

#urban-project,
#hvac-project {
  display: none;

  position: absolute;
  top: 115px;
  bottom: 0;
  left: 350px;
  right: 20px;

  grid-template-columns: 220px minmax(0, 1fr);
  gap: 15px;

  overflow-y: auto;
  overscroll-behavior: contain;

  padding-bottom: 50px;
  scrollbar-width: thin;
}


/* PROJECT TITLE AND YEAR */

.project-info {
  min-width: 0;

  font-family: "ABC Areal", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.1;
}

.project-info h2 {
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  color: black;
}

.project-info p {
  margin: 5px 0 0 0;

   font-family: "ABC Areal", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;

  color: #999999;
}


/* PROJECT MAIN CONTENT */

.project-main {
  max-width: 660px;
  min-width: 0;
}


/* PROJECT DESCRIPTION */

.project-description {
  margin: 0;

  font-family: "ABC Areal", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.05em;
}


/* PROJECT METADATA */

.project-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 25px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.3;
  color: #777777;
}


/* =========================
   PROJECT GALLERIES
========================= */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;

  margin-top: 25px;
  align-items: start;

  width: calc(100vw - 390px);
  margin-left: -220px;
  max-width: none;
}

.project-gallery img,
.project-gallery video {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
}


/* FULL-WIDTH IMAGE OR VIDEO */

.project-gallery .gallery-full {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  display: block;
}


/* =========================
   HVAC GALLERY — NO SPACING
========================= */

.hvac-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.hvac-gallery img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   RESPONSIVE LAYOUT
========================= */

@media (max-width: 800px) {

  /* ABOUT PAGE */

  .about-layout {
    display: block;
    overflow-y: auto;
  }

  .about-left {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 15px;

    padding: 15px 20px 25px 0;
    overflow: visible;
  }

  .portrait {
    width: 100px;
    height: auto;
  }

  .bio {
    font-size: 20px;
  }

  .about-right {
    border-left: none;
    border-top: 1px solid #777777;

    overflow: visible;
    padding: 25px 20px 50px;
  }

  .cv-entry {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #close-about,
  #close-contact {
    transform: none;
  }

  /* PROJECTS */

  #urban-project,
  #hvac-project {
    left: 20px;
    right: 20px;
    top: 260px;
    bottom: 0;

    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .project-main {
    max-width: 100%;
  }

  .project-gallery {
    width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hvac-gallery {
    gap: 0;
  }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  #about,
  #contact {
    transition: none;
  }

}

/* =========================
   LINES COFFEE PROJECT
========================= */

#lines-project {
  display: none;

  position: absolute;
  top: 115px;
  bottom: 0;
  left: 350px;
  right: 20px;

  grid-template-columns: 220px minmax(0, 1fr);
  gap: 15px;

  overflow-y: auto;
  overscroll-behavior: contain;

  padding-bottom: 50px;
  scrollbar-width: thin;
}

/* LINES GALLERY */

.lines-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

/* FINAL FULL-WIDTH IMAGE */

.lines-gallery .gallery-full {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
}

/* LINES FIRST ROW — MATCH HEIGHTS */

.lines-first-image,
.lines-first-video {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.lines-gallery {
  align-items: stretch;
}

/* =========================
   POWERHOUSE PROJECT
========================= */

#powerhouse-project {
  display: none;

  position: absolute;
  top: 115px;
  bottom: 0;
  left: 350px;
  right: 20px;

  grid-template-columns: 220px minmax(0, 1fr);
  gap: 15px;

  overflow-y: auto;
  overscroll-behavior: contain;

  padding-bottom: 50px;
  scrollbar-width: thin;
}

/* HERO */

.powerhouse-hero {
  width: calc((100vw - 390px) * 0.5);
  margin-left: -220px;
  margin-top: 25px;
}

.powerhouse-hero video {
  display: block;
  width: 100%;
  height: auto;
}

/* PROCESS SLIDESHOW */

.powerhouse-process {
  width: 46%;
  margin-left: auto;
  margin-top: 50px;
}

/* POWERHOUSE SLIDESHOW CONTAINER */

.powerhouse-slide {
  width: 100%;
  aspect-ratio: 10/ 16;
  overflow: hidden;
  background-color: black;
}

/* VIDEO CROPPING */

.powerhouse-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* SLIDESHOW CONTROLS */

.powerhouse-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.powerhouse-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.powerhouse-arrows button {
  border: none;
  background: none;
  padding: 0;

  font-family: inherit;
  font-size: 18px;
  color: black;
  cursor: pointer;
}

.powerhouse-arrows button:hover {
  color: #0000FF;
}

/* RIO PMP300 PROTOTYPE */

.powerhouse-prototype {
  width: 46%;
  margin-top: 50px;
  margin-left: auto;
}

.powerhouse-prototype video {
  display: block;
  width: 100%;
  height: auto;
}

.prototype-caption {
  margin: 10px 0 0;

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0;
  color: #777777;
}


/* POWERHOUSE VIDEO HOVER EXPANSION */

.powerhouse-process,
.powerhouse-prototype {
  width: 46%;
  margin-left: auto;
  position: relative;

  transition: width 0.4s ease;
}

/* EXPAND ON HOVER */

.powerhouse-process:hover,
.powerhouse-prototype:hover {
  width: 65%;
}

/* KEEP VIDEOS INSIDE CONTAINERS */

.powerhouse-slide,
.powerhouse-prototype video {
  width: 100%;
}

/* MAINTAIN SLIDESHOW CROP */

.powerhouse-slide {
  aspect-ratio: 10 / 16;
  overflow: hidden;
}

.powerhouse-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   EYE CONTACT PROJECT
========================= */

#eye-project {
  display: none;

  position: absolute;
  top: 115px;
  bottom: 0;
  left: 350px;
  right: 20px;

  grid-template-columns: 220px minmax(0, 1fr);
  gap: 15px;

  overflow-y: auto;
  overscroll-behavior: contain;

  padding-bottom: 50px;
  scrollbar-width: thin;
}


/* =========================
   EYE CONTACT EXPERIMENTAL GALLERY
========================= */

.eye-gallery {
  position: relative;

  width: calc(100vw - 390px);
  margin-left: -220px;
  margin-top: 40px;

  min-height: 1100px;
}

/* INDIVIDUAL IMAGES */

.eye-item {
  position: absolute;
  width: 28%;

  cursor: zoom-in;

  transition: width 0.35s ease;
  z-index: 1;
}

.eye-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* HOVER EXPANSION */

.eye-item:hover {
  width: 55%;
  z-index: 10;
}

/* IMAGE POSITIONS */

.eye-one {
  top: 0;
  left: 4%;
}

.eye-two {
  top: 200px;
  right: 3%;
}

.eye-three {
  top: 420px;
  left: 16%;
}

.eye-four {
  top: 700px;
  right: 8%;
}

/* =========================
   EYE CONTACT MOBILE
========================= */

@media (max-width: 800px) {

  .eye-gallery {
    width: 100%;
    margin-left: 0;
    margin-top: 30px;
    min-height: auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .eye-item {
    position: static;
    width: 100%;
    transition: none;
  }

  .eye-item:hover {
    width: 100%;
  }

}
/* FIFTH IMAGE — SMALL BOTTOM CENTER */


.eye-five {
  top: 940px;
  left: 20%;
  width: 55%;
}

.eye-five:hover {
  width: 77%;
  z-index: 10;
}

/* CHAIR IMAGE SIZE */

.eye-five img {
  width: 150%;
  max-width: none;
  height: auto;
  transform: translateX(-16.67%);
}
/* SIXTH IMAGE — DIGITAL TRUCK SPREAD */

.eye-six {
  top: 208px;
  right: 15%;
  width: 32%;
}

.eye-six:hover {
  width: 75%;
  z-index: 10;
}

/* SEVENTH IMAGE — BOTTOM LEFT */

.eye-seven {
  top: 1050px;
  left: 4%;
  width: 28%;
}

.eye-seven:hover {
  width: 55%;
  z-index: 10;
}

/* =========================
   MOBILE WEBSITE
   800PX AND BELOW
========================= */

@media (max-width: 800px) {

  /* GENERAL */

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

  /* HOMEPAGE */

  #home {
    height: 100dvh;
    overflow: hidden;
  }

  /* NAME */

  .identity {
    top: 20px;
    right: 15px;
    font-size: 20px;
    text-align: right;
  }

  /* NAVIGATION */

  .navigation {
    top: 20px;
    left: 15px;
    font-size: 20px;
  }

  /* SELECTED WORKS */

  .selected-works {
    position: absolute;
    top: 115px;
    bottom: auto;
    left: 15px;
    right: 15px;
  }

  .selected-works h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    font-size: 10px;
    line-height: 1.8;
  }

  .work-row a {
    min-width: 0;
  }

  /* ALL PROJECTS */

  #urban-project,
  #hvac-project,
  #lines-project,
  #powerhouse-project,
  #eye-project {
    position: absolute;

    top: 280px;
    bottom: 0;
    left: 15px;
    right: 15px;

    grid-template-columns: minmax(0, 1fr);
    gap: 15px;

    overflow-x: hidden;
    overflow-y: auto;

    padding-bottom: 50px;
  }

  /* PROJECT TITLE */

  .project-info {
    font-size: 20px;
  }

  .project-info p {
    font-size: 11px;
  }

  /* PROJECT CONTENT */

  .project-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .project-description {
    font-size: 15px;
    line-height: 1.2;
  }

  .project-metadata {
    font-size: 10px;
    gap: 8px 15px;
    margin-top: 20px;
  }

  /* STANDARD GALLERIES */

  .project-gallery {
    width: 100%;
    margin-left: 0;
    margin-top: 25px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }

  .project-gallery img,
  .project-gallery video {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* HVAC — SEAMLESS */

  .hvac-gallery {
    gap: 0;
  }

  /* LINES */

  .lines-gallery {
    gap: 2px;
  }

  /* POWERHOUSE HERO */

  .powerhouse-hero {
    width: 100%;
    margin-left: 0;
    margin-top: 25px;
  }

  .powerhouse-hero video {
    width: 100%;
    height: auto;
  }

  /* POWERHOUSE SLIDESHOW */

  .powerhouse-process,
  .powerhouse-prototype {
    width: 80%;
    margin-left: auto;
    margin-top: 35px;
    transition: none;
  }

  .powerhouse-process:hover,
  .powerhouse-prototype:hover {
    width: 80%;
  }

  .powerhouse-slide {
    width: 100%;
    aspect-ratio: 10 / 16;
    overflow: hidden;
  }

  .powerhouse-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .powerhouse-controls {
    font-size: 10px;
    gap: 8px;
  }

  .powerhouse-arrows {
    gap: 12px;
  }

  .powerhouse-arrows button {
    font-size: 22px;
    padding: 5px;
  }

  .powerhouse-prototype video {
    width: 100%;
    height: auto;
  }

  /* EYE CONTACT */

  .eye-gallery {
    position: relative;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 15px;

    width: 100%;
    margin-left: 0;
    margin-top: 30px;

    min-height: 0;
  }

  .eye-item,
  .eye-one,
  .eye-two,
  .eye-three,
  .eye-four,
  .eye-five,
  .eye-six,
  .eye-seven {
    position: static;

    width: 100%;
    height: auto;

    transition: none;
    transform: none;
  }

  .eye-item:hover,
  .eye-five:hover,
  .eye-six:hover,
  .eye-seven:hover {
    width: 100%;
  }

  .eye-item img,
  .eye-five img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
  }

  /* ABOUT / CONTACT HEADERS */

  .about-header,
  .contact-header {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;

    padding: 20px 15px 8px;
    font-size: 20px;
  }

  #close-about,
  #close-contact {
    transform: none;
  }

  .about-identity,
  .contact-identity {
    text-align: right;
  }

  /* ABOUT PAGE */

  .about-layout {
    display: block;
    overflow-y: auto;
  }

  .about-left {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 15px;

    padding: 20px 15px 30px 0;
    overflow: visible;
  }

  .portrait {
    width: 85px;
    height: auto;
  }

  .bio {
    font-size: 18px;
    line-height: 1.15;
  }

  .bio p {
    margin-bottom: 20px;
  }

  .about-right {
    border-left: none;
    border-top: 1px solid #777777;

    padding: 30px 15px 50px;
    overflow: visible;
  }

  .cv-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .cv-location {
    white-space: normal;
    text-align: right;
    max-width: 95px;
  }

  /* CONTACT */

  .contact-content {
    top: 110px;
    left: 15px;
    font-size: 22px;
  }

}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 390px) {

  .work-row {
    font-size: 9px;
  }

  .project-description {
    font-size: 14px;
  }

  .powerhouse-process,
  .powerhouse-prototype {
    width: 90%;
  }

  .powerhouse-process:hover,
  .powerhouse-prototype:hover {
    width: 90%;
  }

}

/* =========================
   MOBILE LAYOUT FIX
========================= */

@media (max-width: 800px) {

  /* HOME */

  #home {
    height: 100dvh;
    overflow: hidden;
  }

  /* HEADER */

  .identity {
    position: absolute;
    top: 20px;
    right: 15px;
    font-size: 20px;
  }

  .navigation {
    position: absolute;
    top: 20px;
    left: 15px;
    font-size: 20px;
  }

  /* SELECTED WORKS */

  .selected-works {
    position: absolute;
    top: 110px;
    bottom: auto;
    left: 15px;
    right: 15px;
    z-index: 5;
  }

  .selected-works h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    font-size: 10px;
    line-height: 1.8;
  }

  /* PROJECTS */

  #urban-project,
  #hvac-project,
  #lines-project,
  #powerhouse-project,
  #eye-project {
    position: absolute;
    top: 280px;
    bottom: 0;
    left: 15px;
    right: 15px;

    grid-template-columns: minmax(0, 1fr);
    gap: 15px;

    overflow-y: auto;
    overflow-x: hidden;
  }

}

/* =========================
   MOBILE IMAGE LIGHTBOX
========================= */

#image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: white;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#image-lightbox.open {
  display: flex;
}

#lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 85dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}

#lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;

  border: none;
  background: none;
  color: black;

  font-family: "ABC Areal", Arial, sans-serif;
  font-size: 32px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .project-gallery img,
  .eye-gallery img {
    cursor: zoom-in;
  }
}

/* =========================
   UNIVERSAL MEDIA LIGHTBOX
========================= */

#image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: white;

  align-items: center;
  justify-content: center;

  padding: 20px;
}

#image-lightbox.open {
  display: flex;
}

/* IMAGES AND VIDEOS */

#lightbox-image,
#lightbox-video {
  display: none;

  max-width: 100%;
  max-height: 85dvh;

  width: auto;
  height: auto;

  object-fit: contain;
}

#image-lightbox.open #lightbox-image.active,
#image-lightbox.open #lightbox-video.active {
  display: block;
}

/* CLOSE BUTTON */

#lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;

  border: none;
  background: none;
  padding: 0;

  font-family: "ABC Areal", Arial, sans-serif;
  font-size: 32px;
  color: black;

  cursor: pointer;
  z-index: 1001;
}

/* CLICKABLE MEDIA */

@media (max-width: 800px) {
  #home img,
  #home video {
    cursor: zoom-in;
  }
}
.selected-works h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  margin-bottom: 10px;
}

/* HOMEPAGE PORTRAIT */

#home-portrait {
  position: absolute;
  top: 13.5%;
  left: 32%;

  width: 110px;
  height: auto;

  cursor: pointer;
  transition: opacity 0.2s ease;
}

#home-portrait:hover {
  opacity: 0.75;
}

@media (max-width: 800px) {
  #home-portrait {
    top: 48%;
    left: 50%;
    width: 90px;
    transform: translate(-50%,-50%);
  }
}

/* ABOUT PORTRAIT INTERACTION */

.about-left .portrait img {
  cursor: pointer;
}

.about-left .portrait img:hover {
  opacity: 0.8;
}

/* =========================
   MOBILE HOMEPAGE PORTRAIT FIX
========================= */

@media (max-width: 800px) {

  #home-portrait {
    position: absolute;
    top: 490px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
  }



}

/* =========================
   HIDE HOMEPAGE PORTRAIT
   WHEN PROJECT IS OPEN
========================= */

#home:has(
  #urban-project[style*="display: grid"],
  #hvac-project[style*="display: grid"],
  #lines-project[style*="display: grid"],
  #powerhouse-project[style*="display: grid"],
  #eye-project[style*="display: grid"]
) #home-portrait {
  display: none;
}


/* EYE CONTACT — RESTORE IMAGE POSITIONING */

@media (min-width: 801px) {

  .eye-gallery {
    position: relative;
  }

  .eye-six {
    position: absolute;
    top: 0;
    left: 55%;
  }

}