* {
    box-sizing: border-box;
  }
 
  body{
    padding:0;
    margin:0;
  }

  #imgAloneGalery{
    position:fixed;
    z-index: 13;
    display: block;
    width: 100%;
    z-index: -1;
}

  .gifPositionCenter{
    position:absolute;
    z-index: 0;
    display:block;
    left: 50%;
    transform: translate(-50%);
    width:27%;
    top: 5vw;
}

.gifSize{
    width:100%;
}

  ul {
    padding: 0;
    zoom: 1;
  }
  ul:before,
  ul:after {
    display: table;
    content: "";
    line-height: 0;
  }
  ul:after {
    clear: both;
  }
  li {
    list-style-type:none;
    float: left;
    width: 95%;
    margin: 0 5% 5% 5%;
    box-shadow: 1px 3px 8px rgba(0,0,0,0.5);  
  }

  .imgGallery {
    display: block;
    width: 100%;
  }

  #imagesContainer{
    padding: 0; /* Default: kein padding */
  }

  /* Padding nur für größere Bildschirme (Landscape/Desktop) */
  @media (min-width: 768px) and (orientation: landscape) {
    #imagesContainer{
      padding: 0 15% 0 15%;
    }
  }

  section{
    float: left;
    width: 100%; /* Default: volle Breite */
    padding: 0.5% 0 0 0;
  }

  /* Section schmaler nur für größere Bildschirme */
  @media (min-width: 768px) and (orientation: landscape) {
    section{
      width: 95%;
    }
  }

  .textelement{
    list-style-type:none;
    float: left;
    width: 100%; /* Default: volle Breite */
    margin: 0 0 3% 0; /* Default: kein seitlicher margin */
    box-shadow: none;
  }

  /* Textelement schmaler nur für größere Bildschirme */
  @media (min-width: 768px) and (orientation: landscape) {
    .textelement{
      width: 95%;
      margin: 0 5% 0 5%;
    }
  }

  img[onClick]{
    cursor:pointer;
  }
  #preview{
    width:100%;
    position:fixed;
    display:none;
    z-index:100;
    background-image: url("../images/70backgroundGrey.png");
    top:0;
    left:0;
    right:0;
    bottom:0;
  }
  #preview #imgPrev{
    display:block;
    margin: 0 auto;
  }

  #preview_inner{
    position:absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 1px 3px 8px rgba(0,0,0,0.5); 
    background-image: url("../images/70backgroundGrey.png");
  }
  
  #preview a.close{
    cursor:pointer;
    float:right;
    margin:0;
    width:70px;
    height:70px;
    text-align:right;
    box-sizing:border-box;
    padding:15px 20px;
    background-color:#AB5D4B;
    color:#fff;
    border-radius:0 0 0 100%;
    font-family:Arial;
    font-size:18px;
  }
  #preview a.close:hover{
    background-color:#C6442A;
  }