/* ===== Global Styles ===== */
body {
  background-color: #000;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.125rem;
  margin: 0;
  padding: 0;
  line-height: 1.6; /* slightly looser for readability */
}

a {
  color: #9fd3ff;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== Header Layout ===== */
header {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #222;
}

/* ===== Logo & Site Title Styling ===== */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  max-height: 30px;
  margin-right: 15px;
}

.logo-link span {
  color: #aaa;
  font-weight: normal;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ===== Navigation Styling ===== */
nav {
  flex-grow: 1;
  text-align: center;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin: 0 0.5rem;
}

nav a:hover {
  color: #fff;
}

/* ===== Main Page Title Styling ===== */
main h1,
.video-page h1 {
  max-width: 1400px;
  margin: 2rem auto 1.5rem;
  padding: 0 1rem;
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
}

/* ===== Text Container for Prose Pages ===== */
main, .content, .page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Hero Section (Homepage) ===== */
.home-hero {
  text-align: center;
  padding: 1.5rem 0rem;
  background: linear-gradient(to bottom, #111, #222);
  color: #fff;
}

.home-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-hero .tagline {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.home-hero .intro-text {  
  margin-top: 1rem;
  font-size: 1rem;
  color: #aaa;
}




@media (max-width: 768px) {
  .home-hero {
    padding: 1.5rem 0; /* remove side padding on mobile */
  }

  .home-hero .video-wrapper {
    max-width: 100%;   /* let it span full width */
    margin: 1rem 0;    /* keep vertical spacing */
    box-shadow: none;  /* optional: remove shadow so it feels flush */
  }
  /* ===== Chorus Mobile Fix ===== */
  .lyrics .chorus {
    color: #9fd3ff !important; /* keep highlight color */
    text-align: center;        /* center under heading */
    margin-left: 0;            /* remove indent so it doesn’t clip */
    margin-right: 0;           /* ensure full width on small screens */
  }
}




/* ===== Photo Grid (Homepage) ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ===== Gallery Grid (SmugMug Galleries) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 2rem auto;
  max-width: 1400px;
  padding: 0 1rem;
}

.gallery-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  max-width: 100%;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  font-size: 0.85rem;
  color: #bbb;
  margin-top: 0.35rem;
  text-align: center;
}

/* ===== GLightbox Overrides ===== */
.glightbox-clean .gslide-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #eee;
}

.glightbox-clean .gslide-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid #222;
  margin-top: 2rem;
  padding: 2rem 1rem;
  color: #aaa;
  text-align: center;
}

/* ===== Diary Layout ===== */
.diary-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Desktop: two-column grid */
@media screen and (min-width: 1024px) {
  .diary-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  }

  .diary-content {
    max-width: 900px; /* keeps line length comfortable */
  }

  .toc-toggle {
    display: none; /* hide toggle on desktop */
  }
}

/* TOC styling */
.toc h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #9fd3ff;
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin: 0.35rem 0;
}

.toc a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-left 0.2s ease;
  display: block;
  padding: 0.2rem 0.4rem;
}

.toc a:hover {
  color: #fff;
  text-decoration: underline;
}

.toc a.active {
  color: #9fd3ff;
  font-weight: 600;
  border-left: 3px solid #9fd3ff;
  padding-left: 6px;
  background: rgba(159, 211, 255, 0.05);
}

/* Collapsible subsections */
.toc ul ul {
  display: none;
  margin-left: 1rem;
}

.toc li.open > ul {
  display: block;
}

.toc li > a::after {
  content: "▸";
  float: right;
  font-size: 0.7rem;
  opacity: 0.6;
}

.toc li.open > a::after {
  content: "▾";
}

/* Smooth scroll + offset for fixed header */
html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 80px;
}

/* ===== Mobile TOC Overlay ===== */
@media (max-width: 1023px) {
  .diary-layout {
    display: block;
  }

  .toc-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1100;
    background: #111;
    color: #9fd3ff;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border: 1px solid #222;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  }

  .toc {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: #111;
    border-right: 1px solid #222;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .toc.open {
    display: block;
    left: 0; /* slide in from the left */
  }
}

