/*
Theme Name: Riccardo
Theme URI: http://example.com
Author: Custom
Author URI: http://example.com
Description: Minimal custom theme for Riccardo Luppi
Version: 1.2
*/

/* =========================
   BASE RESET
========================= */

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  text-transform: lowercase;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}


/* =========================
   HERO TITLE (FINAL)
========================= */

.hero-title {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  text-align: right;
}

.hero-title span {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 65px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 0.6;
}

@media (max-width: 600px) {
  .hero-title {
    right: 4vw;
  }
}

/* =========================
   SECTIONS
========================= */

.section {
  min-height: 100vh;
  padding: 100px 10vw;
  box-sizing: border-box;
}

/* =========================
   INTRO SECTION
========================= */

.intro-section {
  background: #ffffff;
  padding: 140px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.intro-left {
  max-width: 520px;
}

.intro-name {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.intro-role {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =========================
   PHOTO GRID
========================= */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.photo {
  position: relative;
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: white;

  background-size: cover;
  background-position: center;
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.photo span {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
}

/* =========================
   PAGE CONTENT
========================= */

.page-content {
  max-width: 900px;
  margin: 140px auto 100px;
  padding: 0 20px;
}

.page-content h1 {
  font-size: 3rem;
  margin-bottom: 40px;
}

.page-content p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* =========================
   DISCOGRAPHY
========================= */

.discography-page {
  padding: 140px 20px 100px;
}

.discography-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.discography-title {
  font-size: 3rem;
  font-weight: 300;
  margin: 0 0 40px;
}

.discography-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1000px) {
  .discography-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .discography-grid { grid-template-columns: repeat(2, 1fr); }
}

.album-card {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.album-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.album-card-title {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.album-card-year {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.album-panel {
  margin-top: 46px;
  border-top: 1px solid rgba(0,0,0,0.15);
  padding-top: 34px;
}

.album-panel-inner {
  max-width: 920px;
}

.album-close {
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 18px;
}

.album-title {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 300;
}

.album-meta {
  opacity: 0.75;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.album-personnel {
  margin: 0 0 20px;
}

.album-personnel ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.album-description {
  margin: 0 0 20px;
  line-height: 1.7;
}

.album-tracks .track {
  margin-bottom: 14px;
}

.album-tracks .track-title {
  display: block;
  margin-bottom: 6px;
  opacity: 0.85;
}

/* =========================
   BIO
========================= */

.bio-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 20px;
}

.bio-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 60px;
}

.bio-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.4em;
}

/* =========================
   MAIN MENU WITH DROPDOWN - FIXED
   Projects parent reveals Leader/Sideman on hover
   Dropdown stays open when moving cursor to sub-items
========================= */

.main-menu {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 1000;
  display: flex;
}

.main-menu ul,
.main-menu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.main-menu li,
.main-menu .menu > li {
  margin: 0;
  position: relative;
}

/* All menu links and parent items */
.main-menu a,
.main-menu .menu > li > a,
.main-menu .menu-parent-item {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  cursor: pointer;
  display: block;
  padding: 4px 0;

  /* Text outline for visibility */
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.3),
    0.5px -0.5px 0 rgba(0,0,0,0.3),
    -0.5px 0.5px 0 rgba(0,0,0,0.3),
    0.5px 0.5px 0 rgba(0,0,0,0.3),
    0 0 3px rgba(0,0,0,0.2);
  transition: text-shadow 0.2s ease, opacity 0.2s ease;
}

/* Hover effects */
.main-menu a:hover,
.main-menu .menu-parent-item:hover {
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.5),
    0.5px -0.5px 0 rgba(0,0,0,0.5),
    -0.5px 0.5px 0 rgba(0,0,0,0.5),
    0.5px 0.5px 0 rgba(0,0,0,0.5),
    0 0 5px rgba(0,0,0,0.3);
}

/* Parent item (Projects) - unclickable indicator */
.main-menu .menu-parent-item {
  cursor: default;
  position: relative;
}

/* Add dropdown arrow to parent items */
.main-menu .menu-parent-item::after {
  content: '▼';
  font-size: 8px;
  margin-left: 6px;
  opacity: 0.6;
  vertical-align: middle;
}

/* Sub-menu (dropdown) - hidden by default */
.main-menu .sub-menu,
.main-menu .menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  padding: 10px 0;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  flex-direction: column;
  gap: 0;
  padding-top: 15px;
}

/* Create invisible bridge between parent and dropdown */
.main-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

/* Sub-menu items */
.main-menu .sub-menu li,
.main-menu .menu .sub-menu li {
  width: 100%;
}

.main-menu .sub-menu a,
.main-menu .menu .sub-menu a {
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-shadow: none;
  color: #333;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-menu .sub-menu a:hover {
  background: rgba(0,0,0,0.05);
  color: #000;
  text-shadow: none;
}

/* Show dropdown on hover */
.main-menu li:hover > .sub-menu,
.main-menu .sub-menu:hover {
  display: flex;
}

/* Keep parent highlighted when dropdown is open */
.main-menu li:hover > .menu-parent-item,
.main-menu .sub-menu:hover ~ .menu-parent-item {
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.5),
    0.5px -0.5px 0 rgba(0,0,0,0.5),
    -0.5px 0.5px 0 rgba(0,0,0,0.5),
    0.5px 0.5px 0 rgba(0,0,0,0.5),
    0 0 5px rgba(0,0,0,0.3);
}

