@charset "utf-8";

/* ==========================================================
   KROMAMUSIK · CSS V3
   Fase 3.6 · microajuste de captions y byline móvil

   Objetivo:
   - conservar la geometría y el aire de kmk.css
   - reutilizar soluciones modernas probadas en Astro/kmk-v2.css
   - sustituir tablas de maquetación por CSS Grid real
   - mantener este CSS independiente de Astro
   ========================================================== */

:root {
  --kmk-bg: #ffffff;
  --kmk-surface: #f7f7f7;
  --kmk-text: #3f3f3f;
  --kmk-text-soft: #5f5f5f;
  --kmk-muted: #8a8a8a;
  --kmk-line: rgba(63, 63, 63, 0.20);
  --kmk-line-soft: rgba(63, 63, 63, 0.10);

  --kmk-font-ui: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --kmk-font-reading: Georgia, "Times New Roman", serif;

  --kmk-shell: 1232px;
  --kmk-reading: 740px;

  --kmk-space-1: 0.5rem;
  --kmk-space-2: 1rem;
  --kmk-space-3: 1.5rem;
  --kmk-space-4: 2rem;
  --kmk-space-5: 3rem;
  --kmk-space-6: 4.5rem;

  --kmk-transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--kmk-bg);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--kmk-bg);
  color: var(--kmk-text);
  font-family: var(--kmk-font-ui);
  font-size: 16px;
  font-weight: 100;
  line-height: 1.65;
}

img,
video,
audio,
iframe,
object,
embed {
  max-width: 100%;
}

img,
video {
  display: block;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--kmk-transition);
}

a:hover {
  opacity: 0.58;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}


/* ==========================================================
   CONTRATO VISUAL COMÚN · equivalencia moderna de los IDs
   históricos de Kromamusik.

   #top / #langon     -> .kmk-language / __link--active
   #kmk / #ison       -> .kmk-header / .kmk-brand__name
   #byIS              -> .kmk-brand__byline
   #kmkon             -> .kmk-menu__link--active
   #parts2 / #subpon  -> .kmk-secondary-nav / .kmk-subnav__link--active
   #content           -> .kmk-main
   #text / #text_1…6  -> .kmk-prose
   <p> dentro #text   -> .kmk-prose > p
   #title / #title_1…6-> .kmk-content-title
   #subpon2           -> futura .kmk-tertiary-nav__link--active
   #miniatures        -> .kmk-thumb / .kmk-thumb__title
   captions           -> .kmk-figure__caption / .kmk-media-caption
   #redes             -> .kmk-social
   #copyright         -> .kmk-copyright

   Principio: cada función tipográfica define explícitamente familia,
   tamaño, peso y alineación. No depende de la tipografía global de body.
   ========================================================== */

/* ----------------------------------------------------------
   SHELL + GRID
   La cuadrícula de 10 columnas conserva el principio de KMK:
   10% / 20% / 60% / 80%, etc., sin tablas de maquetación.
   ---------------------------------------------------------- */

.kmk-shell {
  width: min(91.8%, var(--kmk-shell));
  margin-inline: auto;
  padding: 0 0 var(--kmk-space-4);
}

.kmk-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  width: 100%;
}

.kmk-grid--gap {
  column-gap: clamp(0.5rem, 1.2vw, 1.15rem);
}

.kmk-col-full { grid-column: 1 / -1; }
.kmk-col-80   { grid-column: 2 / 10; }
.kmk-col-60   { grid-column: 3 / 9; }
.kmk-col-40   { grid-column: 4 / 8; }
.kmk-col-left-60  { grid-column: 2 / 8; }
.kmk-col-right-60 { grid-column: 4 / 10; }

/* ----------------------------------------------------------
   LANGUAGE SWITCH
   ---------------------------------------------------------- */

.kmk-language {
  display: grid;
  grid-template-columns: 94% 3% 3%;
  width: 100%;
  min-height: 1.25rem;
  margin-top: 1%;
  margin-bottom: 1.2rem;
  font-family: var(--kmk-font-ui);
  font-size: 1rem;
  font-style: normal;
  font-variant: normal;
  font-weight: 100;
  line-height: normal;
  text-align: center;
  color: var(--kmk-muted);
}

.kmk-language a:first-child { grid-column: 2; }
.kmk-language a:last-child  { grid-column: 3; }

.kmk-language__link {
  font-family: var(--kmk-font-ui);
  font-size: 1rem;
  font-style: normal;
  font-weight: 100;
  line-height: normal;
  letter-spacing: 0;
}

.kmk-language__link--active,
.kmk-language [aria-current="page"] {
  color: var(--kmk-text);
  font-weight: 300;
}

/* ----------------------------------------------------------
   HEADER
   La marca conserva la posición histórica (20% tras 10% vacío)
   y el menú ocupa el tercio derecho.
   ---------------------------------------------------------- */

.kmk-header {
  position: relative;
  z-index: 100;
}

.kmk-header__row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  min-height: 4.8rem;
}

.kmk-brand {
  grid-column: 2 / 4;
  align-self: start;
  min-width: 0;
}