/* ===== Video Logo Overlay ===== */
.video-wrapper {
  position: relative; /* ensures logo is anchored to the video container */
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
}

/* Edge-to-edge video on desktop inside hero */
.home-hero .video-wrapper {
  max-width: none;       /* remove the 1400px cap */
  margin: 2rem 0;        /* vertical spacing only */
  padding: 0;
  box-shadow: none;      /* optional: remove shadow so it feels flush */
}

.home-hero .video-wrapper iframe {
  width: 100%;           /* ensure iframe fills container */
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

.video-logo {
  position: absolute;
  bottom: 2%;   /* relative to video height */
  right: 2%;    /* relative to video width */
  width: 7%;    /* scales with video size */
  max-width: 90px; /* cap so it doesn’t get too large */
  opacity: 0.8;
  pointer-events: none;
  z-index: 10;  /* ensures it sits above the iframe */
}

@media (max-width: 768px) {
  .video-logo {
    width: 12%;       /* slightly larger relative size on small screens */
    max-width: 50px;  /* but still capped */
    bottom: 3%;
    right: 3%;
  }
}

/* assets/css/video-grid.css */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.video-meta {
  margin-top: 0.6rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.video-title {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin: 0;
}

.video-date {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0.2rem 0 0;
  font-style: italic;
}

.pdf-embed {
  position: relative;
  width: 100%;
  padding-top: 75%; /* Adjust ratio: 75% for portrait, 56.25% for landscape */
  overflow: hidden;
  border: 1px solid #ccc;      /* optional */
  border-radius: 6px;          /* optional */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* optional */
}

.pdf-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.gallery-card {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.gallery-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.gallery-card h2 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.video-description {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-size: 1.05rem;
  color: #ddd;
  line-height: 1.7;
}

.video-description h2,
.video-description h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 500;
}

.video-description p {
  margin-bottom: 1.25rem;
}
.video-description::before {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #444;
  margin: 2rem auto;
  opacity: 0.6;
}

.smugmug-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 6px; /* optional, matches your gallery style */
}

/* ===== Lyrics Styling ===== */
.lyrics {
  margin: 2rem auto;
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ddd;
}

.lyrics h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-align: center; /* centers the verse headings */
  letter-spacing: 1px;
}

.lyrics .verse {
  margin-left: 1.5em;   /* subtle indentation */
  margin-bottom: 1.5rem;
  text-align: center;
}

.lyrics .chorus {
  margin-left: 1.5em;       
  font-weight: 500;
  color: #9fd3ff;       /* highlight chorus lines */
  margin-bottom: 1.5rem;
  text-align: center;


}

.note-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
  font-size: 0.9rem;
  color: #aaa;
}
.note-meta p {
  margin: 0.25rem 0;
}
pre {
  margin: 1.5rem 0;
  background: #111;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;       /* enables horizontal scroll */
  white-space: pre-wrap;  /* wraps lines if needed */
  word-break: break-word; /* breaks long tokens */
}


.chroma {
  overflow-x: auto;
  padding: 1rem;
  background: #111;
  border-radius: 6px;
}

.note-index {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.note-index li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.note-index a {
  color: #9fd3ff;
  text-decoration: none;
}

.note-index a:hover {
  text-decoration: underline;
}

.note-tags a,
.note-meta a {
  color: #9fd3ff;
  text-decoration: none;
}
.note-tags a:hover,
.note-meta a:hover {
  text-decoration: underline;
}

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #aaa;
}
.breadcrumbs a {
  color: #9fd3ff;
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: #9fd3ff;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; color: #fff; }

.project-index, .note-index {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}
.project-index li, .note-index li { margin-bottom: 0.6rem; }
.note-tags { color: #aaa; font-size: 0.85rem; margin-left: 0.5rem; }
.count { color: #888; margin-left: 0.4rem; }




