/* Responsive tweaks */
.reveal {
  font-size: clamp(18px, 1.4vw + 0.2rem, 34px);
}
@media (max-width: 767px) {
  .reveal .slides {
    padding: 1rem 0.5rem;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .reveal .slides {
    padding: 1.5rem 1rem;
  }
}
@media (min-width: 1200px) {
  .reveal .slides { padding: 1rem 1.5rem; }
}
.reveal section img,
.reveal section video,
.reveal section iframe {
  max-width: 100%;
  height: auto;
}

/* ---------- Phone-specific layout ---------- */
.phone .reveal          { font-size: 20px; line-height: 1.35; }
.phone .reveal .slides  { padding: 1rem .5rem; }

/* columns -> vertical stack */
.phone .columns         { flex-direction: column; gap: 1rem; }

/* flexible media */
.phone .reveal img,
.phone .reveal video,
.phone .reveal iframe   { width: 100%; height: auto; }

/* bigger touch targets for controls */
.phone .reveal .controls button {
  width: 44px;
  height: 44px;
}

/* hide progress bar on phone */
.phone .reveal .progress { display: none; }

/* helper: phone-only class */
.phone-only        { display: none; }
.phone .phone-only { display: block; }


@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}


/* === Typography overhaul (added by assistant) === */
:root{
  --base-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, "Helvetica Neue", sans-serif;
  --heading-weight: 800;
  --text-weight: 500;
  --text-size: 22px;
  --heading-size: 64px;
  --muted: #e6e6e6;
}

.reveal, .reveal section, .reveal p, .reveal li {
  font-family: var(--base-font);
  font-weight: var(--text-weight);
  font-size: var(--text-size);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--base-font);
  font-weight: var(--heading-weight);
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin-bottom: 0.4em;
}

.reveal h1 { font-size: var(--heading-size); }
.reveal h2 { font-size: calc(var(--heading-size) * 0.78); }
.reveal h3 { font-size: calc(var(--heading-size) * 0.62); }

/* Подпись на титульном слайде — аккуратно внизу слева */

/* === End typography block === */


.slide-content {
  text-align: center;
}

.slide-credit {
  position: absolute;
  bottom: 25px;
  left: 30px;
  font-size: 18px;
  color: #ccc;
  font-weight: 400;
  text-align: left;
  opacity: 0.85;
}


/* --- Title slide positioning fix --- */
.reveal .slides section.title-slide {
  position: relative !important;
  height: 100% !important;
  min-height: 100% !important;
}
.reveal .slides section.title-slide .slide-credit{
  position: absolute !important;
  left: 32px !important;
  bottom: 28px !important;
  font-size: 18px;
  color: #cfcfcf;
  font-weight: 400;
  text-align: left;
  opacity: 0.9;
  pointer-events: none;
  z-index: 3;
}
/* --- end --- */


/* Title hero */
.title-hero-wrap {display:flex;justify-content:center;align-items:center;margin-top:18px}
.title-hero {max-width:72%;height:auto;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.35)}

/* Video embed */
.video-frame {display:flex;justify-content:center;align-items:center;margin:12px 0 18px}
.video-embed {max-width:78%;height:auto;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.35)}


.author-credit {
  margin-top: 12px;
  font-size: 18px;
  font-style: italic;
  color: #bbb;
  text-align: center;
}


/* Ensure video scales nicely and is clickable if needed */
.video-frame{display:flex;justify-content:center;align-items:center;margin:12px 0 18px}
.video-embed{max-width:90%;height:auto;display:block;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.35)}


/* === Responsive typography (assistant) === */
:root{
  --fs-1: clamp(1.6rem, 6vw, 3.2rem); /* h1 */
  --fs-2: clamp(1.4rem, 5.2vw, 2.4rem); /* h2 */
  --fs-3: clamp(1.2rem, 4.6vw, 1.8rem); /* h3 */
  --fs-t: clamp(1rem, 4vw, 1.25rem);    /* text */
}

