*{  margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.2s ease;
    }  
 
body { 
    font-family: 'Bellota Text', sans-serif;
    color: #2f2218;
    background: #ffffff;
    height:100%;
    font-weight:500;
}  

/* split page css */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  :root {
    --cream: #f4f0e8;
    --ink: #1a1814;
    --ink-muted: #6b6660;
    --ink-faint: #c2bdb6;
    --accent: #c4410a;
    --panel-width: 42%;
    --gap: 1rem;
  }

  html, body {
    height: 100%;
    background: var(--cream);
    color: var(--ink);
  }

  /* ── Nav ── */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    overflow: hidden;
    background-color: var(--cream);
    font-weight: 300;
  }

  .nav a {
    color: #000;
    float: left;
    padding: 30px;
    text-decoration: none;
    font-size: 13px;
  }

  .nav a:hover {
    color: #c3c3c3;
  }

/*photo banner*/

.container {
    padding: 1.25rem 5%;
    margin-top: 77px;
}

.container .img-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
grid-gap: 1rem;
  max-width: 80rem; /* optional: keeps 3 columns centered on big screens */
  margin: 0 auto;   /* centers grid within the container */
}

.container .img-container img {
  width: 100%;
  height: auto;     /* keeps aspect ratio */
  border-radius: 0.2rem;
}

.layout {
    display: flex;
    height: calc(100vh - 77px);
    margin-top: 77px;
    overflow: visible;
}

  /* ── Left panel ── */
.left {
    width: var(--panel-width);
    height: calc(100vh - 77px);
    position: sticky;
    top: 77px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 3rem;
    border-right: 0.5px solid var(--ink-faint);
}

.left-bottom {
    border-top: 0.5px solid var(--ink-faint);
    padding-top: 0.75rem;
    margin-top: 1.5rem;
}

  .project-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
  }

  .project-title em {
    font-style: italic;
    padding-left: 25px;
    color: #71885d;
  }

  .project-type {
    font-family: 'Geist Mono', monospace;
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
  }

  .divider {
    width: 2rem;
    height: 1px;
    background: var(--ink-faint);
    margin-bottom: 1.25rem;
  }

  .project-sections {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
  }

  .project-section {
    margin-bottom: 1rem;
  }

  .section-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #71885d;
    margin-bottom: 0.5rem;
  }

  .section-body {
    font-family: 'Bellota Text', sans-serif;
    font-size: .85rem;
    font-weight: 100;
    line-height: 1.25;
    color: var(--ink);
    max-width: 60ch;
  }

.project-section ul {
  font-family: 'Bellota Text', sans-serif;
  font-weight: 100;
  font-size: .85em;
  color: #000;
  padding-left: 30px;
overflow-wrap: break-word;    
}

.project-section li {
  margin-bottom: 8px;
}

li::marker {
  color: #71885d;
}

  .tags {
    display: flex;
    flex-wrap: wrap;
    margin: -0.25rem;
    margin-bottom: 1rem;
  }

  .tag {
    font-family: 'Geist Mono', monospace;
    font-size: 0.63rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 0.5px solid var(--ink-faint);
    padding: 0.3rem 0.65rem;
    margin: 0.25rem;
  }

.left-bottom {
    border-top: 0.5px solid var(--ink-faint);
    padding-top: 0.75rem;
}

.team-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #71885d;
    margin-bottom: 0.5rem;
}

.team {
    display: flex;
    flex-direction: column;
}

.team p {
    font-family: 'Geist Mono', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

  /* ── Right panel ── */
  .right {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 2.5rem 2rem 5rem 2.5rem;
  }

  .right::-webkit-scrollbar { width: 4px; }
  .right::-webkit-scrollbar-track { background: transparent; }
  .right::-webkit-scrollbar-thumb {
    background: var(--ink-faint);
    border-radius: 2px;
  }

  /* ── Gallery ── */
  .gallery {
    display: flex;
    flex-direction: column;
  }

.gallery-title {
    font-family: 'Geist Mono', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 1.5rem 0 0.5rem 0;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: var(--gap);
    margin-left: calc(var(--gap) / -2);
    margin-right: calc(var(--gap) / -2);
}

  .gallery-row .gallery-item {
    padding-left: calc(var(--gap) / 2);
    padding-right: calc(var(--gap) / 2);
  }

  /* Column widths */
  .cols-1 .gallery-item { flex: 0 0 100%; }
  .cols-2 .gallery-item { flex: 0 0 50%; }
  .cols-3 .gallery-item { flex: 0 0 33.333%; }

  .gallery-item {
    position: relative;
    cursor: pointer;
  }

  /*
    Padding-top aspect ratio technique:
    - height must be 0 so padding-top controls the height
    - percentage is calculated as (height / width) * 100
    - 16:7  = 7/16   * 100 = 43.75%
    - 3:2   = 2/3    * 100 = 66.67%
    - 1:1   = 1/1    * 100 = 100%
  */
  .gallery-item-inner {
    position: relative;
    overflow: hidden;
    background: #e0dbd1;
    height: 0;
  }

  .cols-1 .gallery-item-inner { padding-top: 43.75%; }
  .cols-2 .gallery-item-inner { padding-top: 66.67%; }
  .cols-3 .gallery-item-inner { padding-top: 100%; }
.cols-1 .video-item { padding-top: 56.25%; }

  /* Image must be absolutely positioned to fill the padding-top container */
  .gallery-item-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.93;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
  }

