/* QHM Diseño de fichas 1.0.0 · exclusivamente /evento/.
   Estructura observada en QHM Home Scripts 1.53.5:
   .qhm-phero > .qhm-container > nav, figure, header, .qhm-ev__grid
   Sin duplicar imágenes, modificar el DOM ni afectar la plantilla o el SEO.
*/
body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  align-items: start;
}
body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-crumbs {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__head {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
}
body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__head h1 {
  max-width: 19ch;
  overflow-wrap: break-word;
}
body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__media {
  grid-column: 1;
  grid-row: 3;
  width: 100%;
  margin: 22px 0 0;
  aspect-ratio: 16/10;
  max-height: 320px;
  border-radius: 20px;
  overflow: hidden;
}
body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__grid {
  grid-column: 1;
  grid-row: 4;
  width: 100%;
  min-width: 0;
  margin-top: 28px;
}
/* Pantallas grandes: título e información editorial ocupan la zona principal;
   la imagen pasa a ser un apoyo visual, no el protagonista. */
@media (min-width: 900px) {
  body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container {
    grid-template-columns: minmax(0, 1.16fr) minmax(290px, .84fr);
    column-gap: clamp(28px, 4.2vw, 68px);
    row-gap: 0;
    align-items: center;
  }
  body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-crumbs {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 28px;
  }
  body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__head {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    padding: 8px 0 12px;
    align-self: center;
  }
  body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__head h1 {
    max-width: 17ch;
    font-size: clamp(36px, 3.6vw, 58px);
    line-height: 1.06;
  }
  body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__media {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    aspect-ratio: 5/4;
    max-height: 365px;
    border-radius: 22px;
    align-self: center;
  }
  body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__grid {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 44px;
  }
}
@media (max-width: 390px) {
  body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__head h1 {
    font-size: clamp(30px, 9.5vw, 38px);
  }
  body.qhm-evento-template .qhm-page.qhm-evento .qhm-phero > .qhm-container > .qhm-ev__media {
    max-height: 220px;
  }
}
