
/* ——— Global & Header/Nav ——— */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #333;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.header-container h1 {
  margin: 0;
  color: #fff;
}

/* make the nav list scrollable on small screens */
nav ul {
  display: flex;
  flex-wrap: nowrap;                /* prevent wrapping to next line */
  overflow-x: auto;                 /* allow horizontal scroll */
  -webkit-overflow-scrolling: touch;/* smooth momentum on iOS */
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-container nav ul li {
  flex: 0 0 auto;                   /* don’t let items shrink below their content */
}

nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  background: #444;
  border-radius: 4px;
}

nav ul::-webkit-scrollbar {
  display: none;
}

@media (max-width: 600px) {
  nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* ——— Main Sections ——— */
main { padding-top: 4rem; }
.section {
  padding: 2rem 1rem; background: #fff;
  margin: 1rem auto; max-width: 1200px;
  border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Highlight the hero block when clicked */
#hero.highlight {
  background-color: yellow !important;
}

/* ——— Hero ——— */
.hero-image {
  width: 150px; margin: 1.5rem auto;
  display: block; border-radius: 8px;
}

/* ——— Projects Grid & Details ——— */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 1rem;
}
.project summary {
  position: relative; padding: 0; cursor: pointer;
}
.project summary img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
}
.project summary::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,0.8);
  transition: background 0.5s ease;
}
.project summary:hover::before {
  background: rgba(255,255,255,0);
}
.project summary h3 {
  position: absolute; bottom: 10px; left: 10px;
  margin: 0; padding: 4px 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 4px; z-index: 2;
}
.project-details {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s ease;
}
details[open] .project-details {
  max-height: 1000px;
}

/* ——— Image Gallery Thumbnails ——— */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px,1fr));
  gap: 0.5rem; margin-top: 0.5rem;
}
.image-gallery img {
  width: 100%; height: 100px;
  object-fit: cover; cursor: pointer;
  border-radius: 4px; transition: transform .2s ease;
}
.image-gallery img:hover { transform: scale(1.1); }

/* ——— Lightbox Modal & Arrows ——— */
#lightbox {
    display: none;              /* hidden on load */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    align-items: center;       /* will apply when JS sets display:flex */
    justify-content: center;
    z-index: 1000;
}
#lightbox img {
  max-width: min(92vw, 960px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
#lightbox .close {
  position: absolute; top: 20px; right: 30px;
  font-size: 2em; color: white; cursor: pointer;
}
#lightbox .arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  font-size: 2.5em; color: white;
  cursor: pointer; user-select: none; padding: 0 10px;
}
#lightbox .prev { left: 20px; }
#lightbox .next { right: 20px; }
#lightbox .arrow:hover { color: #ccc; }

#lightbox-caption {
  color: #fff;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 90%;
}


/* ——— Bass‑Guitar Crop ——— */
.crop-cover {
  width: 120px; height: 80px;
  object-fit: cover; border-radius: 4px;
  display: block; margin: 0.5rem auto;
}

/* ——— Music Page Helpers ——— */
.music-links {
  text-align: left;
  margin: 15px 0;
}
.music-icon {
  width: 38px;
  height: 38px;
  margin: 0 10px;
}
.video-container {
  text-align: center;
  margin-top: 20px;
}

/* ——— Footer ——— */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #666;
}
