.itpod-post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 40px;
    align-items: start; /* CRUCIAL para que el sticky funcione */
    justify-items: stretch;
}

.itpod-left {
    grid-column: 1;
}

.itpod-post-grid .center.content {
    grid-column: 2;
    max-width: 100% !important;
    margin: 0 !important;
}

.itpod-right {
    grid-column: 3;
    position: -webkit-sticky;
    position: sticky;
    top: 20px; 
    z-index: 10;
    height: fit-content;
    padding: 0 20px;
}

.itpod-center {
    padding: 0 20px;
}
  
.gh-toc {
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--epcl-border-color);
    border-radius: 8px;
    margin-bottom: 2.5em;
    font-size: 0.95rem;
}

.gh-toc-mobile {
    display: none;
}

.gh-toc::before {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 12px;
    color: #666;
    letter-spacing: 1px;
}

/* Estilos de los enlaces */
.toc-list {
    list-style: none !important;
    padding-left: 10px !important;
}

.toc-list-item {
    margin-bottom: 8px;
}

.toc-link {
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.toc-link::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
}

.toc-link:hover {
    color: #3eb0ef !important;
}

/* Resaltado de la sección activa al hacer scroll */
.is-active-link {
    font-weight: bold;
    color: #3eb0ef !important;
}

.is-active-link::before {
    background-color: #3eb0ef !important;
}

.itpod-post-image {
    position: relative !important;
    text-align: center;
}

.itpod-post-image-title {
    position: absolute ;    
    top: 50%;
    left: 50% !important;
    transform: translate(-50%, -50%);
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); 
    width: 85%; 
    margin: 0 !important; 
    z-index: 2; 
}

#footer {
    clear: both;
    display: block;
}

@media screen and (max-width:800px) and (orientation:portrait) {
    .itpod-right, .itpod-left {
        display: none;
    }
    .gh-toc-mobile {
        display: block;
    }
    .itpod-right {
        display: none;
    }
    .itpod-post-grid {
        display: block;
    }
}