/* Homepage specific styles (dark background) */
.home .main-menu a,
.home .main-menu .menu-parent-item {
  color: #fff;
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.6),
    0.5px -0.5px 0 rgba(0,0,0,0.6),
    -0.5px 0.5px 0 rgba(0,0,0,0.6),
    0.5px 0.5px 0 rgba(0,0,0,0.6),
    0 0 4px rgba(0,0,0,0.4);
}

.home .main-menu a:hover,
.home .main-menu .menu-parent-item:hover {
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.8),
    0.5px -0.5px 0 rgba(0,0,0,0.8),
    -0.5px 0.5px 0 rgba(0,0,0,0.8),
    0.5px 0.5px 0 rgba(0,0,0,0.8),
    0 0 6px rgba(0,0,0,0.5);
}

/* Homepage sub-menu */
.home .main-menu .sub-menu {
  background: rgba(0, 0, 0, 0.85);
}

.home .main-menu .sub-menu a {
  color: #fff;
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.5),
    0.5px -0.5px 0 rgba(0,0,0,0.5),
    -0.5px 0.5px 0 rgba(0,0,0,0.5),
    0.5px 0.5px 0 rgba(0,0,0,0.5);
}

.home .main-menu .sub-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-menu {
    top: 20px;
    right: 20px;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }

  .main-menu a,
  .main-menu .menu-parent-item {
    font-size: 13px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 4px;
    text-shadow: none;
    color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .main-menu .menu-parent-item::after {
    margin-left: 8px;
  }

  /* Mobile: show submenu inline instead of dropdown */
  .main-menu .sub-menu {
    display: flex;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 5px 0 0 15px;
    margin-top: 5px;
  }

  /* Remove the bridge on mobile */
  .main-menu .sub-menu::before {
    display: none;
  }

  .main-menu li:hover > .sub-menu,
  .main-menu .sub-menu:hover {
    display: flex;
  }

  .main-menu .sub-menu a {
    background: transparent;
    padding: 5px 0;
    font-size: 12px;
    box-shadow: none;
  }

  .home .main-menu a,
  .home .main-menu .menu-parent-item {
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-shadow: 
      -0.5px -0.5px 0 rgba(0,0,0,0.5),
      0.5px -0.5px 0 rgba(0,0,0,0.5),
      -0.5px 0.5px 0 rgba(0,0,0,0.5),
      0.5px 0.5px 0 rgba(0,0,0,0.5);
  }

  .home .main-menu .sub-menu {
    background: transparent;
  }

  .home .main-menu .sub-menu a {
    background: transparent;
    color: #fff;
  }
}

/* =========================
   PROJECTS
========================= */

.projects-page { padding: 140px 20px 100px; }
.projects-wrap { max-width: 1100px; margin: 0 auto; }
.projects-title { font-size: 3rem; font-weight: 300; margin: 0 0 28px; }

.projects-section-title {
  font-size: 1.6rem;
  font-weight: 300;
  margin: 30px 0 16px;
  letter-spacing: 0.02em;
}

.projects-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 34px;
  align-items: start;
}

