/* Compatibility for markup changes between Contao 4.13 and Contao 5.3. */

/* The original stylesheet hides `.mod_navigation li.last`. Contao 5 no
   longer adds the `last` class, therefore target the actual last item. */
#header .mod_navigation li:last-child {
  display: none;
}

/* Contao 4 wrapped custom-navigation link labels in a span. The theme's
   global span rule therefore rendered footer labels in Raleway, while
   Contao 5's unwrapped link text would otherwise use Roboto. */
#footer .mod_customnav a {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
}

/* Contao 5 gallery markup no longer contains the legacy `ce_gallery`,
   `cols_*`, `col_*` and `image_container` classes used by this theme. */
#main .inside .content-gallery > ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

#main .inside .content-gallery > ul > li {
  width: 33.333%;
  margin: 0 0 15px;
  padding: 0 15px 0 0;
  list-style: none;
}

#main .inside .content-gallery figure,
#main .inside .content-gallery img {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  #main .inside .content-gallery > ul > li {
    width: 100%;
  }
}
