/* Arreglos de maquetacion heredados de Webflow. scripts/postbuild.mjs enlaza este archivo en todas las paginas,
   despues del CSS de Webflow (/media/.../fineartsceramiccenter.webflow.shared.*.css), que no se toca. */

/* 1. Filas "raya | titulo | raya": la fecha de la cabecera, "Contemporary Ceramics Collection",
   "Previous Events"... En Webflow cada raya era una imagen de 209 px dentro de una columna de 400 px: quedaban
   cortas y descompensadas (la derecha pegada al titulo), en movil se montaban sobre la fecha y el titulo se
   partia en tres lineas. Ahora las rayas ocupan todo el hueco a cada lado y el titulo su ancho natural. */
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 0;
  margin-right: 0;
}
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col {
  float: none;
  width: auto;
  min-height: 0;
  padding-left: 0;
  padding-right: 0;
}
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col:first-child,
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col:last-child {
  flex: 1 1 0;
  min-width: 24px;
}
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col:nth-child(2) {
  flex: 0 1 auto;
  display: block;
  text-align: center;
}
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col:nth-child(2) > * {
  margin-left: 0;
  margin-right: 0;
}
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col:first-child > *,
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col:last-child > * {
  margin: 0;
  padding: 0;
}
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col:first-child img,
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) > .w-col:last-child img {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  object-fit: fill;
}
/* el clearfix de .w-row (::before/::after) contaria como hueco del flex */
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"])::before,
.w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"])::after {
  display: none;
}
/* en movil el contenedor no tiene margen: las rayas no deben tocar el borde de la pantalla */
@media screen and (max-width: 767px) {
  .w-row:has(> .w-col:nth-child(3):last-child):has(> .w-col:first-child img[src*="raya_"]):has(> .w-col:last-child img[src*="raya_"]) {
    padding-left: 10px;
    padding-right: 10px;
  }
}
/* la fecha de la cabecera no se parte en dos lineas */
.columns-2-copy > .w-col:nth-child(2) { white-space: nowrap; }

/* 2. "Plates", "Sculptures & Installations"... (portada): la raya de debajo del titulo era de 188 px y empezaba
   en el borde de la columna, asi que no cuadraba con el titulo (cortada en los largos). Ahora mide lo mismo que
   el titulo y los dos van centrados. */
.link-block-9 {
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.link-block-9 .heading-48 { margin-left: 0; margin-right: 0; }
.link-block-9 .image-108 {
  display: block;
  /* width 0 + min-width 100 %: la raya (3086 px de ancho natural) no ensancha el bloque; mide lo que el titulo */
  width: 0;
  min-width: 100%;
  height: 1px;
  margin: 0;
  object-fit: fill;
}

/* "Sculptures & Installations": el titulo va en un enlace (.link-block-19) y la raya fuera, en la misma
   columna. La columna pasa a rejilla de una sola pista del ancho del titulo, centrada. */
.w-col:has(> .link-block-19 + .image-108) {
  display: grid;
  justify-content: center;
  text-align: center;
}
.w-col:has(> .link-block-19 + .image-108) .heading-48 { margin-left: 0; margin-right: 0; }
.w-col:has(> .link-block-19 + .image-108) > .image-108 {
  display: block;
  width: 0;
  min-width: 100%;
  height: 1px;
  margin: 0;
  object-fit: fill;
}

/* 3. Pie: raya suelta de 219 px pegada al borde izquierdo debajo del copyright */
.section-7 .image-92 { display: none; }

/* 4. /publications: las portadas de libro son cajas fijas de 200 px; entre 768 y 991 px de ancho la columna
   mide 187 px y la ultima se salia de la pantalla (scroll horizontal). */
.div-block-66,
.div-block-66 .image-113 { max-width: 100%; }

/* 5. Ceramic Voices (articulos): entre 768 y 991 px la fila de columnas (.columns-48) tenia -10 px de margen
   a cada lado sin contenedor que lo compensara: 10 px de scroll horizontal. */
@media screen and (max-width: 991px) {
  .columns-48.w-row { margin-left: 0; margin-right: 0; }
}
