.candles-module {
  margin: 2rem 0;
}

.video-wrap video {
  width: 100%;
}

/* Message page */
.message-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem;
}

.message-page p {
  margin: 0 0 2.2rem;
}

hr {
  margin: 4rem 0 4rem 0;
}
.stanza {
  line-height: 1;
  margin: 0 0 4rem 0;
}

/* Header with title + digits inline */
.message-header {
  margin-bottom: 1rem;
}

.message-title-wrap {
  display: flex;
  flex-direction: row;      /* force left-to-right order */
  justify-content: flex-start;
  align-items: flex-start;  /* top aligned */
  gap: 1.5rem;
}

/* Title */
.message-title {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.5;
}

/* Candle digits beside the title */
.digits {
  direction: ltr;           /* keep numbers like 10 in correct order */
  display: inline-flex;
  align-items: flex-start;  /* top align with title */
  gap: 4px;
}

.digits.single .digit {
  inline-size: 90px;        /* slightly smaller than grid */
  aspect-ratio: 3/5;
}

.digits.double .digit {
  inline-size: 90px;
  aspect-ratio: 3/5;
  margin: 0rem -1rem;
}

.digit {
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Content */
.message-content {
  line-height: 1.75;
  font-size: 1.3rem;
}

/* Candles grid (front page / listing) */
.candles-module .candles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (min-width: 1024px) {
  .candles-module .candles-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.candles-module .candle-card {
  display: block;
  text-decoration: none;
}

.candles-module .digits {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2%;
}

.candles-module .digits.single .digit {
  width: 60%;
  margin: 0 auto;
}

.candles-module .digits.double .digit {
  width: 48%;
}

.candles-module .digit {
  display: block;
  aspect-ratio: 3/5;            /* adjust to your PNG proportions */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 1rem -1rem;           /* tighter look */
}

/* Optional: subtle hover effect on grid candles */
.candles-module .candle-card:hover .digit {
  transform: translateY(-2px);
  transition: transform .15s ease;
}

/* Map digit classes to URLs */
.d0{background-image:url('/user/themes/birthday/images/candles/0.png')}
.d1{background-image:url('/user/themes/birthday/images/candles/1.png')}
.d2{background-image:url('/user/themes/birthday/images/candles/2.png')}
.d3{background-image:url('/user/themes/birthday/images/candles/3.png')}
.d4{background-image:url('/user/themes/birthday/images/candles/4.png')}
.d5{background-image:url('/user/themes/birthday/images/candles/5.png')}
.d6{background-image:url('/user/themes/birthday/images/candles/6.png')}
.d7{background-image:url('/user/themes/birthday/images/candles/7.png')}
.d8{background-image:url('/user/themes/birthday/images/candles/8.png')}
.d9{background-image:url('/user/themes/birthday/images/candles/9.png')}

/* === Quark mobile: show real menu, hide hamburger === */
/* Works with the markup you shared (logo + .desktop-menu + .mobile-menu) */

/* Base tidy-ups (safe across sizes) */
#header .navbar {
align-items: center;
}
#header .navbar-section.desktop-menu .dropmenu {
/* make sure it's not visually hidden by transforms/opacity from theme */
transform: none !important;
opacity: 1 !important;
visibility: visible !important;
height: auto !important;
}
#header .desktop-menu .dropmenu > ul {
margin: 0;
padding: 0;
list-style: none;
}

/* Optional: nicer spacing for top-level items */
#header .desktop-menu .dropmenu > ul > li > a {
padding: 0.25rem 0;
text-decoration: none;
}

/* Submenus: keep standard dropdown behavior on larger screens */
#header .desktop-menu .dropmenu ul ul {
/* your theme may handle this already — keep it predictable */
min-width: 12rem;
z-index: 9999;
}

/* ===== Mobile override ===== */
@media (max-width: 960px) {
  /* 1) Hide the hamburger entirely */
  .mobile-menu,
  #toggle {
  display: none !important;
  }

  /* 2) Ensure the desktop menu block is visible */
  #header .navbar-section.desktop-menu {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  }

  /* 3) Make the menu horizontal, wrapping if needed */
  #header .desktop-menu .dropmenu {
  display: block !important;
  }
  #header .desktop-menu .dropmenu > ul {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  }
  #header .desktop-menu .dropmenu > ul > li {
  display: inline-block !important;
  position: relative;
  }
  #header .desktop-menu .dropmenu > ul > li > a {
  white-space: nowrap;
  }

  /* 4) Neutralize any “collapsed/animated/open” states some Quark builds add */
  #header .desktop-menu .dropmenu.animated,
  #header .desktop-menu .navigation.animated,
  #header .desktop-menu .dropmenu.is-collapsed,
  #header .desktop-menu .dropmenu.collapsed,
  #header .desktop-menu .dropmenu.is-hidden,
  #header .desktop-menu .dropmenu.is-active {
  transform: none !important;
  opacity: 1 !important;
  height: auto !important;
  visibility: visible !important;
  display: block !important;
  }

  /* 5) Dropdowns on mobile: open on tap/hover (simple CSS approach) */
  #header .desktop-menu .dropmenu > ul > li:hover > ul,
  #header .desktop-menu .dropmenu > ul > li:focus-within > ul {
  display: block !important;
  }
  #header .desktop-menu .dropmenu ul ul {
  display: none;              /* hidden until hover/focus */
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--body-bg, #fff);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin: 0;
  padding: 0.25rem 0;
  }
  #header .desktop-menu .dropmenu ul ul li a {
  display: block;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  }

  /* 6) Prevent layout jank */
  #header .container {
  overflow: visible; /* avoid clipping dropdowns */
  }
}

/* ===== Optional polish ===== */

/* Keep logo + menu on one line where possible */
#header .navbar-section.logo {
margin-right: 1rem;
}

/* Reduce chance of horizontal scroll on very narrow screens */
@media (max-width: 420px) {
  #header .desktop-menu .dropmenu > ul {
  gap: 0.5rem;
  }
  #header .desktop-menu .dropmenu > ul > li > a {
  font-size: 0.95em;
  }
}