.gallery-item-inner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.93;
}

  .gallery-item:hover .gallery-item-inner img {
    transform: scale(1.03);
    opacity: 1;
  }

  .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(26, 24, 20, 0);
    transition: background 0.3s;
    pointer-events: none;
  }

  .gallery-item:hover .overlay {
    background: rgba(26, 24, 20, 0.12);
  }

  /* ── Responsive: tablet ── */
  @media (max-width: 768px) {
    .layout {
      flex-direction: column;
      height: auto;
      overflow: visible;
    }

    .left {
      position: relative;
      width: 100%;
      height: auto;
      border-right: none;
      border-bottom: 0.5px solid var(--ink-faint);
      padding: 2.5rem 1.75rem;
    }

    .right {
      height: auto;
      overflow: visible;
      padding: 2rem 1.25rem 4rem;
    }

    .cols-3 .gallery-item {
      flex: 0 0 50%;
    }

    /* 3:2 ratio for newly 2-column items */
    .cols-3 .gallery-item-inner { padding-top: 66.67%; }
  }

  /* ── Responsive: small phone ── */
  @media (max-width: 480px) {
    .cols-2 .gallery-item,
    .cols-3 .gallery-item {
      flex: 0 0 100%;
    }

    .cols-2 .gallery-item-inner,
    .cols-3 .gallery-item-inner { padding-top: 66.67%; }
  }

/* ── Lightbox ── */
  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 24, 20, 0.95);
    z-index: 1000;
    cursor: pointer;
  }

  .lightbox.is-open {
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  .lightbox-img {
    display: block;
    max-width: 88%;
    max-height: 88vh;
    object-fit: contain;
    cursor: default;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
  }

  .lightbox-btn {
    position: fixed;
    background: none;
    border: none;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 0.75rem;
    line-height: 1;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
    font-family: 'Geist Mono', monospace;
  }

  .lightbox-btn:hover { color: var(--cream); }

  .lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 1.5rem;
    top: 50%;
    font-size: 1.25rem;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .lightbox-next {
    right: 1.5rem;
    top: 50%;
    font-size: 1.25rem;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .lightbox-counter {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    font-family: 'Geist Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--ink-faint);
  }

#work {
    height:100%;
    width:100%;
    background:#ffffff;
    position:relative; 
    padding-top: 80px;
} 

.line {
     margin: 10px 75px;
}

/* About Page */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 20px;
}

.about-photo {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow: hidden;
    align-self: stretch;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
}

.about-content {
    padding: 4rem 2rem;
}

.about-eyebrow {
    font-family: 'Bellota Text', cursive;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 0.75rem;
    text-align: left;
}

.about-name {
    font-family: 'Amatic SC', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    line-height: 1;
}

.about-bio {
    font-family: 'Bellota Text', cursive;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.2rem;
    color: #4a4a4a;
    margin: 0 0 1.25rem;
    text-align: left;
}

.about-awards {
    margin: 2rem 0;
    border-top: 0.5px solid #d4cfc6;
    padding-top: 1.5rem;
}

.awards-label {
    font-family: 'Bellota Text', cursive;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 0.75rem;
}

.award-item {
    display: block;
    font-family: 'Bellota Text', cursive;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: #3a5a32;
    padding: 6px 0;
    border-bottom: 0.5px solid #d4cfc6;
    text-decoration: none;
    text-align: left;
}

.award-item:last-child {
    border-bottom: none;
}

.connect-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #3a5a32;
    color: #3a5a32;
    font-family: 'Bellota Text', cursive;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.connect-btn:hover {
    background-color: #3a5a32;
    color: #f5f0e8;
}

/* About Page Responsive */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-photo {
        position: relative;
        top: 0;
        height: 400px;
        align-self: auto;
    }

    .about-content {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 600px) {
    .about-photo {
        height: 300px;
    }

    .about-content {
        padding: 2rem 1.5rem;
    }

    .about-name {
        font-size: 2.5rem;
    }
}

/* Work Page */
.work-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 4rem;
    width: 100%;
    box-sizing: border-box;
}

.work-header {
    margin-bottom: 2rem;
}

.work-title {
    font-family: 'Amatic SC', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
    line-height: 1;
}

.work-sub {
    font-family: 'Bellota Text', cursive;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    margin: 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    height: 260px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.work-item:hover img {
    transform: scale(1.04);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33%;
    background: rgba(26, 26, 26, 0.85);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.overlay-title {
    font-family: 'Amatic SC', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #f5f0e8;
    letter-spacing: 0.05em;
    margin: 0 0 3px;
    line-height: 1.1;
}

.overlay-type {
    font-family: 'Libre Bodoni', serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8db88a;
    margin: 0;
}

.award-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #3a5a32;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Work Page Responsive */
@media (max-width: 900px) {
    .work-container {
        padding: 100px 20px 3rem;
    }
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .work-item {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
    .work-item {
        height: 240px;
    }
}

/* make inner pages responsive */

    @media (max-width: 600px) {
      .photo-text-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .photo-text-wrap img {
        width: 100%;
        max-width: 200px; /* prevent image from being huge */
      }
        
@media (max-width: 900px) {
    .cols-3 .gallery-item {
        flex: 0 0 calc(50% - var(--gap));
        margin: calc(var(--gap) / 2);
    }

    .cols-3 .gallery-item-inner { padding-top: 66.67%; }

    .cols-3 .gallery-item:nth-child(3) {
        flex: 0 0 calc(100% - var(--gap));
        margin: calc(var(--gap) / 2);
    }

    .cols-3 .gallery-item:nth-child(3) .gallery-item-inner { padding-top: 43.75%; }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .left {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 0.5px solid var(--ink-faint);
        padding: 2.5rem 1.75rem;
    }

    .right {
        height: auto;
        overflow: visible;
        padding: 2rem 1.25rem 4rem;
    }
}

@media (max-width: 480px) {
    .cols-2 .gallery-item {
        flex: 0 0 100%;
    }

    .cols-2 .gallery-item-inner { padding-top: 66.67%; }
}