.kmk-brand__name {
  margin: 0;
  font-family: var(--kmk-font-ui);
  font-size: 1.875rem;
  font-style: normal;
  font-variant: normal;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.kmk-brand__byline {
  margin-top: 0.62rem;
  margin-left: clamp(4.8rem, 8.6vw, 9.5rem);
  font-family: var(--kmk-font-ui);
  font-size: 1.125rem;
  font-style: normal;
  font-variant: normal;
  font-weight: 100;
  line-height: normal;
  white-space: nowrap;
}

.kmk-nav {
  grid-column: 7 / 10;
  align-self: end;
  position: relative;
}

.kmk-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.kmk-menu__link {
  display: inline-block;
  padding: 0;
  font-family: var(--kmk-font-ui);
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 100;
  line-height: normal;
  letter-spacing: 0;
}

.kmk-menu__link--active,
.kmk-menu__link[aria-current="page"] {
  font-weight: 300;
}

.kmk-menu-toggle {
  display: none;
  margin-left: auto;
  padding: 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.18rem;
  line-height: 1;
}

.kmk-rule {
  grid-column: 2 / 10;
  margin: 1.65rem 0 0;
  border: 0;
  border-top: 1px solid var(--kmk-line);
}

/* ----------------------------------------------------------
   SECONDARY NAVIGATION
   ---------------------------------------------------------- */

.kmk-subnav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 15% 20% 5% 20% 5% 20% 15%;
  gap: 0;
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.kmk-subnav__link,
.kmk-subnav > li > a {
  /*
   * Equivalente funcional de #parts2:
   * Raleway small, ligera y centrada.
   * El selector estructural actúa también como salvaguarda para que
   * el submenú desktop no vuelva a heredar los 16px del body.
   */
  font-family: var(--kmk-font-ui);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 100;
  line-height: normal;
  letter-spacing: 0;
  color: var(--kmk-text);
  text-align: center;
}

.kmk-subnav__link--active,
.kmk-subnav__link[aria-current="page"],
.kmk-subnav > li > a[aria-current="page"] {
  /*
   * Equivalente moderno de #subpon { font-weight:bold }.
   * En V3 usamos el peso 300 real de Raleway, ya aprobado visualmente.
   */
  font-weight: 300;
}

.kmk-subnav li:nth-child(1) { grid-column: 2; }
.kmk-subnav li:nth-child(2) { grid-column: 4; }
.kmk-subnav li:nth-child(3) { grid-column: 6; }

/* La versión móvil de la navegación secundaria vive dentro de la misma
   hamburguesa del menú principal. En escritorio permanece oculta. */
.kmk-mobile-submenu {
  display: none;
}


/* ----------------------------------------------------------
   TERTIARY NAV · reserva semántica para el antiguo #subpon2
   Usado históricamente en Illustration: drawings / stickers.
   No se instancia hasta migrar esa sección.
   ---------------------------------------------------------- */

.kmk-tertiary-nav {
  font-family: var(--kmk-font-ui);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 100;
  line-height: normal;
  text-align: center;
  color: var(--kmk-text);
}

.kmk-tertiary-nav__link {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: 100;
  line-height: inherit;
  letter-spacing: 0;
  text-align: inherit;
  color: inherit;
}

.kmk-tertiary-nav__link--active,
.kmk-tertiary-nav__link[aria-current="page"] {
  font-weight: 300;
}

/* ----------------------------------------------------------
   MAIN / BLOCK SYSTEM
   En fase 2 estos bloques se generarán desde la base de datos.
   ---------------------------------------------------------- */

.kmk-main {
  padding-block: 2.5rem var(--kmk-space-5);
  /*
   * Equivalente funcional de #content: establece el contexto cromático
   * y tipográfico de contenido, pero deja que cada subfunción
   * (.kmk-prose, captions, títulos, etc.) defina explícitamente su voz.
   */
  color: var(--kmk-text);
  font-style: normal;
}

.kmk-block {
  margin-block: 0 var(--kmk-space-5);
}

.kmk-block:last-child {
  margin-bottom: 0;
}

.kmk-block--wide   { grid-column: 2 / 10; }
.kmk-block--medium { grid-column: 3 / 9; }
.kmk-block--narrow { grid-column: 4 / 8; }
.kmk-block--left   { grid-column: 2 / 7; }
.kmk-block--right  { grid-column: 5 / 10; }
.kmk-block--full   { grid-column: 1 / -1; }

.kmk-work-title,
.kmk-section-title,
.kmk-block-title,
.kmk-content-title {
  margin: 0 0 0.8rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.065em;
}

.kmk-work-meta {
  margin: 0.7rem 0 0;
  font-family: var(--kmk-font-ui);
  font-size: 0.74rem;
  color: var(--kmk-text-soft);
  letter-spacing: 0.045em;
}

.kmk-prose {
  max-width: var(--kmk-reading);
  margin-inline: auto;
  /*
   * El cuerpo editorial de la KMK publicada se percibe como una sans
   * neutra de sistema, más compacta que Raleway y bastante más clara.
   * Se reproduce ese resultado, sin guionado automático.
   */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.40;
  letter-spacing: 0;
  color: #aaa89f;
  text-align: justify;
  hyphens: none;
}

.kmk-prose > p {
  /*
   * Tercera capa del texto histórico:
   * #content -> #text -> <p>.
   *
   * En la KMK antigua el <p> no tenía una regla propia; heredaba del
   * contenedor y conservaba el ritmo vertical nativo del navegador.
   * En V3 hacemos esa herencia explícita y controlamos sólo el margen.
   */
  margin: 0 0 1em;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: inherit;
  hyphens: inherit;
}

.kmk-prose > p:last-child {
  margin-bottom: 0;
}

.kmk-media {
  width: 100%;
}

.kmk-media video,
.kmk-media img {
  width: 100%;
}

.kmk-media-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--kmk-line-soft);
  background:
    linear-gradient(135deg, rgba(63,63,63,0.035), rgba(63,63,63,0.012));
  color: var(--kmk-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

/* ----------------------------------------------------------
   COLLECTION / THUMBNAIL GRID
   Reproduce 2-up y 3-up sin tablas anidadas.
   ---------------------------------------------------------- */

.kmk-collection {
  grid-column: 2 / 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 3rem);
  row-gap: clamp(2.4rem, 5vw, 4.5rem);
}

