/**
 * Affichage images : jamais coupées ni déformées (object-fit: contain).
 */
img.img-fit,
.img-fit {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.img-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8fafc;
}

.img-frame--logo {
    height: 3.5rem;
    max-width: 12rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.img-frame--favicon {
    height: 2.5rem;
    width: 2.5rem;
    padding: 0.15rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.img-frame--card {
    width: 100%;
    height: 12rem; /* h-48 */
}

.img-frame--hero {
    width: 100%;
    max-height: 16rem;
    min-height: 10rem;
    border-radius: 0.75rem;
}

.img-frame--thumb {
    height: 7rem;
    width: 12rem;
    max-width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.img-frame--banner-preview {
    width: 100%;
    height: 7rem;
    max-width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.img-frame--viewer {
    width: 100%;
    min-height: 60vh;
    max-height: 80vh;
    background: #f1f5f9;
}

.img-frame--header-logo {
    height: 2rem;
    max-width: 9rem;
    background: transparent;
}

.img-frame--footer-logo {
    height: 1.75rem;
    max-width: 8rem;
    background: transparent;
}

@media (min-width: 640px) {
    .img-frame--header-logo {
        max-width: none;
    }

    .img-frame--hero {
        max-height: 20rem;
        min-height: 12rem;
    }
}

/* Contenu articles (TinyMCE) */
.prose-article img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.prose-article figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.25rem 0;
}

.prose-article figure img {
    max-width: 100%;
}
