/* contents.css - Estilos que se verán dentro del editor CKEditor */

/* Alineación de imágenes */
.image-left {
    float: left;
    margin: 0 15px 15px 0;
    clear: left;
}

.image-center {
    display: block;
    margin: 0 auto 15px auto;
    text-align: center;
    clear: both;
}

.image-right {
    float: right;
    margin: 0 0 15px 15px;
    clear: right;
}

/* Estilos para imágenes con caption */
.image-with-caption {
    display: table;
    max-width: 100%;
}

.image-with-caption.image-left {
    float: left;
    margin: 0 15px 15px 0;
}

.image-with-caption.image-center {
    float: none;
    margin: 0 auto 15px auto;
}

.image-with-caption.image-right {
    float: right;
    margin: 0 0 15px 15px;
}

.image-with-caption figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-style: italic;
    margin-top: 5px;
    padding: 5px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
}

/* Asegurar que las imágenes no se salgan del contenedor */
figure img {
    max-width: 100%;
    height: auto;
}

/* Estilos adicionales para mejor visualización en el editor */
figure {
    margin: 0;
    padding: 0;
}

/* Clear fix para elementos flotantes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}