/* © QuantaLumin 2026 */

body.ql-slideshow-open {
  overflow: hidden;
}

.ql-slideshow-actions {
  margin-top: 1rem;
}

.ql-slideshow[hidden] {
  display: none !important;
}

.ql-slideshow {
  position: fixed;
  inset: 0;
  z-index: 12120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ql-slideshow__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 19, 0.7);
  backdrop-filter: blur(5px);
}

.ql-slideshow__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  height: min(88vh, 900px);
  box-sizing: border-box;
  background: rgba(16, 22, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.ql-slideshow__toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
}

.ql-slideshow__counter {
  color: #f4f8ff;
  margin: 0 auto 0 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ql-slideshow__viewport {
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.ql-slide {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(1rem, 2.1vw, 2rem);
  box-sizing: border-box;
  display: none;
}

.ql-slide.is-active {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  justify-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.ql-slide--title.is-active {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.ql-slide__headings {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  width: min(100%, 78ch);
  margin-inline: auto;
}

.ql-slide__h {
  margin: 0;
  color: #f8fbff;
  line-height: 1.2;
  font-weight: 700;
  width: 100%;
  text-align: center !important;
  margin-inline: auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.ql-slide__h1 {
  font-size: clamp(1.65rem, 2.6vw, 2.55rem);
}

.ql-slide__h2 {
  font-size: clamp(1.3rem, 2.1vw, 2rem);
}

.ql-slide__h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.ql-slide__h4,
.ql-slide__h5,
.ql-slide__h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.ql-slide__figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.ql-slide__figures figure {
  margin: 0;
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.ql-slide__figures img,
.ql-slide__figures svg,
.ql-slide__figures video,
.ql-slide__figures iframe {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56vh;
  object-fit: contain;
}

.ql-slide__figures a {
  pointer-events: none;
  cursor: default;
}

@media (max-width: 820px) {
  .ql-slideshow {
    padding: 0.55rem;
  }

  .ql-slideshow__panel {
    width: 100%;
    height: 92vh;
  }

  .ql-slideshow__toolbar {
    flex-wrap: wrap;
  }
}
