
.ckeditor-img {
    max-width: 100%;
    height: auto;
    display: block;
}


.img-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.img-grid-3 img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .img-grid-3 {
        grid-template-columns: 1fr;
    }
}



/* ================================ OCULTAR MENSAJE CKEDITOR ================================ */

.cke_notification_message {
    display: none !important;
}

.cke_notification.cke_notification_warning{
    display: none !important;
}





/* ================================ ESTILOS CONTENIDO ================================ */

@media print {
    .postbox-dsc table,
    .postbox-dsc table[border],
    .postbox-dsc table td,
    .postbox-dsc table th {
        border: 0 !important;
        border-width: 0 !important;
        border-style: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .postbox-dsc table {
        border-collapse: collapse !important;
        border-spacing: 0 !important;
    }
}

/* Imágenes normales (fuera de tablas) */
.postbox-dsc img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* mejor para no recortar */
    display: block;
    border-radius: 8px;
    transition: filter 0.3s ease;
    cursor: zoom-in;
}

/* Imágenes dentro de tablas (grid tipo 3 columnas) */
.postbox-dsc table img {
    height: 250px !important;
    object-fit: cover !important; /* recorte controlado */
}

.postbox-dsc img:hover {
    filter: brightness(0.5);
}

.img-zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.img-zoom-modal.show {
    display: flex;
}

.img-zoom-modal img {
    max-width: 95vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.img-zoom-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}




.postbox-dsc ul {
    padding-left: 20px;
    margin-left: 20px;
    list-style: disc;
}

.postbox-dsc ol {
    padding-left: 20px;
    margin-left: 20px;
    list-style: decimal;
}

.postbox-dsc li {
    margin-bottom: 8px;
}

