/* ═══════════════════════════════════════════════════════════════
   columns.css — Layout columnas scroll continuo (artpartner)
   ═══════════════════════════════════════════════════════════════ */

/* ── Escena columnas: fixed igual que .fan-scene ────────────────────────────── */
.page-project.page-columns .columns-scene {
  position: fixed;
  top: 0;
  left: clamp(160px, 20%, 280px); /* tras el sidebar */
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  padding: 0.3rem;
  overflow: hidden;
}

/* ── Track de cada columna: la animación la gestiona JS con rAF ─────────────── */
.col-track {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  will-change: transform;
}

/* ── Items ──────────────────────────────────────────────────────────────────── */
.col-item {
  flex-shrink: 0;
  overflow: hidden;
}
.col-item img,
.col-item video {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s;
  image-orientation: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.col-item img:hover,
.col-item video:hover { opacity: 0.88; }

/* ── Bloque de texto ────────────────────────────────────────────────────────── */
.col-item.col-text {
  padding: 0.6rem 0.4rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  cursor: default;
  text-align: justify;
  hyphens: auto;
  white-space: pre-wrap;
  font-style: italic;
}
.col-item.col-text--sm { font-size: 0.75rem; }
.col-item.col-text--md { font-size: 1rem; }
.col-item.col-text--lg { font-size: 1.5rem; line-height: 1.5; }
.col-item.col-text--xl { font-size: 2rem;   line-height: 1.3; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */

/* Tablet/ancho medio: sidebar colapsada → 3 columnas */
@media (max-width: 900px) {
  .page-project.page-columns .columns-scene {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: 2 columnas, ambas hacia arriba (gestionado en JS) */
@media (max-width: 600px) {
  .page-project.page-columns .columns-scene {
    grid-template-columns: repeat(2, 1fr);
  }
}
