/* ── 1. Override Cargo ── */
.page,
.page-layout,
.page-content {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: visible !important;
  height: auto !important;
  contain: none !important;
  transform: none !important;
  will-change: auto !important;
  filter: none !important;
}

bodycopy {
  contain: none !important;
  overflow: visible !important;
  height: auto !important;
}

/* ── Nav: fixed en esta página ─────────────────────────────────
   El nav global es sticky y reserva su propio alto en el flujo, lo
   que deja el borde de las cajas con scroll interno (col-izq/col-der)
   justo debajo, a la vista — al hacer scroll, la imagen se corta ahí
   y se ve como si un rectángulo blanco la tapara. Lo pasamos a fixed
   (igual que en Home/Orbit) para que no reserve espacio: el contenido
   pasa por detrás del nav transparente en vez de cortarse en un borde
   visible. Compensamos con padding-top en cada columna. */
#jgp-nav {
  position: fixed !important;
  background: transparent !important;
}

/* ── 2. Contenedor maestro ──
   Ambas columnas son flex items con su propio scroll interno — ninguna usa
   position:fixed, así se evita el transform-trap de Cargo (Regla 3 de
   CARGO-JS-NORMAS.md: un ancestro con transform/will-change/filter atrapa
   position:fixed relativo a sí mismo en vez del viewport). Altura completa
   del viewport — el nav (fixed) ya no reserva espacio en el flujo. */
#jgp-proyectos {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  position: relative;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-body);
  background: #fff;
}

/* ── 3. Columna izquierda — imágenes, scroll interno ── */
#jgp-col-izq {
  width: 41.667%;
  flex-shrink: 0;
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: var(--nav-height, 70px);
  padding-left: 20px;
  padding-right: 80px;
  box-sizing: border-box;
}

#jgp-col-izq::-webkit-scrollbar { display: none; }

.jgp-img-item {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 140px;
}

/* ── 4. Columna derecha — títulos, scroll interno ──
   Flex item (NO position:fixed) para evitar el transform-trap de Cargo. */
#jgp-col-der {
  width: 50%;
  flex-shrink: 0;
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: calc(var(--nav-height, 70px) + 8px) 20px 40px 40px;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#jgp-col-der::-webkit-scrollbar { display: none; }

/* ── 5. Ítems de texto — alineados a la izquierda, sin líneas divisorias,
   con harto aire entre uno y otro (referencia: lista de exhibiciones) ── */
.jgp-txt-item {
  max-width: 100%;
  padding: 4px 0;
  text-decoration: none;
  color: #000;
  text-align: left;
}

.jgp-txt-dot { display: none; }

.jgp-txt-thumb { display: none; }

.jgp-txt-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: #000;
  display: inline;
  line-height: 1.07;
}

.jgp-txt-item.active .jgp-txt-title { font-weight: 700; }

.jgp-txt-year {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #888;
  display: inline;
  margin-left: 6px;
  line-height: 1.07;
  white-space: nowrap;
}

/* ── 6. Mobile ── */
@media (max-width: 768px) {
  #jgp-proyectos {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  #jgp-col-izq { display: none; }
  #jgp-col-der {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: calc(var(--nav-height, 70px) + 16px) 16px 16px;
    align-items: stretch;
  }

  .jgp-txt-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    gap: 6px;
    padding: 0;
    text-align: left;
    margin-bottom: 56px;
  }
  .jgp-txt-item:last-child { margin-bottom: 0; }

  .jgp-txt-thumb {
    display: flex !important;
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    background: #eaeaea;
    max-width: none !important;
    --frame-padding: 0%;
    object-fit: cover;
  }
  .jgp-txt-thumb::part(figure) { width: 100%; height: 100%; flex: 1; }
  .jgp-txt-thumb::part(media) {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .jgp-txt-title,
  .jgp-txt-year {
    font-size: 14px;
    line-height: 1.07;
  }

  .jgp-txt-year {
    display: block;
    margin-left: 0;
  }
}

.jgp-img-item img { display: block; width: 100%; height: auto; max-width: none; }
