:root {
  --slide-bg: #0e1512;
  --slide-panel: #16201c;
  --slide-line: #2c3a34;
  --slide-text: #eef3f1;
  --slide-muted: #9fb1aa;
  --slide-accent: #4f9d86;
}

.slides-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--slide-bg);
  color: var(--slide-text);
  font-family: inherit;
}

.slides-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(14px, 4vw, 32px);
  border-bottom: 1px solid var(--slide-line);
}

.slides-topbar a {
  color: var(--slide-muted);
  text-decoration: none;
  font-weight: 600;
}

.slides-topbar a:hover {
  color: var(--slide-text);
}

.slides-title {
  flex: 1 1 240px;
  min-width: 0;
}

.slides-title .eyebrow {
  margin: 0;
  color: var(--slide-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slides-title h1 {
  margin: 2px 0 0;
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slides-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.slides-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--slide-panel);
  color: var(--slide-text);
  border: 1px solid var(--slide-line);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.slides-btn:hover:not(:disabled) {
  border-color: var(--slide-accent);
}

.slides-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slides-menu {
  position: relative;
}

.slides-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 240px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--slide-panel);
  border: 1px solid var(--slide-line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.slides-menu-list[hidden] {
  display: none;
}

.slides-menu-head {
  padding: 6px 10px;
  color: var(--slide-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slides-menu-list a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--slide-text);
  text-decoration: none;
  font-weight: 600;
}

.slides-menu-list a:hover {
  background: rgba(79, 157, 134, 0.16);
  color: var(--slide-text);
}

.slides-stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.5vw, 28px);
  overflow: hidden;
}

.slides-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.slides-figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #fff;
}

/* Click/tap zones for previous / next */
.slides-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32%;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.slides-nav-zone.prev { left: 0; }
.slides-nav-zone.next { right: 0; }
.slides-nav-zone:disabled { cursor: default; }

.slides-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(22, 32, 28, 0.7);
  border: 1px solid var(--slide-line);
  border-radius: 50%;
  color: var(--slide-text);
  font-size: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.slides-nav-zone:hover:not(:disabled) .slides-arrow { opacity: 1; }
.slides-arrow.prev { left: 14px; }
.slides-arrow.next { right: 14px; }

.slides-bottombar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(14px, 4vw, 32px);
  border-top: 1px solid var(--slide-line);
}

.slides-counter {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--slide-muted);
}

.slides-counter strong {
  color: var(--slide-text);
}

.slides-hint {
  color: var(--slide-muted);
  font-size: 13px;
}

.slides-message {
  max-width: 540px;
  margin: auto;
  padding: 28px;
  text-align: center;
  color: var(--slide-muted);
}

.slides-message strong {
  display: block;
  margin-bottom: 8px;
  color: var(--slide-text);
  font-size: 18px;
}

@media (max-width: 620px) {
  .slides-hint { display: none; }
  .slides-title h1 { white-space: normal; }
}

/* In fullscreen the bars stay; the stage simply grows to fill. */
.slides-page:fullscreen {
  background: var(--slide-bg);
}
