﻿/* Images de la bibliothèque dans un texte riche : position et largeur choisies dans l'éditeur. */
.cms-img, picture.cms-img {
    max-width: 100%;
    height: auto;
}

picture.cms-img {
    display: inline-block;
}

    picture.cms-img > img {
        width: 100%;
        height: auto;
    }

.cms-img-gauche {
    float: left;
    margin: .25rem 1rem .5rem 0;
}

.cms-img-droite {
    float: right;
    margin: .25rem 0 .5rem 1rem;
}

.cms-img-centre {
    display: block;
    margin: .5rem auto;
}

.cms-img-w50 {
    width: 50%;
}

.cms-img-w33 {
    width: 33.333%;
}

.cms-img-w25 {
    width: 25%;
}

@media (max-width: 575.98px) {
    .cms-img-gauche, .cms-img-droite {
        float: none;
        display: block;
        margin: .5rem auto;
    }

    .cms-img-w50, .cms-img-w33, .cms-img-w25 {
        width: 100%;
    }
}