.reveal h1{ font-size: var(--fs-1); line-height:1.15; }
.reveal h2{ font-size: var(--fs-2); line-height:1.2; }
.reveal h3{ font-size: var(--fs-3); line-height:1.25; }
.reveal p, .reveal li, .reveal label, .reveal input, .reveal button{ font-size: var(--fs-t); line-height:1.5; }

.reveal section{ padding: clamp(8px, 3vw, 24px); }

.reveal video, .reveal img{ max-width: 100% !important; height: auto !important; border-radius: 8px; }

@media (max-width: 640px){
  .reveal .controls{ transform: scale(.9); }
  .reveal .progress{ height: 4px; }
}

/* Avoid overflow in columns/grids */
.reveal .grid, .reveal .row, .reveal .columns{
  gap: clamp(8px, 2.5vw, 18px);
  align-items: start;
}


/* === Generator layout & tap safety (assistant) === */
section.generator{ position: relative; z-index: 3; }
section.generator .genbar{
  display: flex; gap: 12px; align-items: center;
  margin: 8px 0 14px;
}
section.generator #promptInput{
  flex: 1 1 auto; min-width: 0;
  padding: 10px 12px; border-radius: 10px; border: 1px solid #444;
  background: #111; color: #f4f4f4;
}
section.generator [data-gen]{
  flex: 0 0 auto;
  padding: 10px 14px; height: auto; min-width: 44px;
  border-radius: 10px; border: 1px solid #444; background: #1e1e1e; color: #fff;
}
section.generator [data-gen]:active{ transform: translateY(1px); }
@media (max-width: 640px){
  section.generator .genbar{ gap: 10px; }
  section.generator #promptInput{ padding: 10px; }
}

/* Ensure Reveal controls don't overlap the generator */
.reveal .controls{ z-index: 2; }


/* === tap/click safety overlays (assistant) === */
section.generator{ position: relative; z-index: 10; }
section.generator, section.generator *{ pointer-events: auto; }

/* Any decorative overlays must not block input */
.sparkle, .slide-credit, .hero-overlay, .cover, .overlay { pointer-events: none !important; }

/* Ensure base slide area accepts events */
.reveal .slides, .reveal section { pointer-events: auto; }


/* === form interaction hardening (assistant v2) === */
section.generator{ position: relative; z-index: 99; }
section.generator .genbar{ display:flex; gap:12px; align-items:center; }
#promptInput, [data-gen]{ pointer-events:auto; -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }
.reveal .slides{ pointer-events:auto; }

@keyframes spin{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }



#ah-controls{
  position: fixed;
  right: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 9999;
  background: rgba(20,20,20,0.65);
  backdrop-filter: blur(6px);
  border: 1px solid #2b2b2b;
  padding: 8px 10px;
  border-radius: 14px;
}
#ah-controls .ah-btn,
#ah-controls .ah-group{
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #eee;
}
#ah-controls .ah-btn{
  appearance: none;
  border: 1px solid #3a3a3a;
  background: #141414;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: none;
}
#ah-controls .ah-btn:hover{ background: #1d1d1d; }
#ah-controls .ah-group{
  display: inline-flex; gap: 6px; align-items: center;
  border: 1px solid #3a3a3a; background:#141414; border-radius:10px; padding:6px 8px;
}
#ah-controls input[type="checkbox"]{ width: 18px; height: 18px; }
@media (max-width: 640px){
  #ah-controls{ right: 10px; top: 10px; padding: 6px 8px; gap:6px; }
  #ah-controls .ah-btn{ padding: 6px 8px; }
  #ah-controls .ah-group{ padding: 5px 7px; }
}


/* === Presentation Controls v2 (assistant) === */
#ah-controls{
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  z-index: 9999;
  background: rgba(20,20,20,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid #2b2b2b;
  padding: 10px;
  border-radius: 14px;
  max-height: calc(100vh - 24px);
  overflow: hidden;
}
#ah-controls .ah-btn,
#ah-controls .ah-group{
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #eee;
}
#ah-controls .ah-btn{
  appearance: none;
  border: 1px solid #3a3a3a;
  background: #141414;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
