/* Ikäsivujen kuvitus, v3b: suuri sommittelu, ei pientä hahmo-saraketta. */

.page-hero.has-hahmo.ika-hero-section {
  overflow: visible;
  padding-bottom: 0.25rem;
}

.page-hero.has-hahmo.ika-hero-section .wrap {
  display: grid;
  gap: 1.25rem 2rem;
  align-items: center;
}

.ika-figure {
  margin: 0;
  width: 100%;
  max-width: 80%;
  justify-self: center;
}

.ika-figure img,
.page-hero.has-hahmo.ika-hero-section .ika-figure img.illu {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

@media (min-width: 800px) {
  .page-hero.has-hahmo.ika-hero-section .wrap {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 1.5rem 2.25rem;
    align-items: center;
  }

  .page-hero.has-hahmo.ika-hero-section .ika-figure,
  .page-hero.has-hahmo.ika-hero-section .hahmo-wrap.ika-figure {
    max-width: none;
    width: 100%;
    margin: 0;
    justify-self: stretch;
    align-self: center;
  }

  /* Hieman yli sarakkeen, jotta kuvitus tuntuu isolta eikä ole laatikossa. */
  .page-hero.has-hahmo.ika-hero-section .ika-figure img {
    width: 108%;
    max-width: none;
    margin-right: -8%;
    margin-bottom: -1.25rem;
  }

  .ika-split {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 1.5rem 2.25rem;
    align-items: center;
  }

  .ika-split.ika-split-flip .ika-figure {
    order: -1;
  }

  .ika-split .ika-figure {
    max-width: none;
    width: 100%;
    margin: 0;
    justify-self: stretch;
  }

  .ika-split .ika-figure img {
    width: 108%;
    max-width: none;
    height: auto;
    display: block;
  }

  .ika-split.ika-split-flip .ika-figure img {
    margin-left: -8%;
    width: 108%;
  }
}

@media (max-width: 799px) {
  .ika-split {
    display: grid;
    gap: 1.25rem;
  }

  .ika-figure {
    max-width: 80%;
    width: 80%;
    margin: 0.35rem auto 0;
    justify-self: center;
  }

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