/* ============================================================
   PopUp CMS — GALANA EPK Theme
   Sephardic jazz · vintage glamour · mobile-first
   ============================================================ */

/* ----- Self-hosted fonts (OFL via @fontsource) are at /assets/fonts/popup-fonts.css----- */


/* ----- CSS Variables: Dark Mode (EPK default — intimate jazz-club mood) ----- */
:root,
:root[data-force-color-mode="dark"] {
  --c-text:           #F2F2F2;
  --c-bg:             #000000;
  --c-surface:        #17121D;
  --c-surface-2:      #1F1828;
  --c-link:           rgba(2, 119, 160, 1);
  --c-link-3:           rgba(2, 119, 190, 1);
  --c-link-2:           rgba(9, 152, 246, 1);
  --c-title:          #E8DFD0;
  --c-accent:         #B23A48;
  --c-accent-soft:    #8C2A36;
  --c-gold:           #C9A24B;
  --c-muted:          #8A7B66;
  --c-instruments:    #78b4a0;
  --c-border:         rgba(201, 162, 75, 0.18);
  --c-border-strong:  rgba(201, 162, 75, 0.35);
  --header-bg:        #000000;
  --header-border:    rgba(201, 162, 75, 0.14);
  --menu-bg:          #000000;
  --menu-border:      rgba(201, 162, 75, 0.22);
  --menu-sub-bg:      #000000;
  --menu-sub-border:  rgba(201, 162, 75, 0.10);
  --menu-arrow-color: #C9A24B;
  --toggle-color:     #eeffee;
  --card-portrait-bg: #1F1828;
  --shadow-card:      0 10px 40px rgba(0,0,0,0.45);
}

/* ----- CSS Variables: Light Mode (warm parchment — Sephardic manuscript) ----- */
:root[data-force-color-mode="light"] {
  --c-text:           #2A1F1A;
  --c-bg:             #ffffff;
  --c-surface:        #ffffff;
  --c-surface-2:      #ffffff;
  --c-link:           #8B1A1A;
  --c-title:          #2A1F1A;
  --c-accent:         #8B1A1A;
  --c-accent-soft:    #A52A2A;
  --c-gold:           #A87C2C;
  --c-muted:          #7A6A5A;
  --c-instruments:    #78b4a0;
  --c-border:         rgba(168, 124, 44, 0.22);
  --c-border-strong:  rgba(139, 26, 26, 0.30);
  --header-bg:        #ffffff;
  --header-border:    rgba(168, 124, 44, 0.20);
  --menu-bg:          #FFFFFF;
  --menu-border:      rgba(139, 26, 26, 0.20);
  --menu-sub-bg:      #FFFFFF;
  --menu-sub-border:  rgba(168, 124, 44, 0.14);
  --menu-arrow-color: #8B1A1A;
  --toggle-color:     #8B1A1A;
  --card-portrait-bg: #F0E6D2;
  --shadow-card:      0 8px 28px rgba(139, 26, 26, 0.10);
}

/* ----- Icon Base ----- */
.popup-icon {
  /*--popup-icon-url: none;*/
  --popup-icon-color: var(--c-icons);
  display: inline-flex;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background-color: var(--popup-icon-color);
  mask-image: var(--popup-icon-url);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: var(--popup-icon-url);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  vertical-align: middle;
}


/* ----- Base ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  margin: 0;
  padding: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 18px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color 0.2s;
}
/*a:hover {   }*/
/*text-decoration: underline;text-underline-offset: 3px;*/

/*
Might consider this for almost all links (not menu, not images...)
a::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    margin-left: 5px;
    border-radius: 50%;
    background: #c9c4b4;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.25);
    transition: background 0.25s ease, box-shadow 0.25s ease;
  	display: none;
}
a:hover:after {
  	display: inline-flex;
    background: #ffb64d;
    box-shadow: 0 0 6px 1px rgba(255,182,77,.75);
}*/




p { margin: 0 0 1.1em; }

.valignM {vertical-align: middle;}

/* ----- Layout container ----- */
.site-container {
  /*max-width: 1100px;*/
  /*max-width:80%;*/
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 680px) {
  .site-container {
    max-width:80%;
  }
}







/* ----- Site header / brand ----- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  /*border-bottom: 1px solid var(--header-border);*/
  background: var(--header-bg);
  position: relative;
  transition: background-color 0.4s, border-color 0.4s;
  z-index:700;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-title);
}
.brand img {
  /*width: 46px;
  height: 46px;*/
  display: block;
  filter: drop-shadow(0 0 6px rgba(178, 58, 72, 0.25));
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  text-transform: none;
  margin-top: 2px;
}





