html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  .image-wrapper {
    border: 2px solid rgb(205, 205, 205);
    border-radius: 15px;
    padding: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: 'Times New Roman', Times, serif;
    color: black;
    background-color: transparent;
  }
  
/* Parte superior cuadrada */
.image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }
  
/* Imagen se adapta sin salirse ni estirarse */
.image-box img {
    max-width: 95%;
    max-height: 95%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
  }
  
  .image-caption {
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    color: black;
    font-family: 'Courier New', Courier, monospace;
    /* No margin-bottom: lo eliminamos */
  }
  
  
  .image-caption em {
    font-style: italic;
  }

  /* Tablets: 2 columnas */
  @media (max-width: 1000px) {
    .image-series {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Móviles: 1 columna */
  @media (max-width: 768px) {
    .image-series {
      grid-template-columns: repeat(1, 1fr);
    }
  }