/* ==========================
   GLOBAL STYLES
   ========================== */
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  color: #1a1a1a;

  display: grid;
  /* Row 1: Header (fits content) */
  /* Row 2: Gallery space (takes all remaining height) */
  grid-template-rows: auto 1fr;
  
  height: 100vh;
  height: 100dvh;     /* Lock viewport height */
  overflow: hidden;   /* Strict non-scrolling */
}
header,
.main-section,
footer {
  position: relative;
  z-index: 2;
}
/* ==========================
   HEADER
   ========================== */
header {
  padding-block: 2rem 0;  /* 1rem space above header text, 0 below line */
  padding-inline: 3rem; /* 48px left & right */
}

.header-inner {
  display: flex;
  justify-content: space-between; /* Pushes h1 to left, links to right */
  align-items: center;            /* Vertically centers text */
  border-bottom: 1px solid #4B4B4B;
  padding-bottom: 0.7rem;         /* Space between content and border */
}

header h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 200;
  line-height: 1.2;
  color: #4B4B4B;
  margin: 0;                      /* Removes default browser margins */
}

/* Link reset for header h1 anchor tag */
header h1 a,
header h1 a:visited,
header h1 a:hover,
header h1 a:active,
header h1 a:focus {
  color: inherit;                 /* Inherits #4B4B4B from header h1 */
  text-decoration: none;          /* Removes default link underline */
  outline: none;                  /* Removes default focus ring */
}

header h1 a:hover {
  color: #000000;                 /* Darkens text on hover to match nav links */
}

/* Navigation links container */
.header-nav {
  display: flex;
  gap: 3rem;                    /* Space between "Work" and "About" */
}

/* Navigation link typography & styling */
.header-nav a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;             /* Matches your h1 size */
  font-weight: 200;              /* Matches your h1 weight */
  line-height: 1.2;
  color: #4B4B4B;                /* Matches your h1 color */
  text-decoration: none;         /* Removes default link underline */
}

.header-nav a:hover {
  color: #000000;                /* Optional subtle hover effect */
}

/* ==========================
   MAIN SECTION - TWO COLUMNS
   ========================== */
.main-section {
    display: flex;
    flex: 1;
    padding: 40px 50px 0 50px;
    box-sizing: border-box;
}

/* --------- LEFT COLUMN - NAV --------- */
.nav-column {
    /* min: 220px, ideal: 18% of viewport width, max: 300px */
    flex: 0 0 clamp(220px, 20vw, 400px);
    padding: 0px;
    padding-right: 20px;
    box-sizing: border-box;
    line-height: 1.2;
}

.nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-column li {
    margin-bottom: 10px;
}

.nav-column a {
  
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2;
    color: #4B4B4B;
    margin: 0;      
    text-decoration: none;
    transition: opacity 0.3s ease;
}


.nav-column a.dimmed {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}


/* --------- RIGHT COLUMN - IMAGE --------- */
.image-column {
    flex: 1;              /* takes remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* center horizontally */
    align-items: flex-start;     /* top align */
    box-sizing: border-box;
    position: relative;      /* for gallery positioning */
    padding-left: 40px;
}

.project-item {
    margin-bottom: 1rem; /* spacing between titles */
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.project-link h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2;
    color: #4B4B4B;
    margin: 0;      
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
    }

.image-column .text-block {
    width: 100%;
    align-self: flex-start;
}

/* ==========================
   HEADINGS / TEXT STYLING CONTROLS
   ========================== */

/* Alignment & offset for all text in the right column */
.image-column .text-block h2,
.image-column .text-block p {
    margin-left: 100px;       /* offset from left edge */
    text-align: left;        /* left-aligned */
    max-width: 65%;          /* optional max width */
}

/* Keep h2 visual style */
.image-column h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2;
    color: #4B4B4B;
    margin: 0;      
    text-decoration: none;


}
/* ==========================
   IMAGE STYLING (RIGHT COLUMN)
   ========================== */
.image-column img {
    max-width: calc(100% - 4cm);           /* leave 2cm border left/right */
    max-height: 80vh;   /* simpler + works with flex */
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #ccc;

    display: block;
    margin: 0 auto;                         /* center image horizontally */
}

/* ==========================
   GALLERY (DO NOT MODIFY)
   ========================== */
/* ==========================
   PORTFOLIO GALLERY PAGE ONLY
   ========================== */
.gallery-container {
    grid-row: 2;            /* Strictly locks container into the 1fr bottom grid row */
    height: 100%;           /* Fills the grid row completely */
    min-height: 0;          /* CRITICAL: Allows grid cell to shrink below image natural size */
    display: flex;
    justify-content: center;
    align-items: center;

    /* ADJUST GAPS HERE FREELY IN REM */
    padding-top: 1.8rem;    /* Distance directly below header line */
    padding-bottom: 3rem;   /* Distance above bottom edge of screen */
    box-sizing: border-box;
    position: relative;
}

