/*
 * Gabarit « mur » du module Articles (lot 2.20 c) : CSS du mur d'actualités
 * JUX News Wall (module 196). Trois sources, dans l'ordre où JUX les
 * chargeait : son style.css (parties utilisées : sans boutons de filtre,
 * « charger plus », animation de chargement), les règles qu'il générait
 * depuis les réglages du module, le CSS personnalisé du module (sans ses
 * largeurs par taille d'écran, remplacées par la grille). Chargé après les
 * CSS du template ; .wall-image de filii.css (140px !important) l'emporte
 * toujours.
 */

/* style.css de JUX News Wall */
.news-wall-filters #filter li.next {
    margin-left: 6px;
    display: inline-block;
    list-style-type: none;
}
.wall-item {
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.wall-item .wall-top .wall-image {
    max-width: 100%;
}
.wall-item .wall-bottom .item-content {
    padding: 20px;
    position: relative;
    margin: 0px 0 !important;
}
.wall-item .wall-bottom .item-content:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid;
    position: absolute;
    top: -11px;
    left: 20px;
}
.wall-item .wall-bottom .item-content .catItemTitle {
    margin: 0;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}
.wall-item .wall-bottom .item-content .catItemDateCreated {
    font-family: "Geogria";
    text-transform: none;
    font-size: 12px;
    color: #7c7c7c;
    font-style: italic;
    font-weight: normal;
    padding: 10px 0;
    margin: 0;
}
.wall-item .wall-bottom .item-content .catItemIntroText {
    padding-bottom: 10px;
    font-size: 13px;
    color: #666;
}
.wall-item .wall-bottom .item-content .catItemLinks {
    border-top: 1px solid #7c7c7c;
    margin: 0;
}

/* Règles générées par JUX depuis les réglages du module 196 */
.itemListView .news-wall-filters ul {
    text-align: left;
}
.itemListView .wall-item .wall-bottom .item-content:before {
    border-bottom-color: #f2f0ed;
}
.itemListView .wall-item {
    padding: 8px;
}
.itemListView .wall-item .wall-bottom {
    background-color: #f2f0ed;
}

/* CSS personnalisé du module 196 */
.itemListView {
    margin: auto;
    max-width: 1200px;
}
.wall-image {
    max-height: 110px;
    overflow: hidden;
    background-color: #fff;
}
.wall-image img {
    margin: 0px !important;
    width: 100%;
    height: auto;
    position: relative;
    vertical-align: middle;
    top: -10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.item-content, .catItemDateCreated {
    font-family: calibri, arial, sans-serif !important;
    line-height: 16px;
}
.catItemDateCreated {
    text-align: right;
    border-top: 1px solid #cdcdcd;
    padding-bottom: 0px !important;
    font-size: 13px;
    line-height: 13px;
}
.catItemTitle {
    font-family: ubuntu, calibri, arial, sans-serif;
    font-weight: normal !important;
    padding-bottom: 10px;
}
.catItemTitle a {
    color: #D79600 !important;
}
.catItemTitle a:hover {
    color: #eea800 !important;
}
.wall-item .wall-bottom .item-content {
    padding: 16px 18px 12px 18px;
}
.wall-item .wall-bottom .item-content .catItemLinks {
    border-top: 0px;
    margin: 0;
}
.news-wall-filters #filter {
    margin-left: 10px;
}
.news-wall-filters #filter li.next.search {
    display: block;
    margin-top: 20px;
    margin-left: 0px;
}
.wall-item .wall-top .wall-image a {
    position: relative;
}
.wall-item.no-image .wall-bottom .item-content::before {
    display: none;
}

/* Grille à la place de la mosaïque isotope : 5 colonnes, 4 de 768 à 960px,
   3 en dessous, 2 de 380 à 500px, 1 en dessous de 380px (largeurs de JUX et
   du CSS personnalisé) */
.mur-grille {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (min-width: 768px) and (max-width: 960px) {
    .mur-grille {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .mur-grille {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .mur-grille {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (min-width: 380px) and (max-width: 500px) {
    .mur-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
