/* TownTown: Ergänzungen für Contao 5.
   Contao 5 erzeugt bei Galerien <div class="content-gallery"> mit <figure> statt
   <div class="ce_gallery block"> mit <div class="image_container">. Die Regeln
   unten bilden die alten .ce_gallery-Regeln aus style.css auf das neue Markup ab. */

#main .content-gallery ul {
    margin-left: 0;
}

.content-gallery li {
    list-style-type: none;
    display: block;
    float: left;
    height: 170px;
    padding-bottom: 1.5em;
}

.content-gallery figure {
    margin: 0;
    padding-right: 10px;
}

/* Alt: das letzte Bild jeder Reihe (li.col_last) floatet nicht. Alle Galerien haben 5 Spalten. */
#main .content-gallery--cols-5 li:nth-child(5n) {
    float: none;
}

/* Download-Liste: Contao 5 setzt Listenklassen, das alte Theme hatte keine Icons */
#main .content-downloads li {
    list-style-type: square;
}