/* ----- Footer ----- */
footer {
  padding: 28px 0 36px;
  border-top: 1px dotted var(--c-border);
  color: var(--c-text);
  font-size: 1rem;
  display: flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 1.5rem 1rem;
  font-size: 1rem;
  z-index:100;
}

footer > imprint{ display:flex; flex-direction:column-reverse;
  align-items: center;
  justify-content: center;}

youtube a,
instagram a {
  display: flex;
}

contact a,contact a:hover {
  text-decoration: none;
}
footer a { color: var(--c-text); }
footer .popup-icon{height:1.2rem;width:1.2rem;}

.popup-icon--youtube {
  --popup-icon-url: url('/galana/media/icons/youtube-line.svg');
  --popup-icon-color:var(--c-text);
  display: inline-block;
  /*--popup-icon-color:#729fcfff;*/
}

.popup-icon--instagram {
  --popup-icon-url: url('/galana/media/icons/instagram-line.svg');
  --popup-icon-color:var(--c-text);
  display: inline-block;
  /*--popup-icon-color:#729fcfff;*/
}

@media (min-width: 480px) {
  footer {
    flex-direction:row;
	}
  footer > :not(:first-child)::before {content:'-';
  padding:0 1rem 0 0;}
  footer >* ,footer>imprint{ display:flex; flex-direction:row;
  align-items: center;
  justify-content: center;}
}



/* ----- Content ----------------------------------------------------------------------- */
article {
  position: relative;
  padding: 36px 0 48px;
  min-height: 50vh;
  overflow: hidden;
  z-index:500;
}
article::after {
  content: "";
  display: table;
  clear: both;
}
article h1 {
  color: var(--c-title);
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0.2em 0 0.5em;
}
article h2 {
  color: var(--c-title);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 1.6em 0 0.5em;
  position: relative;
}
article h3 {
  color: var(--c-accent);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 1.4em 0 0.4em;
}
article img {
  max-width: 100%;
  height: auto;
}
article code {
  background: var(--c-border);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}




/* ----- Hero (home opening) ----- */
hello{
    text-align: center;
  padding: 28px 20px 8px;
  background: var(--c-bg);

  
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--c-title);
  margin: 0;
  letter-spacing: 0.02em;
}
.revolution{color:rgba(208, 33, 30, 1);}
.hero {
  position: relative;
  margin: 0 -20px 32px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 78vh;
  object-fit: cover;
}
.hero-caption {
  position: relative;
  text-align: center;
  padding: 28px 20px 8px;
  background: var(--c-bg);
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--c-title);
  margin: 0;
  letter-spacing: 0.02em;
}
.hero-kicker {
  font-family: 'EB Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--c-gold);
  margin-bottom: 14px;
}
/* Lead paragraph (italic, larger) */
.lead {
  font-size: 1.18rem;
  /*font-style: italic;*/
  color: var(--c-text);
  margin-bottom: 1.4em;
  max-width: 60ch;
}

/*-------------------------------------------------------------------------------------------------------
*
*
*
*
*-------------------------------------------------------------------------------------------------------*/
  /* ===== Title ===== */
  .band-polaroids ~ h1,
  article > h1:first-child {
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #57534e;
    margin-bottom: 2rem;
    font-size: clamp(1.1rem, 3vw, 1.8rem);
  }

  /* ===== Polaroid Grid ===== */
  .band-polaroids {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 1rem;
  }

  /* ===== Polaroid Card (a div; the member NAME is the link) ===== */
  .band-member {
    --pad: clamp(6px, 7px, 8px);
    --caption-bottom: clamp(8px, 2.5vw, 12px);

    display: flex;
    flex-direction: column;
    color: inherit;
    background: #fff;
    padding: var(--pad);
    padding-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
    outline: none;
    flex-shrink: 0;

    /* mobile-first: 2 columns */
    width: calc(50% - 0.5rem);
  }

  /* 3 cols: (100% - 2 gaps) / 3, gap=1.2rem → subtract 0.8rem each */
  @media (min-width: 560px) {
    .band-member { width: calc(33.333% - 0.8rem); }
    .band-polaroids { gap: 1.2rem; }
  }
  /* 5 cols: (100% - 4 gaps) / 5, gap=1.4rem → subtract 1.12rem each */
  @media (min-width: 960px) {
    .band-member { width: calc(20% - 1.12rem); }
    .band-polaroids { gap: 1.4rem; }
  }

  .band-member:hover,
  .band-member:has(.member-name a:focus-visible) {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transform: translateY(-2px);
  }

  /* ===== 1:1 Image ===== */
  .profile-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #d6d3d1;
    flex-shrink: 0;
  }

  .profile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease-in-out;
  }

  .band-member:hover .profile-image,
  .band-member:has(.member-name a:focus-visible) .profile-image {
    filter: grayscale(0%);
  }

  /* ===== Caption (polaroid bottom area) ===== */
  .member-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(4px, 0.6vw, 8px) var(--pad) var(--caption-bottom);
    flex-shrink: 0;
  }

  .member-name {
    font-family: 'Gotham Rounded Book', sans-serif;
    font-weight: 700;
    color: #44403c;
    line-height: 1.25;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
  }

  /* The name is the card's link — keeps the polaroid ink, gains a subtle
     affordance on hover/focus instead of the whole card being clickable. */
  .member-name a {
    color: inherit;
    text-decoration: none;
  }
  .member-name a:hover {
    text-decoration: none;
  }
  .member-name a:focus-visible {
    outline: 2px solid #0a6ebd;
    outline-offset: 2px;
    border-radius: 2px;
  }

  .member-instruments {
    font-family: 'ColabThi-webfont', sans-serif;
    text-transform: uppercase;
    color: #78716c;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.7rem, 1.3vw, 0.85rem);
  }
