
.gallery-page {
    background: 
        linear-gradient(90deg, rgba(16,18,24,0.92), rgba(20,24,31,0.82));
}

.gallery-page .section-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 40px;
}

.gallery-page .section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gallery-page .section-head h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--accent);
}

.gallery-page .section-head p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #edf3ea;
}

.gallery-page .group-card,
.gallery-page .feature-card,
.gallery-page .panel {
  box-shadow: 0 24px 64px rgba(0,0,0,0.32);
}



.site-header-gallery {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(90deg, rgba(16,18,24,0.92), rgba(20,24,31,0.82));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  margin-bottom: 0;
}


.gallery-header-shell {
  position: relative;
}

.gallery-brand-wrap {
  display: inline-block;
  width: auto;
  text-decoration: none;
}

.gallery-header-top {
  position: relative;
  min-height: 80px;
  padding: 0.55rem 0 0.55rem;
  background: transparent;
}

.gallery-header-brand {
  position: relative;
  top: 2.2rem;
  z-index: 2;
}


.gallery-header-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 0 10rem;
}

.gallery-page-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4.0vw, 3.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}


.gallery-header-floating-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3.1rem;
  z-index: 60;
}

.gallery-top-nav {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

.gallery-nav-left {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  flex: 0 0 auto;
}
  
.gallery-nav-right {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: auto;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  max-width: 72%;
  overflow: visible;
}

.gallery-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.30rem 0.58rem;
  min-height: 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(0.58rem, 0.72vw, 0.78rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  background: rgba(12, 14, 20, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  transform-origin: center;
  overflow: visible;
}

.gallery-pill:hover,
.gallery-pill:focus {
  transform: scale(1.26) translateY(-1px);
  background: rgba(255, 235, 160, 0.92);
  border-color: rgba(255, 245, 190, 0.95);
  color: #17130a;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  z-index: 80;
}

.gallery-pill.is-active {
  background: rgba(213, 179, 106, 0.22);
  border-color: rgba(213, 179, 106, 0.48);
  color: #fff3bf;
}

.gallery-pill-back,
.gallery-pill-home {
  background:  rgba(12, 14, 20, 0.52);
}

.gallery-pill-locked {
  opacity: 0.58;
  cursor: default;
  pointer-events: none;
  background: rgba(80, 85, 95, 0.36);
  color: rgba(255,255,255,0.72);
}

.sequence-card {
  border: 2px solid rgba(244,197,66,0.75);
  background:
    linear-gradient(180deg, rgba(244,197,66,0.16), rgba(17,22,28,1));
  box-shadow:
    0 24px 64px rgba(0,0,0,0.38),
    0 0 26px rgba(244,197,66,0.22);
}

.sequence-card:hover {
  border-color: rgba(255,210,90,0.95);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.45),
    0 0 36px rgba(244,197,66,0.34);
}

.sequence-card .subtitle {
  color: #ff4d4d; /* soft red */
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* optional subtle glow */
.sequence-card .subtitle {
  text-shadow: 0 0 10px rgba(255, 60, 60, 0.25);
}

.badge-sequence {
  position: absolute;
  left: -28px;
  top: 32px;
  width: 330px;
  padding: 12px 18px;

  transform: rotate(-18deg);
  transform-origin: center;

  text-align: center;
  line-height: 1.2;
  white-space: normal;

  background: linear-gradient(135deg, #f4c542 0%, #ff9f2f 100%);
  color: #111;
  border: 1px solid rgba(255,230,160,0.9);

  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;

  box-shadow: 0 12px 30px rgba(0,0,0,0.38);
  z-index: 6;

  animation: sequencePulse 2.8s ease-in-out infinite;
}

@keyframes sequencePulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.14);
  }
}

.important-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #ffd7d7;
  font-size: 0.92rem;
  line-height: 1.5;
}

.important-label {
  color: #ff6b6b;
  font-weight: 800;
  margin-right: 6px;
}

.important-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 80, 80, 0.16);
  border: 1px solid rgba(255, 80, 80, 0.45);
  color: #c30010;
  font-weight: 800;
  line-height: 1;
}

.important-text {
  color: #ff2c2c;
}

/* =========================================================
   BEST PICK / FAVOURITES
   ========================================================= */

#best-pick,
#featured {
  padding: 3rem 0;
}

#best-pick .section-head,
#featured .section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

#best-pick .section-head h2,
#featured .section-head h2 {
  margin-bottom: 0.35rem;
}

#best-pick .section-head p,
#featured .section-head p {
  opacity: 0.8;
}

.best-pick-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.best-pick-thumb {
  position: relative;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.best-pick-link {
  position: relative;
  display: block;
  height: 135px;
  overflow: hidden;
  border-radius: 14px;
}

.best-pick-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.best-pick-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: none;
  transition: opacity 0.25s ease;
}

.best-pick-overlay-text {
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 16px;
}

.best-pick-overlay-text strong {
  color: var(--accent);
  font-size: 1.08rem;
}

.best-pick-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.best-pick-thumb:hover img {
  transform: scale(1.05);
}

.best-pick-thumb:hover .best-pick-overlay {
  opacity: 1;
}


/* =========================================================
   UNIVERSAL PAGE SECTION GRADIENTS
   Applies to every gallery/category page
   ========================================================= */

.gallery-page #featured {
  padding-top: 96px;
  padding-bottom: 96px;
  background: linear-gradient(180deg, #777777 0%, #222021 100%);
  border-top: 4px solid #2b2f31;
  border-bottom: 0;
}

.gallery-page #categories {
  padding-top: 96px;
  padding-bottom: 96px;
  background: linear-gradient(180deg, #202020 0%, #777777 100%);
  border-top: 4px solid rgba(255,255,255,0.10);
  border-bottom: 4px solid rgba(255,255,255,0.06);
}

/* deepest gallery pages using categories as the full gallery */
.gallery-page #categories .featured-grid {
  margin-top: 1rem;
}

.quiz-return-btn {
      position: fixed;
      right: 22px;
      top: 92px;
      z-index: 9999;

      padding: 12px 18px;
      border-radius: 999px;

      background: linear-gradient(135deg, #f4c542 0%, #ff9f2f 100%);
      color: #111;

      font-weight: 900;
      text-decoration: none;

      box-shadow:
        0 12px 30px rgba(0,0,0,0.34),
        0 0 24px rgba(244,197,66,0.22);
    }

    .quiz-return-btn.is-hidden {
      display: none;
    }
   