.kmk-collection--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kmk-thumb {
  min-width: 0;
}

.kmk-thumb__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(63,63,63,0.045);
}

.kmk-thumb__media img,
.kmk-thumb__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kmk-thumb__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--kmk-line-soft);
  color: var(--kmk-muted);
  font-family: var(--kmk-font-ui);
  font-size: 0.68rem;
  font-weight: 100;
  letter-spacing: 0.1em;
}

.kmk-thumb__title {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.76rem;
  font-weight: 100;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-align: center;
}

/* Exact 3-up rhythm used by the historical Conceptual Art grid:
   15% | 20% | 5% | 20% | 5% | 20% | 15% */
.kmk-gallery-three {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 15% 20% 5% 20% 5% 20% 15%;
  row-gap: 2.8rem;
  align-items: start;
}

.kmk-gallery-three > :nth-child(3n + 1) { grid-column: 2; }
.kmk-gallery-three > :nth-child(3n + 2) { grid-column: 4; }
.kmk-gallery-three > :nth-child(3n + 3) { grid-column: 6; }

.kmk-gallery-three .kmk-thumb__media {
  aspect-ratio: 1 / 1;
}

.kmk-social img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */

.kmk-footer {
  padding-top: var(--kmk-space-4);
  padding-bottom: var(--kmk-space-2);
}

.kmk-social {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
  min-height: 2rem;
  padding-right: 2%;
}

.kmk-social a {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--kmk-text-soft);
}

.kmk-footer__rule {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--kmk-line);
}

.kmk-copyright {
  grid-column: 1 / -1;
  margin-top: 0.9rem;
  color: var(--kmk-muted);
  font-family: var(--kmk-font-ui);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 100;
  line-height: normal;
  letter-spacing: 0;
  text-align: right;
}

