/* CKEditor Figure/Image Container */
figure.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 1em auto;
}

/* Sağa Yaslanmış Resimler */
figure.image.image-style-align-right {
    float: right;
    margin-left: 15px;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 15px;
    clear: right;
}

/* Sola Yaslanmış Resimler */
figure.image.image-style-align-left {
    float: left;
    margin-right: 15px;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 15px;
    clear: left;
}

/* Ortaya Hizalanmış Resimler */
figure.image.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
    display: block;
    clear: both;
}

/* Resim Boyutlandırma */
figure.image.image_resized {
    display: table;
    max-width: 100%;
}

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

/* Genel Image Stilleri */
figure.image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Inline width style'ı olan resimler için */
figure.image[style*="width"] {
    display: table;
}

figure.image[style*="width"] img {
    width: 100%;
    height: auto;
}

/* Figure Caption (varsa) */
figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    word-wrap: break-word;
    color: #666;
    background-color: #f7f7f7;
    padding: 0.6em;
    font-size: 0.9em;
    text-align: center;
}

/* Float temizleme */
.clearfix::after,
figure.image::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive için */
@media (max-width: 768px) {
    figure.image.image-style-align-right,
    figure.image.image-style-align-left {
        float: none;
        margin: 1em auto;
        display: block;
    }
}