/* =============================================================
   Heather Bennett — Stylesheet
   Built on the bohlae.com template (Bill Li)
   ============================================================= */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: #ffffff;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; -webkit-user-drag: none; pointer-events: none; }
:focus-visible { outline: 1px solid #111; outline-offset: 3px; }


/* =============================================================
   TOP BAR — all pages
   ============================================================= */

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 12px;
  height: 56px;
  background: #fff;
  position: relative;
  z-index: 100;
}

.topbar-name {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #111;
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-right: 3rem;
}

.topbar-nav a {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  transition: color 0.15s;
}

.topbar-nav a:hover,
.topbar-nav a[aria-current="page"] { color: #111; }

/* ── Projects Dropdown ────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-label {
  font-size: 13px;
  color: #aaa;
  cursor: default;
  transition: color 0.15s;
  background: none;
  border: 0;
  font-family: inherit;
  letter-spacing: inherit;
}

.nav-dropdown:hover .nav-dropdown-label { color: #111; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 200px;
  z-index: 200;
  text-align: right;
  padding-top: 6px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  font-size: 13px;
  color: #aaa;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-dropdown-menu a:hover { color: #111; }


/* =============================================================
   GALLERY — single image slideshow (home + project pages)
   ============================================================= */

.home-gallery,
.gallery-single {
  position: relative;
  height: calc(100vh - 56px);
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  padding: 20px 40px 48px;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img {
  max-width: 80%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #999;
  letter-spacing: 0.02em;
  padding: 0 24px;
}

.gallery-caption em { font-style: italic; color: #666; }

/* Small arrows so visitors are not stuck waiting on the timer */
.gallery-arrow {
  position: absolute;
  top: 0;
  bottom: 40px;
  width: 18%;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 5;
}
.gallery-arrow--prev { left: 0; cursor: w-resize; }
.gallery-arrow--next { right: 0; cursor: e-resize; }


/* =============================================================
   PROJECT PAGES
   ============================================================= */

.project-body { position: relative; }

/* ── Sidebar ──────────────────────────────────────────────── */
.project-sidebar {
  position: fixed;
  left: 0;
  top: 56px;
  width: 160px;
  height: calc(100vh - 56px);
  padding: 0 20px 0 24px;
  text-align: right;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.sidebar-link {
  display: block;
  font-size: 11px;
  color: #999;
  line-height: 2.2;
  transition: color 0.15s;
}

.sidebar-link:hover,
.sidebar-link.active { color: #111; }

.sidebar-years {
  font-size: 10px;
  color: #bbb;
  margin-bottom: 10px;
}

/* ── Main content ─────────────────────────────────────────── */
.project-main {
  margin-left: 160px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
}

.view { display: none; }
.view.active { display: block; flex: 1; }

#view-gallery.active { height: calc(100vh - 56px); }

#view-about.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 40px 24px;
}


/* =============================================================
   THUMBNAILS — masonry grid, caption in the lightbox
   ============================================================= */

.thumbnails-grid {
  position: relative;
  padding: 100px 40px 4rem;
  background: #ffffff;
}

.thumb-item {
  margin-bottom: 32px;
  background: #ffffff;
}

.thumb-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  pointer-events: auto;
}


/* =============================================================
   ABOUT (project view)
   ============================================================= */

.about-column { max-width: 500px; }

.about-column p {
  font-size: 13px;
  color: #555;
  line-height: 1.85;
}

.about-column p + p { margin-top: 1.2em; }

.about-source {
  margin-top: 28px;
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}


/* =============================================================
   BIO AND INFO PAGE
   ============================================================= */

.bio-body {
  display: flex;
  padding: 72px 80px 80px;
  gap: 60px;
  min-height: calc(100vh - 56px);
  align-items: flex-start;
  justify-content: center;
}

.bio-left { flex: 1; max-width: 420px; }

.bio-text {
  font-size: 13px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 1.2em;
}

.bio-contact-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111;
  margin: 40px 0 12px;
}

.bio-contact a,
.bio-list p {
  display: block;
  font-size: 13px;
  color: #555;
  line-height: 2;
  transition: color 0.15s;
}

.bio-list p { line-height: 1.6; margin-bottom: 8px; }
.bio-list span { color: #aaa; }

.bio-contact a:hover { color: #111; }

.bio-right {
  flex: 1;
  max-width: 440px;
  position: sticky;
  top: 72px;
}

.bio-right img { width: 100%; height: auto; }


/* =============================================================
   LIGHTBOX
   ============================================================= */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  padding: 24px;
}

.lightbox-overlay img {
  max-height: 82vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}

.lightbox-caption {
  font-size: 11px;
  color: #999;
  text-align: center;
  max-width: 640px;
  line-height: 1.6;
}

.lightbox-caption em { font-style: italic; color: #555; }


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

@media (max-width: 900px) {
  .bio-body { flex-direction: column; gap: 32px; }
  .bio-left, .bio-right { max-width: 100%; position: static; }
}

@media (max-width: 768px) {

  /* ── Navigation ─────────────────────────────────────────── */
  .topbar { padding: 16px 16px 12px; }

  .topbar-nav {
    gap: 14px;
    justify-content: flex-end;
    align-items: flex-end;
    margin-left: auto;
    margin-right: 0;
  }

  .topbar-nav a,
  .nav-dropdown-label { font-size: 11px; }

  .nav-dropdown-label { cursor: pointer; }

  .nav-dropdown-menu {
    min-width: 170px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 4px 12px;
  }

  /* hover menus do not exist on phones: only the tap toggle opens it */
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  /* ── Slideshow ──────────────────────────────────────────── */
  .gallery-slide {
    position: relative;
    inset: auto;
    padding: 32px 12px 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .gallery-slide.active { display: flex; opacity: 1; }

  .gallery-slide img {
    max-width: 100%;
    max-height: calc(100vh - 190px);
  }

  .gallery-caption {
    position: relative;
    bottom: auto;
    padding: 16px 16px 0;
    font-size: 10px;
  }

  .gallery-arrow { bottom: 60px; width: 30%; }

  /* ── Project layout ─────────────────────────────────────── */
  .project-sidebar {
    position: relative;
    top: auto !important;
    left: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    gap: 16px;
    padding: 8px 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
  }

  .sidebar-years { display: none; }
  .sidebar-link { line-height: 1; }

  .project-main { margin-left: 0; }

  #view-about.active {
    min-height: 0;
    padding: 24px 16px 40px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .about-column { max-width: 100%; }

  /* ── Thumbnails ─────────────────────────────────────────── */
  .thumbnails-grid { padding: 12px; }
  .thumb-item { margin-bottom: 8px; }

  /* ── Bio and Info page ──────────────────────────────────── */
  .bio-body { padding: 24px 16px 48px; gap: 28px; }
  .bio-right { order: 1; }
  .bio-left { order: 2; }
}

.bio-list a { border-bottom: 1px solid #ddd; transition: border-color 0.15s, color 0.15s; }
.bio-list a:hover { color: #111; border-color: #111; }