/* ----------------------------------------------------------
   ACCESSIBILITY / REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 900px) {
 .kmk-shell {
    width: min(94%, var(--kmk-shell));
  }

  .kmk-brand {
    grid-column: 1 / 5;
  }

  .kmk-nav {
    grid-column: 7 / 11;
  }

  .kmk-rule,
  .kmk-subnav,
  .kmk-collection,
  .kmk-footer__rule {
    grid-column: 1 / -1;
  }

  .kmk-block--wide { grid-column: 1 / -1; }
  .kmk-block--medium { grid-column: 2 / 10; }
  .kmk-block--narrow { grid-column: 3 / 9; }

  .kmk-social { grid-column: 1 / -1; }
  .kmk-copyright { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 768px) {
 .kmk-shell {
    /* Más aire lateral que en 2.3: 1.5rem por lado.
       El desktop queda intacto. */
    width: calc(100% - 3rem);
    padding-block: 1.4rem;
  }

  .kmk-language {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.3rem;
    text-align: right;
  }

  .kmk-language a:first-child,
  .kmk-language a:last-child {
    grid-column: auto;
    flex: 0 0 auto;
  }

  .kmk-header__row {
    align-items: start;
    min-height: 3.8rem;
  }

  .kmk-brand {
    grid-column: 1 / 8;
    width: auto;
    max-width: none;
  }

  .kmk-brand__name {
    font-size: 1.62rem;
  }

  .kmk-brand__byline {
    width: max-content;
    /*
     * Mantiene aproximadamente el mismo arranque relativo que en desktop:
     * alrededor de la segunda “m” de “kromamusik”, no alineado al borde
     * derecho del wordmark.
     */
    margin-left: clamp(6.6rem, 30vw, 7.25rem);
    margin-right: 0;
    font-size: 0.82rem;
  }

  .kmk-nav {
    grid-column: 8 / 11;
    align-self: start;
    padding-top: 0.1rem;
  }

  .kmk-menu-toggle {
    display: block;
  }

  .kmk-menu {
    display: none;
    position: absolute;
    top: 2.2rem;
    right: 0;
    min-width: 10.5rem;
    grid-template-columns: 1fr;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--kmk-line);
    background: rgba(255, 255, 255, 0.98);
    text-align: right;
  }

  .kmk-menu.is-open {
    display: block;
  }

  .kmk-menu__item {
    text-align: right;
  }

  .kmk-menu > .kmk-menu__item > .kmk-menu__link {
    display: block;
    width: 100%;
    padding: 0.5rem 0.25rem;
  }

  .kmk-mobile-submenu {
    display: block;
    margin: -0.05rem 0 0.45rem;
    padding: 0;
    list-style: none;
    text-align: right;
  }

  .kmk-mobile-submenu__link {
    display: block;
    width: 100%;
    padding: 0.28rem 0.25rem;
    color: var(--kmk-muted);
    font-size: 0.8125rem;
    font-weight: 100;
    line-height: normal;
  }

  .kmk-mobile-submenu__link--active,
  .kmk-mobile-submenu__link[aria-current="page"] {
    color: var(--kmk-text);
    font-weight: 300;
  }

  .kmk-rule {
    margin-top: 1.25rem;
  }

  .kmk-secondary-nav {
    display: none;
  }

  .kmk-main {
    padding-block: 2rem 2.5rem;
  }

  .kmk-block--wide,
  .kmk-block--medium,
  .kmk-block--narrow,
  .kmk-block--left,
  .kmk-block--right,
  .kmk-block--full {
    grid-column: 1 / -1;
  }

  .kmk-prose {
    font-size: 1rem;
    line-height: 1.65;
    text-align: justify;
  }

  .kmk-collection,
  .kmk-collection--three,
  .kmk-gallery-three {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .kmk-gallery-three > :nth-child(n) {
    grid-column: 1;
  }

  .kmk-social {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .kmk-copyright {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* ----------------------------------------------------------
   PHASE 3 · DYNAMIC CONTENT RENDERER
   Variantes adicionales derivadas de geometrías históricas reales.
   ---------------------------------------------------------- */

.kmk-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kmk-block--half,
.kmk-block--forty,
.kmk-block--seventy {
  grid-column: 1 / -1;
  margin-inline: auto;
}

.kmk-block--half { width: 50%; }
.kmk-block--forty { width: 40%; }
.kmk-block--seventy { width: 70%; }

/*
 * En la KMK original los vídeos de obra y el texto editorial compartían
 * la misma columna central del 60 %. Conservamos `seventy` para otras
 * composiciones, pero los bloques de vídeo recuperan su ancho histórico.
 */
.kmk-content-block--video.kmk-block--seventy {
  width: 60%;
}

.kmk-figure {
  margin: 0;
  text-align: center;
}

.kmk-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.kmk-figure__caption {
  margin-top: 0.34rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0;
  color: #aaa89f;
  text-align: center;
}

.kmk-work-gallery {
  display: grid;
  align-items: start;
  row-gap: 2.5rem;
}

.kmk-work-gallery--1 { grid-template-columns: 1fr; }
.kmk-work-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kmk-work-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.kmk-work-gallery .kmk-figure {
  width: var(--kmk-gallery-item-width, 100%);
  margin-inline: auto;
}

/* 15 | 30 | 10 | 30 | 15 de las series fotográficas antiguas. */
.kmk-work-gallery--2.kmk-work-gallery--historical-gap {
  column-gap: 14.285714%;
}

/* En los listados de obra se conserva la proporción original del archivo,
   en vez de recortarlo a un cuadrado. */
.kmk-gallery-three .kmk-thumb__media {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

.kmk-gallery-three .kmk-thumb__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .kmk-block--half,
  .kmk-block--forty,
  .kmk-block--seventy {
    width: 100%;
  }

  .kmk-content-block--video.kmk-block--seventy {
    width: 100%;
  }

  .kmk-work-gallery--2,
  .kmk-work-gallery--3 {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .kmk-work-gallery .kmk-figure {
    width: 100%;
  }
}


/* ----------------------------------------------------------
   FASE 4 · embeds, reader y composición texto + imagen
   ---------------------------------------------------------- */
.kmk-media-caption {
  margin-top: 0.34rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0;
  color: #aaa89f;
  text-align: center;
}

.kmk-embed { width: 100%; }
.kmk-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: var(--kmk-embed-ratio, 1.777778);
  height: auto;
  border: 0;
}

.kmk-text-image {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: start;
  margin-bottom: 1.4rem;
}
.kmk-text-image__side {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #aaa89f;
}
.kmk-text-image__body { max-width: none; }

.kmk-reader {
  width: 100%;
}

.kmk-reader__row {
  /*
   * Una sola fila real: flecha | página | flecha.
   * El max-width impide que el fanzine crezca hasta ocupar casi toda
   * la pantalla en monitores grandes.
   */
  width: min(100%, 980px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 82px minmax(0, 760px) 82px;
  justify-content: center;
  align-items: center;
  column-gap: 28px;
}

.kmk-reader__navcell {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmk-reader__stage {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  display: grid;
  place-items: center;
}

.kmk-reader__page {
  margin: 0;
  width: 100%;
  text-align: center;
}

.kmk-reader__page[hidden] {
  display: none;
}

.kmk-reader__page img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin-inline: auto;
}

.kmk-reader__side {
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  width: 70px;
  height: 100px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.kmk-reader__side img {
  display: block;
  width: 70px;
  height: 100px;
}

.kmk-reader__side:disabled {
  /*
   * La columna se conserva para que la página no se mueva,
   * pero la flecha desaparece por completo.
   */
  visibility: hidden;
  pointer-events: none;
}

.kmk-reader__side:focus-visible {
  outline: 1px solid var(--kmk-line);
  outline-offset: 4px;
}

.kmk-reader__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.55rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.72rem;
  font-weight: 100;
  color: var(--kmk-text-soft);
}

@media (max-width: 768px) {
  .kmk-text-image { grid-template-columns: 1fr; }
  .kmk-text-image__side { font-size: 0.92rem; }

  .kmk-reader__row {
    width: 100%;
    grid-template-columns: 1.8rem minmax(0, 1fr) 1.8rem;
    column-gap: 0.45rem;
  }

  .kmk-reader__stage,
  .kmk-reader__page img {
    max-width: 100%;
  }

  .kmk-reader__side {
    width: 1.7rem;
    height: auto;
  }

  .kmk-reader__side img {
    width: 1.7rem;
    height: auto;
  }
}


/* ==========================================================
   BLACK BOX · micrositio dentro de Conceptual Art
   Reproduce su geometría histórica con CSS Grid moderno.
   ========================================================== */
.blackbox-top { min-height: 1.25rem; margin-top:1%; margin-bottom:1.2rem; }
.blackbox-nav { grid-column: 6 / 10; }
.blackbox-menu { grid-template-columns: repeat(4,minmax(0,1fr)); }
.blackbox-subnav { margin-top:1.45rem; }
.blackbox-subnav--2 { grid-template-columns:30% 20% 20% 30%; }
.blackbox-subnav--2 li:nth-child(1){grid-column:2}.blackbox-subnav--2 li:nth-child(2){grid-column:3}
.blackbox-subnav--3 { grid-template-columns:20% 20% 20% 20% 20%; }
.blackbox-subnav--3 li:nth-child(1){grid-column:2}.blackbox-subnav--3 li:nth-child(2){grid-column:3}.blackbox-subnav--3 li:nth-child(3){grid-column:4}
.blackbox-back { grid-column:2 / 10; margin:0 0 1.35rem; }
.blackbox-back img { display:block; width:8.75%; min-width:2.2rem; height:auto; }
.blackbox-card-grid { grid-column:2 / 10; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:2.5rem; }
.blackbox-card { min-width:0; text-align:center; }
.blackbox-card__media { display:block; width:95%; margin-inline:auto; }
.blackbox-card__media img { display:block; width:100%; height:auto; }
.blackbox-card__title { display:block; margin-top:.34rem; font-family:var(--kmk-font-ui); font-size:.82rem; font-weight:300; line-height:1.25; color:var(--kmk-text); }
.blackbox-footer { margin-top:2.5rem; }
.blackbox-footer__rule { width:100%; margin:0; border:0; border-top:1px solid var(--kmk-line); }
.blackbox-copyright { margin-top:.9rem; }
.blackbox-main .kmk-content-block--video.kmk-block--medium {
  width:60%;
  justify-self:center;
}

.blackbox-main .kmk-content-block--gallery.kmk-block--wide {
  /*
   * El bloque ya ocupa las columnas 2–10. Su ancho interno del 80 %
   * debe centrarse dentro de esa zona, no arrancar desde el borde izquierdo.
   */
  width:80%;
  justify-self:center;
}
@media (max-width:768px){
 .blackbox-top{margin-bottom:.55rem}.blackbox-nav{grid-column:8 / 11}.blackbox-menu{grid-template-columns:1fr}
 .blackbox-secondary{display:none}.blackbox-card-grid{grid-column:1 / -1;grid-template-columns:1fr;row-gap:2rem}
 .blackbox-back{grid-column:1 / -1}.blackbox-back img{width:2.2rem}
 .blackbox-main .kmk-content-block--video.kmk-block--medium,
 .blackbox-main .kmk-content-block--gallery.kmk-block--wide{
   width:100%;
   justify-self:stretch;
 }
}


/* ----------------------------------------------------------
   FASE 6 · Visionary Art
   Línea de recuento histórica de las series (6/6, 12/12, etc.).
   Sólo aparece cuando content_i18n.subtitle tiene contenido.
   ---------------------------------------------------------- */
.kmk-thumb__meta {
  margin-top: 0.22rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 100;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-align: center;
  color: var(--kmk-text);
}


/* ==========================================================
   FASE 6.1 · ILLUSTRATION
   ========================================================== */

/* Antiguo tercer nivel 30 | 20 | 20 | 30. */
.kmk-tertiary-nav {
  margin-top: 1.15rem;
}

.kmk-tertiary-nav__list {
  grid-column: 4 / 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.kmk-tertiary-nav__list > li {
  min-width: 0;
  text-align: center;
}

/* Tercer nivel móvil integrado en la misma hamburguesa. */
.kmk-mobile-tertiary {
  display: none;
}

/* Portada histórica Illustration: 20 | 30 | 30 | 20. */
.kmk-illustration-home__grid {
  grid-column: 3 / 9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-top: 0.25rem;
  row-gap: 0;
}

.kmk-illustration-home__item {
  min-width: 0;
  text-align: center;
}

.kmk-illustration-home__media {
  display: block;
  width: 95%;
  margin-inline: auto;
}

.kmk-illustration-home__media img {
  display: block;
  width: 100%;
  height: auto;
}

.kmk-illustration-home__title {
  display: block;
  margin-top: 0.34rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--kmk-text);
  text-align: center;
}

.kmk-illustration-home__prose {
  grid-column: 3 / 9;
  margin-top: 3.5rem;
}

/* Drawings mantiene dos columnas; stickers necesita cuatro. */
.kmk-work-gallery--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* En stickers los encabezados históricos (Robot, Ants, etc.) eran
   títulos separados y en negrita. */
.kmk-content-block--gallery .kmk-block-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .kmk-tertiary-nav {
    display: none;
  }

  .kmk-mobile-tertiary {
    display: block;
    margin: 0.05rem 0 0.25rem;
    padding: 0;
    list-style: none;
    text-align: right;
  }

  .kmk-mobile-tertiary__link {
    display: block;
    width: 100%;
    padding: 0.23rem 0.25rem;
    color: var(--kmk-muted);
    font-size: 0.76rem;
    font-weight: 100;
    line-height: normal;
  }

  .kmk-mobile-tertiary__link--active,
  .kmk-mobile-tertiary__link[aria-current="page"] {
    color: var(--kmk-text);
    font-weight: 300;
  }

  .kmk-illustration-home__grid,
  .kmk-illustration-home__prose {
    grid-column: 1 / -1;
  }

  .kmk-illustration-home__grid {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .kmk-illustration-home__media {
    width: 100%;
  }

  .kmk-illustration-home__prose {
    margin-top: 3rem;
  }

  .kmk-work-gallery--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
  }

  .kmk-content-block--gallery .kmk-block-title {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .kmk-work-gallery--4 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   FASE 7.0 · SOUND / MUSIC
   ========================================================== */

.kmk-sound-home__grid {
  grid-column: 3 / 9;
  width: 83.333%;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-top: 0.25rem;
}

.kmk-sound-home__item {
  min-width: 0;
  text-align: center;
}

.kmk-sound-home__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.kmk-sound-home__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kmk-sound-home__title {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.76rem;
  font-weight: 100;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-align: center;
}

.kmk-sound-home__prose,
.kmk-music-home__prose {
  grid-column: 3 / 9;
  margin-top: 3.5rem;
}

.kmk-sound-grid .kmk-thumb__media {
  aspect-ratio: 4 / 3;
}

/* Music histórica: 16 | 18 | 7 | 18 | 7 | 18 | 16. */
.kmk-sound-grid--music {
  grid-template-columns: 16% 18% 7% 18% 7% 18% 16%;
}

/* Soundscapes histórica: tres columnas del 20 %. */
.kmk-sound-grid--soundscapes {
  grid-template-columns: 15% 20% 5% 20% 5% 20% 15%;
}

/* Álbum individual */
.kmk-music-album {
  width: 100%;
  text-align: center;
}

.kmk-music-album__player {
  width: 100%;
}

.kmk-music-album__player iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.kmk-music-album__buy-label {
  margin-top: 2rem;
  text-align: center;
}

.kmk-music-album__buy-label > p {
  text-align: center;
}

.kmk-music-album__paypal {
  margin: 0.8rem 0 2rem;
  text-align: center;
}

.kmk-music-album__paypal button {
  appearance: none;
  border: 1px solid var(--kmk-line);
  background: transparent;
  padding: 0.48rem 1rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--kmk-text);
  cursor: pointer;
}

.kmk-music-album__platform-label {
  margin-bottom: 0.85rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.76rem;
  font-weight: 100;
  color: var(--kmk-text);
  text-align: center;
}

.kmk-music-platforms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.kmk-music-platforms__link {
  display: block;
  width: 3.125rem;
  height: 3.125rem;
}

.kmk-music-platforms__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .kmk-sound-home__grid,
  .kmk-sound-home__prose,
  .kmk-music-home__prose {
    grid-column: 1 / -1;
  }

  .kmk-sound-home__grid {
    width: 100%;
  }

  .kmk-sound-home__prose,
  .kmk-music-home__prose {
    margin-top: 3rem;
  }

  .kmk-music-album__player iframe {
    height: 450px;
  }
}

@media (max-width: 560px) {
  .kmk-sound-home__grid {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .kmk-music-platforms__link {
    width: 2.8rem;
    height: 2.8rem;
  }
}


/* ==========================================================
   FASE 7.0.2 · SOUND / MUSIC · GEOMETRÍA DEFINITIVA
   ========================================================== */

/* Landing Sound histórica:
   miniaturas 25 | 25 | 25 | 25, usando los dos cuartos centrales;
   texto 20 | 60 | 20 debajo, nunca al lado. */
.kmk-sound-home {
  grid-column: 1 / -1;
  width: 100%;
}

.kmk-sound-home__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  align-items: start;
}

.kmk-sound-home__item {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.kmk-sound-home__item--1 { grid-column: 2; }
.kmk-sound-home__item--2 { grid-column: 3; }

.kmk-sound-home__media {
  display: block;
  width: 95%;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(63,63,63,0.045);
}

.kmk-sound-home__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kmk-sound-home__title {
  display: block;
  width: 95%;
  margin: 0.55rem auto 0;
  font-family: var(--kmk-font-ui);
  font-size: 0.76rem;
  font-weight: 100;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-align: left;
}

.kmk-sound-home__prose {
  width: 60%;
  margin: 3.5rem auto 0;
}

.kmk-sound-home__prose .kmk-prose {
  width: 100%;
  max-width: none;
}

/* Álbumes: el bloque completo sigue ocupando el 60 % histórico.
   El texto editorial no cambia. */
.kmk-content-block--music_album.kmk-block--medium {
  grid-column: 3 / 9;
  width: 100%;
  justify-self: stretch;
}

/* Apple Music: la fuente antigua imponía max-width 660px.
   Ahora se centra dentro del 60 % central. */
.kmk-music-album__player {
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
}

.kmk-music-album__player iframe {
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
}

/* Compra y plataformas permanecen dentro del mismo 60 %. */
.kmk-music-album__buy-label,
.kmk-music-album__paypal,
.kmk-music-album__platform-label {
  width: 100%;
}

/* Seis plataformas históricas en una fila, centradas. */
.kmk-music-platforms {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
  gap: 0;
  align-items: start;
  justify-items: center;
}

.kmk-music-platforms__link {
  display: grid;
  grid-template-rows: 3.125rem auto;
  justify-items: center;
  align-items: start;
  width: 100%;
  min-width: 0;
  height: auto;
  color: var(--kmk-text);
}

.kmk-music-platforms__icon {
  display: block;
  width: 3.125rem;
  height: 3.125rem;
}

.kmk-music-platforms__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kmk-music-platforms__name {
  display: block;
  margin-top: 0.42rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.68rem;
  font-weight: 100;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

@media (max-width: 900px) and (min-width: 769px) {
  .kmk-content-block--music_album.kmk-block--medium {
    grid-column: 2 / 10;
  }
}

@media (max-width: 768px) {
  .kmk-sound-home__cards {
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    margin-inline: auto;
    row-gap: 2.5rem;
  }

  .kmk-sound-home__item--1,
  .kmk-sound-home__item--2 {
    grid-column: 1;
  }

  .kmk-sound-home__media,
  .kmk-sound-home__title {
    width: 100%;
  }

  .kmk-sound-home__title {
    text-align: center;
  }

  .kmk-sound-home__prose {
    width: 100%;
    margin-top: 3rem;
  }

  .kmk-content-block--music_album.kmk-block--medium {
    grid-column: 1 / -1;
  }

  .kmk-music-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 18rem;
    row-gap: 1rem;
  }
}

@media (max-width: 420px) {
  .kmk-music-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 12rem;
  }
}


/* ==========================================================
   FASE 7.0.3 · SOUND / MUSIC · AJUSTES DE CENTRADO
   ========================================================== */

/* Sound tiene exactamente dos opciones en el segundo nivel.
   La web histórica usaba 30 | 20 | 20 | 30, no la geometría
   de tres elementos de Art. */
.kmk-subnav--2 {
  grid-template-columns: 30% 20% 20% 30%;
}

.kmk-subnav--2 > li:nth-child(1) {
  grid-column: 2;
}

.kmk-subnav--2 > li:nth-child(2) {
  grid-column: 3;
}

/* Los captions de music / soundscapes deben centrarse también
   en desktop, igual que ya ocurría en mobile. */
.kmk-sound-home__title {
  text-align: center;
}

/* Music en móvil: dos columnas, no una lista vertical.
   El quinto álbum queda centrado en la última fila. */
@media (max-width: 768px) {
  .kmk-sound-grid--music {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.35rem;
    row-gap: 2.7rem;
    align-items: start;
  }

  .kmk-sound-grid--music > :nth-child(n) {
    grid-column: auto;
  }

  .kmk-sound-grid--music > :nth-child(5):last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.675rem);
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .kmk-sound-grid--music {
    column-gap: 1rem;
  }

  .kmk-sound-grid--music > :nth-child(5):last-child {
    width: calc(50% - 0.5rem);
  }
}


/* ==========================================================
   FASE 8.0 · HOME + ART ROOT
   ========================================================== */

/* HOME: vídeo y statement comparten el 60 % central histórico. */
.kmk-home .kmk-content-block--video.kmk-block--medium,
.kmk-home .kmk-content-block--text.kmk-block--medium {
  grid-column: 3 / 9;
  width: 100%;
  justify-self: stretch;
}

.kmk-home .kmk-content-block--video {
  margin-bottom: 4.5rem;
}

.kmk-home .kmk-content-block--video .kmk-media {
  width: 100%;
}

.kmk-home .kmk-content-block--video video {
  display: block;
  width: 100%;
  height: auto;
}

.kmk-home .kmk-content-block--text .kmk-content-title {
  margin-bottom: 0.8rem;
}

/* ART ROOT: 20 | 20 | 20 | 20 | 20.
   Las tres ramas ocupan los tres bloques centrales. */
.kmk-art-home__grid {
  grid-column: 2 / 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.kmk-art-home__item {
  min-width: 0;
  text-align: center;
}

.kmk-art-home__media {
  display: block;
  width: 95%;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.kmk-art-home__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kmk-art-home__title {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--kmk-font-ui);
  font-size: 0.76rem;
  font-weight: 100;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-align: center;
}

.kmk-art-home__prose {
  grid-column: 3 / 9;
  margin-top: 3.5rem;
}

.kmk-art-home__prose .kmk-prose {
  max-width: none;
}

@media (max-width: 768px) {
  .kmk-home .kmk-content-block--video.kmk-block--medium,
  .kmk-home .kmk-content-block--text.kmk-block--medium,
  .kmk-art-home__grid,
  .kmk-art-home__prose {
    grid-column: 1 / -1;
  }

  .kmk-home .kmk-content-block--video {
    margin-bottom: 3rem;
  }

  .kmk-art-home__grid {
    grid-template-columns: 1fr;
    row-gap: 2.6rem;
  }

  .kmk-art-home__media {
    width: min(100%, 360px);
  }

  .kmk-art-home__prose {
    margin-top: 3rem;
  }
}


/* ==========================================================
   FASE 9.0 · SHOP
   ========================================================== */

.kmk-shop-home {
  grid-column: 2 / 10;
  width: 100%;
}

.kmk-shop-home__label {
  max-width: none;
  width: 100%;
  margin: 0;
}

.kmk-shop-home__label > p {
  text-align: left;
}

.kmk-shop-albums {
  width: 90%;
  margin: 1.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.kmk-shop-album {
  display: block;
  width: 100%;
}

.kmk-shop-album img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 150 / 113;
  object-fit: cover;
}

.kmk-shop-home__platform-heading {
  margin-top: 3.4rem;
}

.kmk-shop-platforms {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  margin-top: 1rem;
}

.kmk-shop-platform {
  display: grid;
  justify-items: center;
  align-content: start;
  row-gap: 0.45rem;
  min-width: 0;
  font-family: var(--kmk-font-ui);
  font-size: 0.76rem;
  font-weight: 100;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  color: var(--kmk-text);
}

.kmk-shop-platform img {
  display: block;
  width: 3.125rem;
  height: 3.125rem;
  object-fit: contain;
}

.kmk-shop-platform span {
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .kmk-shop-home {
    grid-column: 1 / -1;
  }

  .kmk-shop-albums {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 1.75rem;
  }

  .kmk-shop-albums > :nth-child(5):last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.625rem);
    justify-self: center;
  }

  .kmk-shop-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .kmk-shop-home__platform-heading {
    margin-top: 3rem;
  }
}

@media (max-width: 420px) {
  .kmk-shop-albums {
    column-gap: 1rem;
  }

  .kmk-shop-albums > :nth-child(5):last-child {
    width: calc(50% - 0.5rem);
  }

  .kmk-shop-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================================
   FASE 9.0.1 · ART ROOT · FIDELIDAD GEOMÉTRICA DESKTOP
   ----------------------------------------------------------
   Histórico works.html:
   20% vacío | 20% conceptual | 20% visionary |
   20% illustration | 20% vacío.
   Las imágenes usan width="95%" y conservan proporción natural.
   El bloque visual total ocupa, por tanto, el mismo 60% central
   que el texto inferior.
   ========================================================== */

@media (min-width: 769px) {
  .kmk-art-home__grid {
    grid-column: 3 / 9;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
  }

  .kmk-art-home__media {
    width: 95%;
    margin-inline: auto;
    aspect-ratio: auto;
    overflow: visible;
  }

  .kmk-art-home__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* ==========================================================
   STAFF CONTEXT · acceso de vuelta al Admin desde la web pública
   Sólo se aplica cuando header.php detecta permission admin.access.
   ========================================================== */
.kmk-nav--staff {
  grid-column: 6 / 10;
}

.kmk-menu--staff {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kmk-menu__link--admin {
  font-weight: 100;
}

@media (max-width: 768px) {
  .kmk-nav--staff {
    grid-column: 8 / 11;
  }

  .kmk-menu--staff {
    grid-template-columns: 1fr;
  }
}
