﻿.image-style-align-left {
    float: left;
    margin-right: 1rem;
    max-width: 50%;
}

.image-style-align-right {
    float: right;
    margin-left: 1rem;
    max-width: 50%;
}

.image-style-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.image_resized {
    height: auto;
    max-width: 100%;
}

    .image_resized img {
        width: 100% !important;
        height: auto !important;
    }

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

    .table td,
    .table th {
        border: 1px solid #ccc;
        padding: 0.5rem;
    }

    .table th {
        background-color: #f9f9f9;
        font-weight: bold;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-style-align-left,
    .image-style-align-right {
        float: none;
        display: block;
        margin: 0 auto 1rem auto;
        max-width: 100%;
    }
}

/* CKEditor figure/caption styles */
figure.image {
    display: inline-block;
    margin: 1rem 0;
    text-align: center;
}

    figure.image img {
        max-width: 100%;
        height: auto;
    }

    figure.image figcaption {
        font-size: 0.9rem;
        color: #666;
        margin-top: 0.5rem;
    }