/* ------- new musicians cards ------- */

/*
:root {
  --polaroid-bg: linear-gradient(155deg, #ffffff 0%, #fdfdfa 55%, #f2f0e9 100%);
  --polaroid-ink: #33322e;          
  --polaroid-sub: #98938a;          
  --polaroid-shadow: 0 1px 2px rgba(0,0,0,.20), 0 8px 18px rgba(0,0,0,.14),
                     inset 0 1px 0 rgba(255,255,255,.9);   
  --polaroid-shadow-hover: 0 2px 5px rgba(0,0,0,.22), 0 16px 34px rgba(0,0,0,.24),
                           inset 0 1px 0 rgba(255,255,255,.9);
}


.band-polaroids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 20px;
  padding: 20px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.band-member {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--polaroid-bg);
  padding: 6px 6px 20px 6px; 
  box-shadow: var(--polaroid-shadow););
  transform: rotate(var(--tilt, 0deg));
  transition: transform .35s ease, box-shadow .35s ease;
  width: 260px; 
  flex-shrink: 0;
}


.band-polaroids .band-member:nth-child(1) { --tilt: -2.2deg; }
.band-polaroids .band-member:nth-child(2) { --tilt:  1.8deg; }
.band-polaroids .band-member:nth-child(3) { --tilt: -1.2deg; }
.band-polaroids .band-member:nth-child(4) { --tilt:  2.0deg; }
.band-polaroids .band-member:nth-child(5) { --tilt: -1.6deg; }
.band-polaroids .band-member:nth-child(n+6) { --tilt:  1.5deg; }
.band-polaroids.no-scatter .band-member { --tilt: 0deg; }



.band-member:hover,
.band-member:focus-visible,
.band-member:active {
  transform: rotate(0deg) scale(1.16) translateY(-4px);
  box-shadow: var(--polaroid-shadow-hover);
  z-index: 2;
}


.profile-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e0d8;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
	object-position: 50% 22%;         
  filter: grayscale(1) contrast(1.04);
  transition: filter .45s ease;
}

.band-member:hover .profile-image,
.band-member:focus- in one rowvisible .profile-image,
.band-member:active .profile-image {
  filter: grayscale(0);
}


.member-info {
  text-align: center;
  padding: 4px 2px 0 2px;
  margin-top: 2px;
}

.member-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.05rem, 4.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;              
  color: var(--polaroid-ink);
}

.member-instruments {
  font-size: clamp(.78rem, 4vw, .88rem);
  text-transform: uppercase;
  letter-spacing: .09em;
  white-space: nowrap;              
  color: var(--polaroid-sub);
  margin-top: 2px;
}
*/
/*-------------------------------------------------------------------------------------------------------
*
*
*
*
*-------------------------------------------------------------------------------------------------------*/

