/* =============================
   Global Base
   ============================= */
html,
body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f4f4f4;
  color: #444;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

main {
  flex: 1;
  padding-top: 4rem; /* Default top spacing for all sections */
}

/* =============================
   Header
   ============================= */
.header-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-title {
  display: inline-block;
  padding: 1.35rem 0;
  text-align: center;
  font-size: 2.1rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #444 !important;
  text-decoration: none !important;
  position: relative;
  z-index: 9999;
}

.header-title:hover {
  color: #444 !important;
  text-decoration: none !important;
}

.header-title .studio-text {
  font-weight: normal;
}

/* =============================
   Menu Button (fixed)
   ============================= */
.menu-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-button span {
  width: 30px;
  height: 1px;
  background-color: #444;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-button.open span:nth-child(1),
.menu-button.open span:nth-child(3) {
  opacity: 0;
}

.menu-button.open span:nth-child(2) {
  transform: rotate(45deg);
}

/* =============================
   Sidebar (menu)
   ============================= */
.sidebar {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 0 2rem;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  user-select: none;
  font-size: 0.9rem;
  z-index: 1001;
  background-color: transparent;
}

.sidebar::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 8rem;
  background: #f4f4f4;
  z-index: -1;
}

.sidebar.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar a,
.projects-submenu a {
  font-size: 1rem;
  color: #444;
  line-height: 2;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar a:hover,
.projects-submenu a:hover {
  color: #000;
}

/* =============================
   Projects
   ============================= */
.projects-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1003;
}

/* Submenu */
.projects-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: -2rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: #f4f4f4;
  min-height: 10rem;
  padding: 0.5rem 2rem;
  z-index: 1004;
}

.projects-submenu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =============================
   Sections (router)
   ============================= */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* =============================
   Image + captions (home)
   ============================= */
.image-wrapper {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

/* =============================
   Sculpture
   ============================= */
.sculpture-item {
  text-align: left;
}

.sculpture-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* =============================
   Bio
   ============================= */
.bio-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.bio-photo {
  max-width: 100%;
  height: auto;
  display: block;
}

.bio-text a {
  display: block;
  margin: 0.3rem 0;
  color: #444;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 2rem;
  letter-spacing: 0.04em;
  text-align: center;
  transition: color 0.3s ease;
}

/* =============================
   Contact
   ============================= */
.contact-wrapper {
  display: flex; /* Ensure flex is applied */
  flex-direction: row;
  align-items: center; /* vertical alignment with image */
  justify-content: center; /* center as a group horizontally */
  gap: 1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-links a {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  text-align: left;
}


.contact-image {
  width: 100px;
  height: auto;
  max-width: 100%;
}

/* =============================
   Footer
   ============================= */
.footer {
  position: static;
  padding: 0;
  text-align: left;
  font-size: 0.7rem;
  color: #666;
}

/* =============================
   Utilities
   ============================= */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* =============================
   Lightbox
   ============================= */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1009;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

body.lb-open {
  overflow: hidden;
}

.lb-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
}

.lb-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.lb-caption {
  color: #000;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #000;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  z-index: 1000;
}

.lb-close {
  top: 1rem;
  left: 1rem;
}

.lb-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* =============================
   Media Queries
   ============================= */
/* ≥ 600px (tablet & up) */
@media (min-width: 600px) {
  #sculpture {
    padding-top: 0; /* sculpture-specific spacing for tablet and larger */
  }

  .footer {
    padding-left: 2rem;
    padding-bottom: 1rem;
  }
}

/* ≤ 600px (mobile) */
@media (max-width: 600px) {
  main {
    padding-top: 8rem !important; /* Increased top spacing for mobile */
  }

  .sidebar {
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sidebar::before {
    min-height: 8rem;
  }

  .image-wrapper {
    margin-top: 10vh !important;
    padding: 1rem !important;
  }

  .projects-wrapper {
    flex-direction: row;
    align-items: center;
  }

  .projects-submenu {
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    transform: translateY(-10px);
  }

  .projects-submenu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-button {
    top: 2rem;
    left: 1rem;
  }

  .footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0 !important;
    padding-bottom: 1rem !important;
  }

  .header-title {
    font-size: 1.5rem !important;
    padding-top: 0 !important;
    line-height: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(2rem + 22px - 1.5rem);
    color: #444 !important;
  }

  .bio-wrapper {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .contact-image {
    width: 100px;
  }

  /* Lightbox tweaks */
  .lb-close {
    font-size: 2.2rem;
    padding: 0.6rem 0.9rem;
  }

  .lb-prev,
  .lb-next {
    display: none; /* hide arrows on mobile */
  }
}

/* =============================
   Sculpture captions fade effect
   ============================= */
#sculpture .sculpture-item {
  position: relative;
  display: inline-block;
}

#sculpture .sculpture-caption {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

#sculpture .sculpture-item:hover .sculpture-caption {
  opacity: 1;
}

/* Mobile-only scroll fade-in for sculpture captions */
@media (max-width: 600px) {
  #sculpture .sculpture-caption {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  #sculpture .sculpture-caption.visible {
    opacity: 1;
    transform: none;
  }
}
