/* Gallerie bis 992px auf volle Breite */
@media (max-width: 992px) {
  .ce-gallery {
    width: 100%;
  }
}

/* Anpassungen von kleinen bis groesseren Geraeten */
/*@media (min-width: 640px) and (max-width: 1200px) {*/
@media (min-width: 640px) {
  .ce-bodytext {
    clear: both;
  }

  .ce-gallery .ce-column {
    display: inline-block;
    margin: 0;
    /* Abstand zwischen Bildern */
    padding: 0 5px 10px;
    box-sizing: border-box;
    float: left;
  }

  /* Kein Abstand beim ersten und letzten Bild */
  /*
  .ce-gallery .ce-column:first-child {
    padding-left: 0;
  }
  .ce-gallery .ce-column:last-child {
    margin-right: 0;
  }
  */
  /* Fluid Image Tags */
  .ce-gallery img,
  .ce-gallery picture {
    width: 100%;
    height: auto;
  }

  /* Spaltenbreiten je nach eingestellten Columns */
  .ce-gallery[data-ce-columns="2"] .ce-column {
    width: 50%;
  }

  .ce-gallery[data-ce-columns="3"] .ce-column {
    width: 33%;
  }

  .ce-gallery[data-ce-columns="4"] .ce-column {
    width: 25%;
  }

  .ce-gallery[data-ce-columns="5"] .ce-column {
    width: 20%;
  }
}

/* Anpassungen fuer kleine Geraete */
@media (max-width: 640px) {
  /* Ein Bild pro Zeile */
  .ce-gallery .ce-column {
    margin: 0 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Fluid Image Tags */
  .ce-gallery img,
  .ce-gallery picture {
    width: 100%;
    height: auto;
  }
}

/* media */
.hidden-xs-up {
  display: none !important
}
@media (max-width: 767px) {
  .hidden-xs-down {
    display: none !important
  }
}
@media (min-width: 768px) {
  .hidden-sm-up {
    display: none !important
  }
}
@media (max-width: 991px) {
.hidden-sm-down {
display: none !important
}
}
@media (min-width: 992px) {
  .hidden-md-up {
    display: none !important
  }
}
@media (max-width: 1199px) {
  .hidden-md-down {
    display: none !important
  }
}

@media (min-width: 1200px) {
  .hidden-lg-up {
    display: none !important
  }
}

.hidden-lg-down {
  display: none !important
}


/*
@media (min-width: 992px) {
  .hidden-lg-up {
    display: none !important
  }
}

@media (max-width: 1199px) {
  .hidden-lg-down {
    display: none !important
  }
}



@media (min-width: 1200px) {
  .hidden-xl-up {
    display: none !important
  }
}
.hidden-xl-down {
  display: none !important
}
*/

/* image */
.ce-media,
.ce-media gfx,
.ce-media picture,
.ce-media img,
.ce-media source {
  width: auto;
  max-width: 100%;
  height: auto;
}

.ce-media {
  padding-bottom: 10px;
}

.ce-textpic .row div {
  text-align: center;
}

.ce-textpic.ce-center .row {
  text-align: center;
}

.ce-textpic.ce-right .row {
  text-align: right;
}

.ce-textpic.ce-left .row {
  text-align: left;
}

.figure-caption {
  margin-top: 10px;
  font-style: italic;
  font-size: 14px;
}

@media (min-width: 768px) {
  .ce-textpic.ce-intext .ce-mediawrap {
    width: 50%;
  }

  .ce-textpic.ce-intext.ce-left .ce-mediawrap {
    float: left;
  }

  .ce-textpic.ce-intext.ce-right .ce-mediawrap {
    float: right;
  }

  .ce-textpic.ce-intext .ce-bodytext {
    clear: none !important;
  }

  .ce-textpic.ce-nowrap .ce-bodytext {
    width: 50%;
    display: block;
    float: left;
  }

  .ce-textpic.ce-intext.ce-left .ce-mediawrap {
    padding-right: 10px;
  }

  .ce-textpic.ce-intext.ce-left .ce-bodytext {
    padding-left: 10px;
  }

  .ce-textpic.ce-intext.ce-right .ce-mediawrap {
    padding-left: 10px;
  }

  .ce-textpic.ce-intext.ce-right .ce-bodytext {
    padding-right: 10px;
  }
}
