/* Curiosity Clinic documentation — typography and image-lightbox styling. */

article {
  font-size: 1.0625rem;
  line-height: 1.75;
}

article h1 {
  font-size: 2.4rem;
}

article h2 {
  font-size: 1.85rem;
  margin-top: 3em;
}

article h3 {
  font-size: 1.4rem;
  margin-top: 2.5em;
}

article table {
  font-size: 1rem;
}

/* A clear break between an image/caption block and the heading that follows it,
   so sections read as distinct rather than running together. */
article img {
  margin-top: 0.5em;
  margin-bottom: 0.75em;
  cursor: zoom-in;
}

article img + p em,
article img + em {
  display: block;
  margin-bottom: 2em;
}

/* Fullscreen image lightbox (see lightbox.js) */
.cc-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 2rem;
  box-sizing: border-box;
}

.cc-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  cursor: zoom-out;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.cc-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.cc-lightbox-close:hover {
  opacity: 1;
}