@media (max-width: 980px) {
  .projects-layout { grid-template-columns: 1fr; }
  .projects-nav { position: static; top: auto; }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  background-color: rgba(0,0,0,0.06);
}

.project-card-title {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.projects-nav {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.projects-nav-group-title {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 10px;
}

.projects-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.projects-nav-item {
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 4px 0;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

.projects-nav-item:hover { opacity: 1; }

.project-panel {
  margin-top: 46px;
  border-top: 1px solid rgba(0,0,0,0.15);
  padding-top: 34px;
}

.project-panel-inner { max-width: 980px; }

.project-close {
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 18px;
}

.project-title { margin: 0 0 10px; font-size: 2rem; font-weight: 300; }
.project-personnel ul { margin: 8px 0 0; padding-left: 18px; }
.project-description { margin-top: 16px; line-height: 1.7; }

.project-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

@media (max-width: 800px) {
  .project-hero { grid-template-columns: 1fr; }
}

.project-hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  background-color: rgba(0,0,0,0.06);
}

.project-hero-img.is-empty { display: none; }

/* =========================
   DISCOGRAPHY (PANEL IMAGE LAYOUT)
========================= */

.album-panel-inner { max-width: 980px; }

.album-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

@media (max-width: 800px) {
  .album-hero { grid-template-columns: 1fr; }
}

.album-hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  background-color: rgba(0,0,0,0.06);
}

.album-hero-img.is-empty {
  display: none;
}

/* =========================
   PROJECTS SECONDARY MENU
========================= */

.projects-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.projects-menu-role {
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 10px;
  text-align: left;
}

.projects-menu-list {
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  gap: 6px;
}

.projects-menu-item {
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 6px 0;
  opacity: 0.85;
}

/* =========================
   MMC PAGE LAYOUT (MATCH DISCOGRAPHY)
========================= */

.mmc-page {
  padding: 140px 20px 100px;
}

.mmc-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.mmc-page .bio-title {
  font-size: 3rem;
  font-weight: 300;
  margin: 0 0 40px;
}

.mmc-page .bio-text {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* make Gutenberg blocks respect the same width */
.mmc-page .wp-block-post-content,
.mmc-page .bio-text > * {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* images align perfectly with text */
.mmc-page .wp-block-image {
  margin: 40px 0;
}

.mmc-page .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Right-hand Discography Navigation
========================= */
.discography-nav {
  position: fixed;
  top: 120px;
  right: 60px;
  max-width: 220px;
  z-index: 1000;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

.discography-nav li {
  margin-bottom: 10px;
}

.discography-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.discography-nav a:hover {
  color: #007acc;
  background: rgba(0,122,204,0.1);
}

/* Highlight currently active album */
.discography-nav a.active {
  background: #007acc;
  color: #fff;
}

/* Optional: smaller font on mobile */
@media (max-width: 768px) {
  .discography-nav {
    position: static;
    max-width: 100%;
    margin: 20px 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .discography-nav a {
    font-size: 14px;
    padding: 2px 0;
  }
}

/* =========================
   Projects Navigation Item Styling
========================= */

.projects-nav-item {
  background: none;
  border: none;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.projects-nav-item:hover {
  background: rgba(0,122,204,0.1);
  color: #007acc;
}

.projects-nav-item.active {
  background: #007acc;
  color: #fff;
}

/* Responsive: mobile */
@media (max-width: 768px) {
  .projects-nav {
    position: static;
    max-width: 100%;
    margin: 20px 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .projects-nav-item {
    font-size: 14px;
    padding: 2px 0;
  }
}

/* =========================
   MENU TEXT OUTLINE - VISIBILITY IMPROVEMENT
   Adds subtle text stroke/shadow for readability on all backgrounds
========================= */

.main-menu a,
.main-menu .menu-parent-item {
  /* Text outline using text-shadow for cross-browser compatibility */
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.3),
    0.5px -0.5px 0 rgba(0,0,0,0.3),
    -0.5px 0.5px 0 rgba(0,0,0,0.3),
    0.5px 0.5px 0 rgba(0,0,0,0.3),
    0 0 3px rgba(0,0,0,0.2);
  /* Alternative: -webkit-text-stroke: 0.3px rgba(0,0,0,0.4); */
  transition: text-shadow 0.2s ease;
}

.main-menu a:hover,
.main-menu .menu-parent-item:hover {
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.5),
    0.5px -0.5px 0 rgba(0,0,0,0.5),
    -0.5px 0.5px 0 rgba(0,0,0,0.5),
    0.5px 0.5px 0 rgba(0,0,0,0.5),
    0 0 5px rgba(0,0,0,0.3);
}

/* Ensure menu is visible on dark backgrounds (hero section) */
.home .main-menu a,
.home .main-menu .menu-parent-item {
  color: #fff;
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.6),
    0.5px -0.5px 0 rgba(0,0,0,0.6),
    -0.5px 0.5px 0 rgba(0,0,0,0.6),
    0.5px 0.5px 0 rgba(0,0,0,0.6),
    0 0 4px rgba(0,0,0,0.4);
}

.home .main-menu a:hover,
.home .main-menu .menu-parent-item:hover {
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.8),
    0.5px -0.5px 0 rgba(0,0,0,0.8),
    -0.5px 0.5px 0 rgba(0,0,0,0.8),
    0.5px 0.5px 0 rgba(0,0,0,0.8),
    0 0 6px rgba(0,0,0,0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-menu {
    top: 20px;
    right: 20px;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }

  .main-menu a,
  .main-menu .menu-parent-item {
    font-size: 13px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 4px;
    text-shadow: none;
    color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .home .main-menu a,
  .home .main-menu .menu-parent-item {
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-shadow: 
      -0.5px -0.5px 0 rgba(0,0,0,0.5),
      0.5px -0.5px 0 rgba(0,0,0,0.5),
      -0.5px 0.5px 0 rgba(0,0,0,0.5),
      0.5px 0.5px 0 rgba(0,0,0,0.5);
  }
}

/* =========================
   PROJECT TRACKS STYLES
   Audio player styling for Projects
========================= */

.project-tracks {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.project-tracks > div:first-child {
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.project-tracks .track {
  margin-bottom: 14px;
}

.project-tracks .track-title {
  display: block;
  margin-bottom: 6px;
  opacity: 0.85;
}

.project-tracks audio {
  width: 100%;
  max-width: 400px;
  height: 36px;
  border-radius: 18px;
}

.project-tracks a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.project-tracks a:hover {
  opacity: 1;
}

/* =========================
   FOOTER STYLES
========================= */

.site-footer {
  padding: 40px;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 60px;
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.site-footer a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer a:hover {
  border-bottom-color: currentColor;
}

/* Ensure footer appears on all pages */
.bio-page .site-footer,
.mmc-page .site-footer,
.projects-page .site-footer,
.discography-page .site-footer {
  display: block;
}

/* =========================
   AUDIO PLAYER STYLES - FIX FOR PROJECTS
========================= */

/* Make audio elements visible and block-level */
.project-tracks audio,
.album-tracks audio {
  display: block !important;
  width: 100% !important;
  max-width: 400px !important;
  height: 40px !important;
  border-radius: 20px !important;
  background-color: #f0f0f0 !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  margin: 8px 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.project-tracks audio::-webkit-media-controls-panel,
.album-tracks audio::-webkit-media-controls-panel {
  background-color: #f0f0f0 !important;
  border-radius: 20px !important;
}

/* Firefox */
.project-tracks audio::-moz-range-track,
.album-tracks audio::-moz-range-track {
  background-color: #ddd !important;
  border-radius: 10px !important;
  height: 6px !important;
}

.project-tracks audio::-moz-range-thumb,
.album-tracks audio::-moz-range-thumb {
  background-color: #333 !important;
  border-radius: 50% !important;
  width: 12px !important;
  height: 12px !important;
}

/* Ensure track containers are visible */
.project-tracks,
.album-tracks {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 50px !important;
}

/* Track items */
.project-tracks .track,
.album-tracks .track {
  display: block !important;
  margin-bottom: 15px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* Track titles */
.project-tracks .track-title,
.album-tracks .track-title {
  display: block !important;
  font-size: 0.95rem !important;
  margin-bottom: 8px !important;
  opacity: 0.85 !important;
  color: inherit !important;
}

/* External links styling */
.project-tracks a:not(.track-title),
.album-tracks a:not(.track-title) {
  display: inline-block !important;
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  font-size: 0.9rem !important;
  opacity: 0.85 !important;
  transition: opacity 0.2s !important;
  word-break: break-all !important;
}

.project-tracks a:hover,
.album-tracks a:hover {
  opacity: 1 !important;
}

/* Dark background (homepage) adjustments */
.home .project-tracks audio,
.home .album-tracks audio {
  background-color: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
}

.home .project-tracks audio::-webkit-media-controls-panel,
.home .album-tracks audio::-webkit-media-controls-panel {
  background-color: rgba(255,255,255,0.1) !important;
}

.home .project-tracks .track-title,
.home .album-tracks .track-title {
  color: #fff !important;
}

.home .project-tracks a,
.home .album-tracks a {
  color: #fff !important;
}

/* =========================
   HOMEPAGE MENU VISIBILITY
   Hide menu while hero is in viewport; fade in after scrolling past
========================= */

.main-menu.menu-has-hero {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.main-menu.menu-has-hero.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   INTRO LEFT — GUTENBERG CONTENT STYLING
   Matches the old .intro-name / .intro-role / .intro-text layout
========================= */

.intro-left h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  text-transform: lowercase;
}

.intro-left p:first-of-type {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.intro-left p:not(:first-of-type) {
  font-size: 1.05rem;
  line-height: 1.7;
  text-transform: lowercase;
}

.intro-left p {
  margin-top: 0;
}

/* When menu is visible after scrolling past hero, force black text */
.main-menu.menu-has-hero.is-visible a,
.main-menu.menu-has-hero.is-visible .menu-parent-item {
  color: #000;
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.3),
    0.5px -0.5px 0 rgba(0,0,0,0.3),
    -0.5px 0.5px 0 rgba(0,0,0,0.3),
    0.5px 0.5px 0 rgba(0,0,0,0.3),
    0 0 3px rgba(0,0,0,0.2);
}

.main-menu.menu-has-hero.is-visible a:hover,
.main-menu.menu-has-hero.is-visible .menu-parent-item:hover {
  text-shadow: 
    -0.5px -0.5px 0 rgba(0,0,0,0.5),
    0.5px -0.5px 0 rgba(0,0,0,0.5),
    -0.5px 0.5px 0 rgba(0,0,0,0.5),
    0.5px 0.5px 0 rgba(0,0,0,0.5),
    0 0 5px rgba(0,0,0,0.3);
}

/* Hide menu completely on homepage */
.home .main-menu {
  display: none;
}

/* =========================
   GALLERY GRID — FRONTEND
   Square thumbnails with lightbox support
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.gallery-grid .gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  background: #f5f5f5;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.gallery-grid .gallery-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.15);
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.04);
}

/* Optional caption overlay */
.gallery-grid .gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-grid .gallery-item:hover .gallery-caption {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* =========================
   LIGHTBOX — VANILLA JS
   Fullscreen image viewer, no plugins
========================= */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.gallery-lightbox.is-open img {
  transform: scale(1);
}

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  padding: 8px;
  z-index: 10;
}

.gallery-lightbox-close:hover {
  opacity: 1;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  padding: 20px;
  z-index: 10;
}

.gallery-lightbox-nav:hover {
  opacity: 0.9;
}

.gallery-lightbox-prev { left: 10px; }
.gallery-lightbox-next { right: 10px; }

.gallery-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  z-index: 10;
}

/* Hide nav arrows when only one image */
.gallery-lightbox.is-single .gallery-lightbox-nav,
.gallery-lightbox.is-single .gallery-lightbox-counter {
  display: none;
}

/* =========================
   Discography Navigation Buttons
========================= */

.discography-nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: #333;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.discography-nav button:hover {
  color: #007acc;
  background: rgba(0,122,204,0.1);
}

.discography-nav button.active {
  background: #007acc;
  color: #fff;
}

.hero::before,
.photo::before {
  pointer-events: none;
}

.album-card,
.project-card {
  position: relative;
  z-index: 5;
}

/* =========================
   MMC PAGE FEATURED IMAGE
========================= */

.mmc-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  margin-bottom: 40px;
  background-color: rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .mmc-hero-img {
    aspect-ratio: 4 / 3;
  }
}

/* =========================
   BIO PAGE FEATURED IMAGE
========================= */

.bio-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  margin-bottom: 40px;
  background-color: rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .bio-hero-img {
    aspect-ratio: 4 / 3;
  }
}