:root {
  --main-text: #222222;
  --meta-text: #444444;
  --logo-text: #555555;
}

* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: white;
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem 0.75rem;
  flex-wrap: wrap;
}

.header-left {
  font-weight: 500;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--logo-text);
}

.header-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-menu-desktop {
  display: flex;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--main-text);
  gap: 0.3rem;
}

.gallery-menu-desktop .current-page,
.gallery-menu-mobile .current-page,
.info-menu-desktop .current-page,
.info-mobile-right .current-page {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


.gallery-menu-desktop a,
.gallery-menu-desktop .current-page {
  color: var(--main-text);
}

.gallery-menu-mobile {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-right a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--main-text);
}

.header-divider {
  width: 100%;
  margin-top: 0.6rem;
  border: none;
  border-top: 1px solid black;
}

main {
  padding: 8rem 2rem 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 1rem;
}

.gallery-thumb {
  width: 100%;
  max-width: 200px;
  background: #f8f8f8;
  padding: 0.25rem;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin: 0 auto;
  display: block;
}

.thumb-wrapper {
  text-align: center;
}

.thumb-metadata {
  font-size: 0.85rem;
  line-height: 1.3;
  margin-top: 0.5rem;
  color: var(--meta-text);
}

.thumb-metadata p {
  margin: 0.2rem 0;
}

.bio-content h2 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.bio-content p strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.bio-intro {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 900px;
  margin: 0 0 3rem 0; /* Removes auto-centering */
  padding-left: 2rem;  /* Optional: align with other content */
}

.bio-intro img {
  width: 200px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #f8f8f8;
  padding: 0.25rem;
  object-fit: cover;
  margin-top: 0; /* ensure no extra space on image */
}

.bio-intro .bio-about {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--main-text);
  font-weight: 400;
  margin-top: 0;
}

.bio-block p {
  font-weight: 400;
}

/* CONTACT PAGE ONLY */
.contact-page main {
  padding: 8rem 2rem 2rem;
}

.contact-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: start;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.contact-text {
  flex: 1;
  font-size: 1rem;
  color: var(--main-text);
  line-height: 1.6;
}

.contact-text p {
  margin: 0 0 1rem;
}

.contact-text strong {
  font-weight: 500;
}

.contact-image img {
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #f8f8f8;
  padding: 0.25rem;
  border-radius: 4px;
}


.gallery-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9rem;
  margin-top: 0.3rem;
}

.gallery-link img {
  width: 400px;
  object-fit: contain;
  background: #f8f8f8;
  padding: 0.25rem;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.gallery-label {
  margin-top: 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.expanded-view {
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  z-index: 2000;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 3rem;
  align-items: center;
  justify-content: center;
}

.expanded-view.active {
  display: flex;
}

.expanded-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 100%;
  padding: 2rem 1rem;
}

.expanded-content img {
  max-width: 75%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.hover-swap:hover {
  transform: none !important;
}


#expanded-img {
  transition: opacity 0.3s ease;
  opacity: 1;
}

#expanded-img.fade-out {
  opacity: 0;
}

#expanded-img.fade-in {
  opacity: 1;
}


.metadata {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  max-width: 300px;
  color: var(--meta-text);
}

.metadata p {
  margin: 0.25rem 0;
}

.close-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-arrow {
  background: none;
  border: none;
  font-size: 2rem;
  color: black;
  cursor: pointer;
  z-index: 1001;
}

.nav-arrow.left {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav-arrow.right {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}


.site-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--main-text);
  padding: 2rem 1rem;
  opacity: 0.6;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-thumb:hover {
    transform: scale(1.05);
  }
  .gallery-link img:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 0.5rem;
  }

  .header-left {
    font-size: 1.2rem;
    width: 100%;
    margin-bottom: 0.3rem;
  }

  .header-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
  }

  .gallery-menu-desktop,
  .header-right {
    display: none;
  }

  .gallery-menu-mobile {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--main-text);
  }

  .gallery-menu-mobile a,
  .gallery-menu-mobile .current-page {
    margin: 0 0.1rem;
    color: var(--main-text);
  }

  .divider-slash {
    padding: 0 0.25rem;
    opacity: 0.4;
  }

  .header-divider {
    margin-top: 1rem;
  }

  main {
    padding: 6rem 1rem 2rem;
  }

 .bio-intro {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 0; /* remove alignment override */
}

.bio-intro .bio-about {
  margin-top: 1rem;
  text-align: left;
  padding: 0 1rem;
}


.contact-container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.25rem;
}

.contact-text {
  margin-bottom: 1.5rem;
}

  .gallery-thumb {
    cursor: default;
    transform: none !important;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gallery-thumb,
  .gallery-link img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .gallery-links {
    margin-top: 2rem;
    gap: 1rem;
  }

.expanded-content {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-top: -1rem;
}

.expanded-content img {
  max-width: 95%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.metadata {
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  max-width: 90%;
  color: var(--main-text);
}

.metadata p {
  margin: 0.2rem 0;
}

.index-page main {
  padding-top: 4rem; /* or smaller like 1.5rem if you want */
  flex: 1;
    display: flex;
    flex-direction: column;
}


.nav-arrow {
  display: none;
}

}
