/* ===== FIX CKEDITOR 5 RESPONSIVE IMAGES ===== */

figure.image,
figure.image.image_resized {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

figure.image img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

figure.image.image_resized img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}
/* ===== RESPONSIVE GOOGLE DRIVE PDF ===== */

.pdf-drive-responsive {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    box-sizing: border-box;
}

.pdf-drive-responsive iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 82vh;
    min-height: 650px;
    border: 0;
    box-sizing: border-box;
}

@media (max-width: 991.98px) {
    .pdf-drive-responsive iframe {
        height: 80vh;
        min-height: 600px;
    }
}

@media (max-width: 575.98px) {
    .pdf-drive-responsive {
        margin: 12px auto;
    }

    .pdf-drive-responsive iframe {
        height: 75vh;
        min-height: 500px;
    }
}

/* ===== GOOGLE DRIVE PDF - OVERRIDE CKEDITOR NVIFRAME ===== */

.pdf-drive-responsive {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
}

.pdf-drive-responsive .nvck-iframe {
    position: relative !important;
    width: 100% !important;
    height: 82vh !important;
    min-height: 650px !important;
    padding-bottom: 0 !important;
}

.pdf-drive-responsive .nvck-iframe-inner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.pdf-drive-responsive iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

@media (max-width: 575.98px) {
    .pdf-drive-responsive .nvck-iframe {
        height: 75vh !important;
        min-height: 500px !important;
    }
}