/**
 * TakeAMindBreak.com — Ambient Living Gallery & Cinemagraph FX Styles
 * Zero CSS frameworks · Pure CSS3 with custom properties and glassmorphism.
 */

/* ==========================================================================
   1. GALLERY DIRECTORY STYLES (/galleries)
   ========================================================================== */

.gallery-directory-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  max-width: 840px;
  margin: 0 auto;
}

.gallery-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full, 100px);
  background: rgba(107, 158, 130, 0.15);
  border: 1px solid rgba(107, 158, 130, 0.35);
  color: var(--accent-primary, #6B9E82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gallery-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6B9E82;
  box-shadow: 0 0 10px #6B9E82;
  animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0 3.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg, 16px);
  background: var(--bg-card, #FAF9F5);
  border: 1px solid rgba(107, 158, 130, 0.2);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 29, 23, 0.06);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .gallery-card {
  background: var(--card-dark, #1B2A22);
  border-color: rgba(107, 158, 130, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(107, 158, 130, 0.18);
  border-color: var(--accent-primary, #6B9E82);
}

.gallery-card.current-time-match {
  border: 2px solid var(--accent-secondary, #E2B86B);
  box-shadow: 0 0 0 4px rgba(226, 184, 107, 0.2), 0 16px 36px rgba(18, 29, 23, 0.12);
}

.gallery-card-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #121D17;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 29, 23, 0.1) 0%, rgba(18, 29, 23, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.gallery-badge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.gallery-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full, 100px);
  background: rgba(18, 29, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FAF9F5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-active-pill {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full, 100px);
  background: var(--accent-secondary, #E2B86B);
  color: #121D17;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(226, 184, 107, 0.4);
}

.gallery-card-content {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #1C2D24);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .gallery-card-title {
  color: var(--text-dark, #E0EBE4);
}

.gallery-card-tagline {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted, #6B7C72);
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

[data-theme="dark"] .gallery-card-tagline {
  color: #93A89D;
}

.gallery-card-fx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.fx-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(107, 158, 130, 0.12);
  color: var(--accent-primary, #6B9E82);
  border: 1px solid rgba(107, 158, 130, 0.2);
}

[data-theme="dark"] .fx-tag {
  background: rgba(107, 158, 130, 0.15);
  color: #93D4B0;
  border-color: rgba(107, 158, 130, 0.3);
}

.gallery-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full, 100px);
  background: var(--accent-primary, #6B9E82);
  color: #FAF9F5;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(107, 158, 130, 0.35);
}

.gallery-card-btn:hover {
  background: #55836A;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107, 158, 130, 0.45);
}

/* ==========================================================================
   2. LIVING GALLERY RUNNER STAGE (/gallery/:slug)
   ========================================================================== */

.slideshow-page-wrapper {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* ==========================================================================
   Compact Cinematic Gallery Runner Bar
   ========================================================================== */
.gallery-runner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  margin: 0.65rem 0 0.65rem;
  border-radius: var(--radius-full, 100px);
  background: rgba(107, 158, 130, 0.1);
  border: 1px solid rgba(107, 158, 130, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 100%;
  box-sizing: border-box;
}

[data-theme="dark"] .gallery-runner-bar {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(107, 158, 130, 0.25);
}

.gallery-runner-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

.gallery-runner-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main, #1C2D24);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .gallery-runner-name {
  color: var(--text-dark, #E0EBE4);
}

.gallery-runner-time-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full, 100px);
  background: rgba(226, 184, 107, 0.18);
  border: 1px solid rgba(226, 184, 107, 0.35);
  color: #C49A40;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

[data-theme="dark"] .gallery-runner-time-pill {
  background: rgba(226, 184, 107, 0.12);
  color: #E2B86B;
}


.slideshow-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
}

.slideshow-meta-title-group {
  flex: 1 1 300px;
}

.slideshow-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full, 100px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(107, 158, 130, 0.15);
  border: 1px solid rgba(107, 158, 130, 0.3);
  color: var(--accent-primary, #6B9E82);
  margin-bottom: 0.5rem;
}

.slideshow-stage-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--text-main, #1C2D24);
  line-height: 1.2;
}

[data-theme="dark"] .slideshow-stage-title {
  color: var(--text-dark, #E0EBE4);
}

.slideshow-stage-tagline {
  font-size: 0.96rem;
  color: var(--text-muted, #6B7C72);
  margin-top: 0.35rem;
  max-width: 720px;
}

[data-theme="dark"] .slideshow-stage-tagline {
  color: #93A89D;
}

/* Quick Session Switcher Tabs */
.slideshow-session-tabs {
  display: inline-flex;
  background: rgba(107, 158, 130, 0.1);
  padding: 0.3rem;
  border-radius: var(--radius-full, 100px);
  gap: 0.25rem;
  border: 1px solid rgba(107, 158, 130, 0.2);
}

[data-theme="dark"] .slideshow-session-tabs {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(107, 158, 130, 0.25);
}

.session-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full, 100px);
  border: none;
  background: transparent;
  color: var(--text-muted, #6B7C72);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .session-tab-btn {
  color: #93A89D;
}

.session-tab-btn:hover {
  color: var(--text-main, #1C2D24);
  background: rgba(107, 158, 130, 0.15);
}

[data-theme="dark"] .session-tab-btn:hover {
  color: #FAF9F5;
}

.session-tab-btn.active {
  background: var(--accent-primary, #6B9E82);
  color: #FAF9F5;
  box-shadow: 0 3px 10px rgba(107, 158, 130, 0.35);
}

.session-tab-btn .btn-text-short {
  display: none;
}

/* ==========================================================================
   3. THE MAIN LIVING GALLERY VIEWPORT
   ========================================================================== */

.slideshow-container {
  position: relative;
  width: 100%;
  /* Fill remaining viewport below header (site-header ~65px + runner-bar ~52px + margins ~23px = ~140px) */
  height: calc(100vh - 140px);
  min-height: 420px;
  max-height: calc(100vh - 120px);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: #0D1611;
  box-shadow: 0 20px 50px rgba(18, 29, 23, 0.18), 0 0 0 1px rgba(107, 158, 130, 0.25);
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base Slide Layer & Ken Burns Animation */
.slideshow-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.slide-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.slide-layer.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-layer.outgoing {
  opacity: 0;
  visibility: visible;
  z-index: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  will-change: transform;
}

/* Ken Burns Subtle Gentle Drift */
.slide-layer.active .slide-image {
  animation: kenBurnsZoom 16s ease-in-out infinite alternate;
}

@keyframes kenBurnsZoom {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.05) translate(-0.8%, -0.5%);
  }
}

/* Dynamic Wind Canvas & Cinemagraph FX Canvas (Immutable Z-Index: 2, pointer-events: none) */
#slideshowFxCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Volumetric God Rays Blend Overlay */
.volumetric-rays-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: color-dodge;
  opacity: 0.35;
  background: radial-gradient(circle at 75% 20%, rgba(255, 235, 175, 0.85) 0%, rgba(226, 184, 107, 0.25) 40%, transparent 75%);
  transition: opacity 2s ease, transform 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation: breatheRays 8s ease-in-out infinite;
}

@keyframes breatheRays {
  0%, 100% {
    opacity: 0.28;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.03);
  }
}

/* Horizontal Atmospheric Mist Fog */
.cinemagraph-mist-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(238, 244, 240, 0.25) 60%, rgba(238, 244, 240, 0.45) 100%);
  filter: blur(20px);
  mix-blend-mode: screen;
  opacity: 0.4;
  animation: mistDrift 14s ease-in-out infinite alternate;
}

@keyframes mistDrift {
  0% { transform: translateX(-3%) scaleY(0.95); opacity: 0.3; }
  100% { transform: translateX(3%) scaleY(1.05); opacity: 0.5; }
}

/* ==========================================================================
   4. FLOATING GLASS CONTROLS & HUD (Z-Index: 20)
   ========================================================================== */

/* Top HUD: Current Slide Info Badge & Status */
.slideshow-hud-top {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.slide-caption-badge {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-lg, 16px);
  background: rgba(18, 29, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #FAF9F5;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 420px;
}

.slide-caption-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.slide-caption-subtitle {
  font-size: 0.8rem;
  color: rgba(250, 249, 245, 0.75);
  margin-top: 0.15rem;
}

/* Floating Action Dock (Top Right) */
.slideshow-hud-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.glass-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 42px;
  padding: 0 0.95rem;
  border-radius: var(--radius-full, 100px);
  background: rgba(18, 29, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FAF9F5;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.glass-action-btn:hover {
  background: rgba(107, 158, 130, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(107, 158, 130, 0.4);
}

.glass-action-btn.active {
  background: var(--accent-secondary, #E2B86B);
  color: #121D17;
  border-color: #E2B86B;
}

.glass-icon-only {
  width: 42px;
  padding: 0;
}

/* Navigation Arrow Paddles */
.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 29, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FAF9F5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  opacity: 0.75;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.slide-nav-btn svg {
  pointer-events: none;
  transition: transform 0.2s ease;
}

.slide-nav-btn:hover {
  opacity: 1;
  background: rgba(107, 158, 130, 0.9);
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.slide-nav-btn:active,
.slide-nav-btn.is-squished {
  opacity: 1;
  background: rgba(107, 158, 130, 0.95);
  transform: translateY(-50%) scale(0.92) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.08s ease !important;
}

.slide-nav-prev {
  left: 1.25rem;
}

.slide-nav-next {
  right: 1.25rem;
}

/* Bottom Progress Bar & Slide Dots */
.slideshow-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(18, 29, 23, 0.75) 0%, transparent 100%);
}

/* Continuous Slide Auto-Advance Progress Line */
.slide-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.slide-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-secondary, #E2B86B);
  box-shadow: 0 0 8px var(--accent-secondary, #E2B86B);
  transition: width 0.1s linear;
}

/* Dots and Play/Pause Controller row */
.slideshow-bottom-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slideshow-dots-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.25);
}

.slide-dot.active {
  width: 28px;
  border-radius: var(--radius-full, 100px);
  background: var(--accent-primary, #6B9E82);
  box-shadow: 0 0 10px rgba(107, 158, 130, 0.6);
}

.slideshow-pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full, 100px);
  background: rgba(18, 29, 23, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FAF9F5;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slideshow-pause-btn:hover {
  background: rgba(107, 158, 130, 0.8);
}

.slideshow-bottom-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.slideshow-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full, 100px);
  background: rgba(18, 29, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 184, 107, 0.45);
  color: var(--accent-secondary, #E2B86B);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.slideshow-countdown-badge svg {
  color: var(--accent-secondary, #E2B86B);
}

/* ==========================================================================
   5. FULLSCREEN / FOCUS MODE
   ========================================================================== */

:fullscreen .slideshow-container,
.slideshow-container:fullscreen,
.slideshow-container.fullscreen-simulated {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
  z-index: 99999 !important;
  box-shadow: none !important;
}

:fullscreen .slide-caption-badge,
.slideshow-container.fullscreen-simulated .slide-caption-badge {
  background: rgba(18, 29, 23, 0.55);
}

/* Auto-hide controls in focus mode when idle — keep nav buttons gently visible */
.slideshow-container.cursor-idle .slideshow-hud-top,
.slideshow-container.cursor-idle .slideshow-bottom-bar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.slideshow-container.cursor-idle .slide-nav-btn {
  opacity: 0.55;
  pointer-events: auto;
  transition: opacity 0.6s ease;
}

.slideshow-container.cursor-idle .slide-nav-btn:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .slideshow-container .slide-nav-btn,
  .slideshow-container.cursor-idle .slide-nav-btn {
    opacity: 0.85 !important;
    pointer-events: auto !important;
  }
}

/* ==========================================================================
   6. SCIENCE & RELAXATION INFO CALLOUT
   ========================================================================== */

.slideshow-science-card {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--bg-card, #FAF9F5);
  border: 1px solid rgba(107, 158, 130, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[data-theme="dark"] .slideshow-science-card {
  background: var(--card-dark, #1B2A22);
  border-color: rgba(107, 158, 130, 0.25);
}

.slideshow-science-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main, #1C2D24);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .slideshow-science-title {
  color: var(--text-dark, #E0EBE4);
}

.slideshow-science-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted, #6B7C72);
}

[data-theme="dark"] .slideshow-science-desc {
  color: #93A89D;
}

/* ==========================================================================
   7. RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 768px) {
  .slideshow-container {
    height: calc(100vh - 150px);
    min-height: 360px;
  }

  .gallery-runner-bar {
    border-radius: var(--radius-lg, 16px);
    padding: 0.45rem 0.65rem;
    margin: 0.35rem 0 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .gallery-runner-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .gallery-runner-name {
    font-size: 0.82rem;
  }

  .slideshow-session-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 0.25rem;
    box-sizing: border-box;
    gap: 0.25rem;
  }

  .slideshow-session-tabs::-webkit-scrollbar {
    display: none;
  }

  .session-tab-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.35rem 0.45rem;
    font-size: 0.74rem;
    white-space: nowrap;
    gap: 0.25rem;
  }

  .session-tab-btn .btn-text-full {
    display: none;
  }

  .session-tab-btn .btn-text-short {
    display: inline;
  }

  .slideshow-hud-top {
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
  }

  .slide-caption-badge {
    padding: 0.5rem 0.85rem;
    max-width: 220px;
  }

  .slide-caption-title {
    font-size: 0.9rem;
  }

  .slide-caption-subtitle {
    font-size: 0.72rem;
  }

  .glass-action-btn span.btn-text-full {
    display: none;
  }

  .slide-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    z-index: 35;
  }

  .slide-nav-prev { left: 0.5rem; }
  .slide-nav-next { right: 0.5rem; }
}
