.custom-post-chain {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}
.custom-post-chain .post-container {
    min-width: 220px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: border 0.2s;
}
.custom-post-chain .post-container[style*="border:2px"] {
    border: 2px solid #0074d9 !important;
}

.custom-post-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px 16px;
    min-width: 240px;
    max-width: 270px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
    transition: box-shadow 0.2s, border 0.2s;
}

.custom-post-card.active {
    border: 2px solid #0074d9;
    box-shadow: 0 4px 16px rgba(0,116,217,0.10);
}

.custom-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*
.custom-post-thumbnail img {
    border-radius: 12px;
    margin-bottom: 14px;
    max-width: 100%;
    height: auto;
    display: block;
}*/
.custom-post-thumbnail {
    width: 200px;       /* ancho fijo cuadrado */
    height: 200px;      /* alto fijo cuadrado */
    border-radius: 12px;
    overflow: hidden;   /* oculta el sobrante */
    margin-bottom: 14px;
    position: relative;
}

.custom-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* recorta y centra la imagen */
    display: block;
}


.custom-post-title {
    margin: 0 0 8px 0;
    font-size: 1.15em;
    font-weight: bold;
}

.custom-post-excerpt {
    font-size: 0.97em;
    color: #555;
    margin-top: 4px;
}


/* Estilos diagonal */
.custom-post-chain.diagonal {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 30px 0;
    align-items: flex-end;
}

.custom-post-card-diagonal {
  display: inline-flex; /* para que el contenido esté en fila */
  align-items: center;  /* centrar verticalmente imagen y texto */
  gap: 10px;            /* espacio entre imagen y texto */
  background: #f7faff;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.10);
  transform: rotate(-45deg);
  
  /* NUEVO: evitar salto de líneas */
  white-space: nowrap;
  /* Limitar ancho para que no se reduzca a varias líneas */
  max-width: 280px; /* ajusta según necesidad */
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-post-card-diagonal.active {
    border: 2px solid #0074d9;
    background: #eaf5ff;
}

.custom-post-link-diagonal {
    text-decoration: none;
    color: inherit;
    display: block;
}

.custom-post-card-diagonal-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    /* transform: rotate(45deg);  Vuelve contenido interno a horizontal */
}

.custom-post-thumbnail-diagonal {
    display: block;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #ddd;
    flex-shrink: 0;
}
.custom-post-thumbnail-diagonal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-post-title-diagonal {
  font-size: 1em;
  font-weight: 600;
  color: #222;
  
  /* Que el texto no haga salto de línea */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px; /* ajusta según espacio esperado */
  display: inline-block;
  vertical-align: middle;
}