.gallery {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;          /* Allows shrinking */
    display: flex;          /* Replaces inline-block so height inheritance works */
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.gallery-images {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;          /* Allows shrinking */
}

.gallery-images img {
    display: none;
    max-width: 100%;
    max-height: 100%;       /* Fits strictly inside padding-top / padding-bottom bounds */
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 5;

    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.gallery-images img.active {
    display: block;
}

.click-left,
.click-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: transparent;
    z-index: 1;
    cursor: default;
}

.click-left { left: 0; }
.click-right { right: 0; }

/* Prevent selection on gallery container and click zones */
.gallery,
.gallery-images,
.click-left,
.click-right {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
/* Fullscreen hover background */
.hover-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;        /* VERY IMPORTANT */
  pointer-events: none;
}

/* Dark overlay */
.hover-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  z-index: -1;
}

/* Make project titles sit above background */


/* Container transition */
.project-item {
  margin-bottom: 1rem; /* Spacing between titles */
}

.project-link {
  text-decoration: none;
  color: inherit;
}

/* Style heading and enable opacity transition */
.project-link h2 {
  display: inline-flex;
  align-items: top;
  transition: opacity 0.3s ease;
}

/* 1. ARROW STYLING & ANIMATION */
.project-link .arrow {
  position: absolute;
  left: -1.3rem;                  /* Anchors arrow into the padding area to the left */
  opacity: 0;
  transform: translateX(-4px);    /* Subtle motion offset */
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.project-link:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ==========================
   ISOLATED HOVER DIMMING LOGIC
   ========================== */

/* 1. When hovering ANY project link, dim all project links */
.image-column:has(.project-link:hover) .project-link h2 {
  opacity: 0.5;
}

/* 2. When hovering ANY project link, dim only inactive/dimmed nav links */
.main-section:has(.project-link:hover) .nav-column a.dimmed {
  opacity: 0.4;
}

/* 3. Keep the actively hovered project link at full 100% opacity */
.project-link:hover h2 {
  opacity: 1 !important;
}

/* 4. Keep active nav link (e.g., "Photography") at full 100% opacity */
.nav-column a:not(.dimmed) {
  opacity: 1;
}

/* 5. Smooth out opacity transitions */
.project-link h2,
.nav-column a {
  transition: opacity 0.25s ease;
}


/* ==========================
   ABOUT PAGE (3-COLUMN LAYOUT)
   ========================== */

.main-section.about-page {
  display: grid;
  grid-template-columns: 22vw 20vw 1fr;
  column-gap: 2rem;
  row-gap: 0;
  padding: 40px 50px 0 50px;
  align-items: start;
}


/* --- COLUMN 1: PORTRAIT --- */

.about-col-1 {
  width: 100%;
  max-width: 500px;
  grid-column: 1;
  grid-row: 1 / 4;
}

.portrait {
  width: 100%;
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: none;
}


/* --- COLUMN 2: SECTION LABELS --- */

.about-col-2 {
  grid-column: 2;
  grid-row: 1;
  display: contents;
}

.about-section-label {
  grid-column: 2;
}

.about-section-label:nth-child(1) {
  grid-row: 1;
  padding-left: 9vw;

}

.about-section-label:nth-child(2) {
  grid-row: 2;
    padding-left: 9vw;

}

.about-section-label:nth-child(3) {
  grid-row: 3;
    padding-left: 9vw;

}

.about-section-label h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 200;
  line-height: 1.2;
  color: #4B4B4B;
  margin: 0;        
}


/* --- COLUMN 3: CONTENT --- */

.about-col-3 {
  grid-column: 3;
  grid-row: 1 / 4;

  display: contents;
}

.about-section-content {
  grid-column: 3;
}

.about-section-content:nth-child(1) {
  grid-row: 1;
}

.about-section-content:nth-child(2) {
  grid-row: 2;
}

.about-section-content:nth-child(3) {
  grid-row: 3;
}

.about-section-content p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: #4B4B4B;
  margin: 0;
}


/* --- EXHIBITIONS --- */

.exhibitions-list,
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exhibitions-list li {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: #4B4B4B;

  display: flex;
  gap: 1.5rem;
}

.exhibitions-list .year {
  color: #777777;
}


/* --- INFO --- */

.info-list li {
  margin-bottom: 0.3rem;
}

.info-list a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #4B4B4B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-list a:hover {
  color: #000000;
  text-decoration: underline;
}


/* ==========================
   FOOTER
   ========================== */
footer {
    padding: 10px 50px;
    background-color: transparent;
    color: #555;
    text-align: left;
    font-size: 10pt;
    margin-top: auto; /* push footer to bottom */
}

/* ==========================
   MEDIA QUERIES
   ========================== */
@media (max-width: 768px) {
    .main-section {
        flex-direction: column;
        padding: 20px 30px;
    }
    header {
    padding-inline: 1.25rem; /* ~20px instead of 48px */
    padding-block: 0.75rem;
  }

    .nav-column, .image-column {
        width: 100%;
        padding: 1rem;
    }

    .nav-column li {
        margin-bottom: 8px;
    }
    /* Adjust gap between nav links */
  .header-nav {
    gap: 1.5rem; /* Smaller gap on phones */
  }

  /* Scale header text slightly smaller for phones */

  .header-nav a {
    font-size: 1.125rem; /* ~18px */
  }
  .main-section.about-page {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-col-2, 
  .about-col-3 {
    gap: 1.5rem;
  }
  }
