/* ===== TWO-COLUMN CONTENT COMPONENT ===== */
/* Balanced two-column layout for text content */

.two-column-content {
  column-count: 2;
  column-gap: 2rem;
  column-fill: balance;
  max-width: none;
}

/* .two-column-content.text {
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--background);
  border: var(--border-size) solid var(--border);
} */

/* Allow paragraphs to break across columns for balanced flow */
.two-column-content p {
  break-inside: auto;
}

/* Prevent headings from being orphaned at column bottom */
.two-column-content h1,
.two-column-content h2,
.two-column-content h3 {
  break-after: avoid;
  margin-bottom: 0.6rem;
}

/* Prevent figures (image + caption) from splitting across columns */
.two-column-content figure {
  break-inside: avoid;
}

/* Prevent gallery (slideshow + nav bar) from splitting across columns */
.two-column-content .gallery {
  break-inside: avoid;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .two-column-content {
    column-count: 1;
  }
}