#ah-controls .ah-btn:hover{ background: #1d1d1d; }
#ah-controls .ah-group{
  display: inline-flex; gap: 6px; align-items: center;
  border: 1px solid #3a3a3a; background:#141414; border-radius:10px; padding:6px 8px;
}
#ah-controls .ah-group.speed{
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
#ah-speed{ writing-mode: bt-lr; -webkit-appearance: ; height: 140px; }
#ah-speed-label{ font-size: 12px; color: #ccc; }

/* Hover/auto-hide on desktop to reduce overlap */
@media (hover:hover){
  #ah-controls{ opacity: 0.85; transition: opacity .15s ease; }
  #ah-controls:hover{ opacity: 1; }
}

/* Mobile portrait: move to bottom center horizontally */
@media (max-width: 800px) and (orientation: portrait){
  #ah-controls{
    top: auto; bottom: 10px; right: 50%; left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 8px;
    gap: 8px;
  }
  #ah-controls .ah-group.speed{ display: none; } /* спрячем слайдер скорости на узких портретных экранах */
}

/* Mobile landscape: minimize to a small pill to not cover content */
@media (max-height: 460px) and (orientation: landscape){
  #ah-controls{
    right: 10px; top: 10px; transform: none;
    flex-direction: row; gap: 6px; padding: 6px 8px;
  }
  #ah-controls .ah-group.speed{ display: none; }
}


/* === Presentation Controls (assistant v2) === */
#ah-controls{
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  z-index: 9999;
  background: rgba(20,20,20,0.65);
  backdrop-filter: blur(6px);
  border: 1px solid #2b2b2b;
  padding: 10px;
  border-radius: 14px;
}
#ah-controls .ah-btn,
#ah-controls .ah-group{
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #eee;
}
#ah-controls .ah-btn{
  appearance: none;
  border: 1px solid #3a3a3a;
  background: #141414;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
#ah-controls .ah-btn:hover{ background: #1d1d1d; }
#ah-controls .ah-group{
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  border: 1px solid #3a33a; background:#141414; border-radius:10px; padding:8px;
}
#ah-controls .ah-speed span{ font-weight:600; font-size:12px; color:#bbb; }
#ah-speed-val{ font-size:12px; color:#aaa; }
/* Vertical slider */

/* Mobile placement: bottom center */
#ah-controls.mobile{
  top: auto; bottom: 10px; left: 50%; right: auto;
  transform: translateX(-50%);
  flex-direction: row;
  gap: 8px;
}
/* Mobile landscape: compact — hide speed */


/* vertical speed slider (standards-compliant) */