/* ----- Musician page (linked from the polaroids) ----- */
.member-page-portrait {
  display: block;
  width: min(260px, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 3px;
  margin: 0 auto 1.2em;
  filter: grayscale(.35) contrast(1.03);
  box-shadow: var(--polaroid-shadow);
}
.member-page .member-instruments {
  color: var(--c-muted, #8d8778);
  text-align: center;
  margin-top: -0.6em;
}


/* ----- Contact / booking card ----- */
.contact-card {
  padding: 28px 28px 28px 0;
  margin: 1.5em 0;
}
.contact-card .label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--c-muted);
  display: block;
  margin-bottom: 6px;
}
.contact-card .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  /*color: var(--c-accent);*/
}
/* ----- Socials cards ----- */
.socials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.5em 0;
  list-style: none;
  padding: 0;
  max-width: none;
}
@media (min-width: 640px) { .socials-grid { grid-template-columns: repeat(2, 1fr); } }
.social-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-text);
  transition: border-color 0.2s, transform 0.2s;
}
.social-card:hover {
  border-color: var(--c-gold);
  text-decoration: none;
  transform: translateY(-2px);
}
.social-card .platform {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-accent);
}
.social-card .handle {
  font-style: italic;
  color: var(--c-muted);
  font-size: 0.95rem;
}









/* ================================================================
   THEME TOGGLE BUTTON (sun / moon)
   ================================================================ */

.switchModeButton {
  position: fixed;
  top:12px;
  right:12px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: border-color 0.3s, color 0.3s;
}
.switchModeButton:hover { border-color: var(--toggle-color); }

/* Sun */
.switchSun {
  width: 50%;
  height: 50%;
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6) rotate(0deg);
  transition: transform 0.3s ease-in, opacity 0.2s ease-in 0.1s;
  background: radial-gradient(circle, rgba(0,0,0,0) 50%, var(--toggle-color) 50%);
}
.switchSun::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--toggle-color) 30%, rgba(0,0,0,0) 30%,
    rgba(0,0,0,0) 50%, var(--toggle-color) 50%);
  transform: rotate(45deg);
}
:root[data-force-color-mode="light"] .switchSun {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) rotate(180deg);
}

/* Moon */
.switchMoon {
  width: 50%;
  height: 50%;
  pointer-events: none;
  position: absolute;
  left: 12.5%;
  top: 18.75%;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 9px 3px 0 0 var(--toggle-color);
  opacity: 0;
  transform: scale(0.3) rotate(65deg);
  transition: transform 0.3s ease-in, opacity 0.2s ease-in 0.1s;
}
:root[data-force-color-mode="dark"] .switchMoon {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Stars */
.switchStar {
  position: absolute;
  top: 25%;
  left: 5%;
  display: block;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 5px solid var(--toggle-color);
  border-left: 7px solid transparent;
  transform: scale(0.55) rotate(35deg);
  opacity: 0;
  transition: all 0.2s ease-in 0.4s;
}
.switchStar::before {
  border-bottom: 5px solid var(--toggle-color);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  position: absolute;
  height: 0;
  width: 0;
  top: -3px;
  left: -5px;
  display: block;
  content: "";
  transform: rotate(-35deg);
}
.switchStar::after {
  position: absolute;
  display: block;
  top: 0;
  left: -7px;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 5px solid var(--toggle-color);
  border-left: 7px solid transparent;
  transform: rotate(-70deg);
  content: "";
}
:root[data-force-color-mode="dark"] .switchMoon .switchStar { opacity: 0.8; }

.switchStar.small {
  transform: scale(0.35) rotate(35deg);
  position: relative;
  top: 50%;
  left: 37.5%;
  opacity: 0;
  transition: all 0.2s ease-in 0.45s;
}
:root[data-force-color-mode="dark"] .switchMoon .switchStar.small {
  opacity: 0.7;
  transform: scale(0.45) rotate(35deg);
}










/* ================================================================
   RESPONSIVE MENU — CSS checkbox trick + grid submenus
   ================================================================ */

/* Hide the real checkbox */
#show-menu-input-checkbox { display: none; }

/* Hamburger toggler — fixed top-right on mobile so it's visible & expected.
   Kept as a sibling of .mainMenu so the :checked ~ selector still works. */
#main-menu-toggler {
  width: 24px;
  height: 24px;
  position: absolute;
  top: -30px;
  right: 9px;
  /*padding: 14px 10px;*/
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1010;
}
#main-menu-toggler-icon {
  filter: drop-shadow(0 0 2px var(--header-bg));
}

/* Three-line hamburger icon */
#main-menu-toggler-icon, #main-menu-toggler-icon::before,
#main-menu-toggler-icon::after{
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-muted);
  transition: all 0.3s;
  border-radius: 2px;
}
#main-menu-toggler-icon {
  position: relative;
}
#main-menu-toggler-icon::before,
#main-menu-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
#main-menu-toggler-icon::before { top: -7px; }
#main-menu-toggler-icon::after  { top: 7px; }

/* Animate to X when checked */
#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon {
  background-color: transparent;
}
#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon::before {
  transform: rotate(45deg) translate(4px, 3px);/*(5px, 2px*/
}
#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon::after {
  transform: rotate(-45deg) translate(6px, -7px);/*7px, -5px*/
}

/* ----- Menu list reset (scoped to .mainMenu) ----- */
.mainMenu,
.mainMenu ul,
.mainMenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav { position: relative;margin-top:0;
  z-index: 1000;}

/* ----- Main menu container — hidden by default on mobile ----- */
.mainMenu {
  display: none;
  z-index: 1000;
  position: relative;
  background: var(--menu-bg);
  transition: background-color 0.4s;
  border:1px dotted rgba(255,255,255,.2);
}

/* Show on mobile when checkbox is checked */
@media only screen and (max-width: 1279px) {
  #show-menu-input-checkbox:checked ~ .mainMenu {
    display: block;
  }
}

/* ----- Menu links ----- */
.mainMenu a {
  color: var(--c-text);
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  /*border-bottom: 1px dotted var(--menu-border);*/
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  transition: background-color 0.2s, color 0.2s;
}
.mainMenu a:hover {
  /*background: var(--menu-sub-bg);color: var(--c-accent);*/
  
  text-decoration: none;
}
.mainMenu > li > a { white-space: nowrap; }
.mainMenu li { position: relative; }

/* ----- Down-arrow indicator for items with submenus ----- */
.mainMenu li.has-sub-menu > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  /*border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--menu-arrow-color);*/
  transition: transform 0.3s, border-color 0.3s;
}
.mainMenu li.has-sub-menu.sub-menu-open > a::after {
  transform: rotate(180deg);
}

/* ----- Submenu: grid transition for smooth open/close ----- */
.mainMenu li > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.mainMenu li > div.sub-menu-open {
  grid-template-rows: 1fr;
}
.mainMenu li > div > ul {
  overflow: hidden;
}

/* ----- Submenu links (mobile) ----- */
@media only screen and (max-width: 1279px) {
  .mainMenu li > div > ul > li > a {
    padding: 0.6rem 1rem 0.6rem 2rem;
    background: var(--menu-sub-bg);
    border-bottom-color: var(--menu-sub-border);
    font-size: 0.95em;
  }
  /* 3rd level: extra indent */
  .mainMenu li > div > ul > li > div > ul > li > a {
    padding: 0.5rem 1rem 0.5rem 3rem;
    font-size: 0.9em;
  }
  /* Move the dark-mode toggle left on mobile so it doesn't collide with the
     fixed hamburger at the top-right corner. */
  /*.switchModeButton {
    margin-right: 56px;
  }*/
}




/* ----- Desktop: horizontal bar with dropdown submenus ----- */
@media only screen and (min-width: 1280px) {
  .mainMenu {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    /*border-bottom: 1px solid var(--menu-border);*/
  }

  .mainMenu a {
    border-bottom: none;
    padding: 0.7rem 1.4rem;
  }

  /* All dropdown levels: hidden by default, shown on hover */
  .mainMenu li > div {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--menu-bg);
    /*border: 1px solid var(--menu-border);*/
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 1001;
    animation: popupDropIn 0.15s ease-out;
  }
  .mainMenu li:hover > div {
    display: block;
  }

  /* Allow nested submenus to overflow their parent <ul> */
  .mainMenu li > div > ul {
    overflow: visible;
  }

  .mainMenu li > div > ul > li > a {
    border-bottom: 1px dotted var(--menu-sub-border);
    padding: 0.6rem 1rem;
  }
  .mainMenu li > div > ul > li:last-child > a {
    border-bottom: none;
  }

  /* Hover bridge — prevents dropdown from closing during diagonal mouse movement */
  .mainMenu li > div::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }

  /* 3rd level (and deeper): fly out to the right */
  .mainMenu li > div > ul > li > div {
    top: 0;
    left: 100%;
    border-radius: 0 6px 6px 0;
    z-index: 1002;
  }
  .mainMenu li > div > ul > li > div::before {
    top: 0;
    left: -10px;
    right: auto;
    bottom: 0;
    width: 10px;
    height: auto;
  }

  /* Hide hamburger on desktop */
  #main-menu-toggler {
    display: none;
  }
}

@keyframes popupDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- no-js fallback ----- */
html.no-js .mainMenu {
  display: block;
}


/* ------ BKg experiment ------ */
footer{padding:380px 0;}
.site-container {background: url('/galana/media/olive-branch-bkg.png') bottom no-repeat;}