.vertical-range::-webkit-slider-thumb{ appearance: none; width:18px; height:18px; border-radius:50%; background:#ddd; border:1px solid #666; }
.vertical-range::-webkit-slider-runnable-track{ width: 6px; background:#555; border-radius: 6px; }
.vertical-range::-moz-range-thumb{ width:18px; height:18px; border-radius:50%; background:#ddd; border:1px solid #666; }
.vertical-range::-moz-range-track{ width:6px; background:#555; border-radius:6px; }


/* vertical speed slider (standards-based) */

.vertical-range::-webkit-slider-thumb{ appearance: none; width:18px; height:18px; border-radius:50%; background:#ddd; border:1px solid #666; }
.vertical-range::-webkit-slider-runnable-track{ width: 6px; background:#555; border-radius: 6px; }
.vertical-range::-moz-range-thumb{ width:18px; height:18px; border-radius:50%; background:#ddd; border:1px solid #666; }
.vertical-range::-moz-range-track{ width:6px; background:#555; border-radius:6px; }

@media (max-width: 900px) and (orientation: landscape){
  #ah-controls.mobile.landscape .ah-speed{ display:none !important; }
  #ah-controls.mobile.landscape .ah-btn{ padding:6px 8px; font-size:13px; }
  #ah-controls{ gap:8px; }
}

.vertical-range{
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 16px; height: 120px;
}
.vertical-range::-webkit-slider-thumb{ appearance:none; width:18px; height:18px; border-radius:50%; background:#ddd; border:1px solid #666; }
.vertical-range::-webkit-slider-runnable-track{ width:6px; background:#555; border-radius:6px; }
.vertical-range::-moz-range-thumb{ width:18px; height:18px; border-radius:50%; background:#ddd; border:1px solid #666; }
.vertical-range::-moz-range-track{ width:6px; background:#555; border-radius:6px; }

section.generator, section.generator * { pointer-events: auto; }
.sparkle, .slide-credit, .hero-overlay, .overlay, .cover { pointer-events: none !important; }

@media (max-width: 900px) and (orientation: landscape){
  #ah-controls.mobile.landscape .ah-speed{ display:none !important; }
  #ah-controls.mobile.landscape .ah-btn{ padding:6px 8px; font-size:13px; }
  #ah-controls{ gap:8px; }
}

.vertical-range{
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 16px; height: 120px;
}
.vertical-range::-webkit-slider-thumb{ appearance:none; width:18px; height:18px; border-radius:50%; background:#ddd; border:1px solid #666; }
.vertical-range::-webkit-slider-runnable-track{ width:6px; background:#555; border-radius:6px; }
.vertical-range::-moz-range-thumb{ width:18px; height:18px; border-radius:50%; background:#ddd; border:1px solid #666; }
.vertical-range::-moz-range-track{ width:6px; background:#555; border-radius:6px; }

#ah-start{ white-space: nowrap; }


/* Responsive typography */
.reveal h1 { font-size: clamp(1.6rem, 4.8vw + .4rem, 3.6rem); line-height: 1.1; }
.reveal h2 { font-size: clamp(1.4rem, 3.8vw + .4rem, 2.6rem); line-height: 1.15; }
.reveal p, .reveal li { font-size: clamp(1rem, 2.4vw + .2rem, 1.25rem); line-height: 1.45; }

/* Video block fit */
.reveal section video { width: 100%; max-height: 70vh; height: auto; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Mobile: bottom bar, only Blog/Start + arrows */
@media (max-width: 768px){
  #ah-controls { position: fixed; left: 50%; right: auto; top: auto; bottom: 10px; transform: translateX(-50%);
                 flex-direction: row; gap: 8px; padding: 6px 8px; }
  #ah-controls .ah-btn { padding: 6px 8px; font-size: 13px; }
  #ah-controls .ah-speed, #ah-play, #ah-fs, #ah-sound { display: none !important; }
  /* keep Blog, Start, Prev, Next visible */
  #ah-home, #ah-start, #ah-prev, #ah-next { display: inline-flex !important; }
  .reveal .slides { padding-bottom: 56px; } /* avoid overlap with bottom bar */
}

/* Tiny screens: even more compact */
@media (max-width: 360px){
  #ah-controls .ah-btn { padding: 5px 6px; font-size: 12px; }
}

/* Mobile minimal bar: Blog/Start/Prev/Next + Sound */
@media (max-width: 768px){
  #ah-controls { position: fixed; left: 50%; right: auto; top: auto; bottom: 10px; transform: translateX(-50%);
                 flex-direction: row; gap: 8px; padding: 6px 8px; }
  #ah-controls .ah-btn { padding: 6px 8px; font-size: 13px; }
  #ah-controls .ah-speed, #ah-play, #ah-fs { display: none !important; } /* hide speed & play/fs */
  #ah-sound, #ah-home, #ah-start, #ah-prev, #ah-next { display: inline-flex !important; }
  .reveal .slides { padding-bottom: 56px; }
}


/* ensure inputs receive events; decorative overlays do not */
#promptInput { pointer-events: auto; -webkit-user-select: text; user-select: text; }
section.generator, section.generator * { pointer-events: auto; }
.sparkle, .slide-credit, .hero-overlay, .overlay, .cover { pointer-events: none !important; }


/* ensure prompt field is always interactive and above decorative layers */
#promptInput { pointer-events: auto; -webkit-user-select: text; user-select: text; position: relative; z-index: 15; }
section.generator, section.generator * { pointer-events: auto; }
.sparkle, .slide-credit, .hero-overlay, .overlay, .cover { pointer-events: none !important; }


/* prompt input must always accept typing/taps */
#promptInput{
  pointer-events: auto;
  -webkit-user-select: text; user-select: text;
  touch-action: manipulation;
  position: relative; z-index: 20;
}
/* any visual overlays should not intercept input */
.sparkle, .slide-credit, .hero-overlay, .overlay, .cover { pointer-events: none !important; }
section.generator, section.generator * { pointer-events: auto; }


/* when typing, fully disable slide swipe so focus не отбирается */
html.ah-typing .reveal .slides { touch-action: none !important; }
#promptInput{ pointer-events:auto; position:relative; z-index:30; -webkit-user-select:text; user-select:text; }


/* Hide Reveal built-in arrow controls (bottom-right) */
.reveal .controls { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }


/* Input area must not be stolen by swipe; disable gestures inside generator block */
#promptInput { pointer-events: auto; position: relative; z-index: 40; -webkit-user-select: text; user-select: text; touch-action: none; }
section.generator, section.generator * { pointer-events: auto; }
section.generator { touch-action: none; } /* no swipe inside generator */
.sparkle, .slide-credit, .hero-overlay, .overlay, .cover { pointer-events: none !important; }


/* AH:controls-clickability */
#ah-controls{ pointer-events:none; z-index:1200; position:fixed; }
#ah-controls .ah-btn{ pointer-events:auto; }

/* AH:generator-safety */
section.generator, section.generator *{ pointer-events:auto; }
#promptInput{ pointer-events:auto; position:relative; z-index:2001; -webkit-user-select:text; user-select:text; touch-action: manipulation; }

/* AH:hide reveal default arrows */
.reveal .controls{ display:none !important; visibility:hidden !important; opacity:0 !important; pointer-events:none !important; }

/* AH:mobile typography */
@media (max-width: 480px){
  .reveal section h1 { font-size: 1.6rem !important; line-height: 1.2; }
  .reveal section h2 { font-size: 1.35rem !important; line-height: 1.25; }
  .reveal section p, .reveal section li { font-size: 1rem !important; line-height: 1.35; }
}


/* === AH DE HOTFIX (scoped) === */
[lang="de"] section.generator .overlay,
[lang="de"] section.generator .cover,
[lang="de"] section.generator .hero-overlay,
[lang="de"] section.generator .sparkle,
[lang="de"] section.generator .slide-credit { 
  display: none !important;
}
[lang="de"] #promptInput {
  position: relative;
  z-index: 3000;
  pointer-events: auto;
  -webkit-user-select: text; user-select: text;
  touch-action: manipulation;
}
[lang="de"] section.generator,
[lang="de"] section.generator * { pointer-events: auto; }


/* --- Mobile slide safe gutters (v5) --- */
@media (max-width: 700px){
  .reveal .slides { padding: 0 18px !important; }
  .reveal section { padding-left: 6px; padding-right: 6px; }
  .reveal ul, .reveal ol { padding-left: 1.1em; margin-left: 0; }
  .reveal p, .reveal li { line-height: 1.45; }
  .reveal h1, .reveal h2, .reveal h3 { line-height: 1.2; }
  /* Avoid accidental clipping due to overflow hidden on nested wrappers */
  .reveal .slides, .reveal section { overflow: visible !important; }
}

/* --- Mobile fit hardening (added) --- */
.reveal img, .reveal video, .reveal iframe {
  max-width: 100%;
  height: auto;
}
/* Scale all typography via --txt-scale; ensure it is applied everywhere */
:root { --txt-scale: 1; }
.reveal h1 { font-size: calc(var(--fs-h1, 2.2rem) * var(--txt-scale)); }
.reveal h2 { font-size: calc(var(--fs-h2, 1.8rem) * var(--txt-scale)); }
.reveal p, .reveal li { font-size: calc(var(--fs-body, 1rem) * var(--txt-scale)); }
.reveal small, .reveal .small { font-size: calc(var(--fs-small, 0.875rem) * var(--txt-scale)); }
/* Avoid accidental fixed heights on slide sections */
.reveal .slides section { height: auto !important; }


/* === v21: landscape protections for generator === */
@media (orientation: landscape){
  section.generator{ position:relative !important; z-index:2147482000 !important; }
  .generator .genbar,
  .generator #promptInput,
  .generator #generateBtn{ position:relative !important; z-index:2147483002 !important; pointer-events:auto !important; }
  .vb-backdrop{ display:none !important; pointer-events:none !important; }
}


/* v23: allow typing on mobile */
.reveal .slides input,
.reveal .slides textarea,
.reveal .slides [contenteditable="true"]{
  touch-action: auto !important;
  -ms-touch-action: auto !important;
  pointer-events: auto !important;
}

/* === strong re-centering for prompt row === */
/* Target a wide net of possible wrappers to avoid theme overrides */
.reveal .slides section .genbar,
section.generator .genbar,
section .genbar,
.genbar {
  width: min(940px, 92vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: .6rem !important;
  text-align: center !important;
}
/* Inputs inside the bar */
.reveal .slides section .genbar input[type="text"],
section.generator .genbar input[type="text"],
section .genbar input[type="text"],
.genbar input[type="text"],
#promptInput {
  flex: 1 1 480px !important;
  width: min(760px, 92vw) !important;
  max-width: min(760px, 92vw) !important;
  margin: 0 auto !important;
}

@media (max-width: 640px) {
  .reveal .slides section .genbar,
  section.generator .genbar,
  section .genbar,
  .genbar {
    width: min(960px, 96vw) !important;
    grid-template-columns: 1fr !important; /* even if some theme sets grid earlier */
  }
  .reveal .slides section .genbar button,
  section.generator .genbar button,
  section .genbar button,
  .genbar button {
    justify-self: center !important;
  }
}

/* === unified play-pause icon === */
.reveal .controls .playback button{
  background: no-repeat center/64% url("/assets/icons/playpause.svg") !important;
}
.reveal .controls .playback button::after{ content:"" !important; }

.ah-ctrls button.btn.play{ position:relative !important; }
.ah-ctrls button.btn.play::before{
  content:"" !important;
  position:absolute !important;
  inset: 0 !important;
  margin:auto !important;
  width: 22px !important;
  height: 22px !important;
  background: center/contain no-repeat url("/assets/icons/playpause.svg") !important;
  pointer-events:none !important;
}



/* Fit content on desktop (avoid bottom cut) */
@media (min-width: 768px){
  .reveal .slides{ padding-top: 1rem; padding-bottom: 1rem; }
  .reveal section img, .reveal section video, .reveal section iframe{ max-height: calc(100vh - 220px); object-fit: contain; }
}


/* === Two-column media layout (autoscaled) === */
.two-col {
  display: flex;
  gap: clamp(18px, 2.5vw, 44px);
  align-items: center;
  justify-content: center;
}
.two-col .image-col { flex: 1.25; min-width: 0; }
.two-col .text-col  { flex: 0.85; min-width: 0; }
/* Keep media from stealing all vertical space (prevents bottom cropping) */
.video-frame, .two-col .image-col img {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}
.video-frame {
  aspect-ratio: 16 / 9;
  max-height: 58vh;
}
.video-embed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Images inside slides */
.reveal section img {
  max-height: 62vh;
  width: auto;
}
/* In case list is long, tighten spacing slightly */
.reveal section ul { margin-top: .4rem; }
.reveal section li { margin: .25rem 0; }

/* Stack columns on smaller screens */
@media (max-width: 980px) {
  .two-col { flex-direction: column; align-items: stretch; }
  .video-frame { max-height: 42vh; }
  .reveal section img { max-height: 45vh; width: 100%; }
}


/* --- 20260103.7 Fit & Center Fixes --- */
.reveal section { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.reveal h2 { margin: 0 0 0.5rem 0; }
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  align-items: center;
}
.video-frame { margin: 0; }
.video-embed {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
}
.image-col { min-width: 0; }
.text-col { min-width: 0; }
.reveal .slides { height: 100%; }
