/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.roboto-mono-500 {
  font-family: "Roboto Mono", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
.roboto-mono-300 {
  font-family: "Roboto Mono", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

/* Body and background */
body {
  font-family: 'Helvetica', sans-serif;
  transition: background-color 0.5s ease-in-out;
  /* background-color: white;*/ /* #f8f7f0;*/ /* Grey background */
  color: grey; /*#63635d;*/
  overflow-x: hidden;
 
}



/* Fixed position text box at the top */
.fixed-text-box {
  position: fixed;
  top: 50vh;
  left: 6%;
  /* transform: translateX(-20%); */
  text-align: left;
  z-index: 2;
mix-blend-mode: difference; 
  width: 90%; /* Allow some flexibility for different screen sizes */

}



h1 {
   
  font-size : clamp(1rem, 2vw, 4rem);
    line-height: 1em;


    /* font-weight: Normal;*/
}

a {
  color: grey; 
  text-decoration: none;
 } 

a:hover {
  color: red; 
  text-decoration: underline;
} 


/* Gallery container 
 display: grid;
   align-items: center;
  grid-template-columns: 1fr 1fr ;
  flex-direction: column;
*/
.gallery {
  display: flex;
  flex-direction: column;
  
  align-items: center;

  /* margin-left: 30%; */
margin-top: 20vh;
  z-index: 1;

}

/* Individual image boxes */
.image-box, .gif-box {
  width: 55%;
  max-width: 500px;
  height: 500px;

  margin: 20vh 0;  /* Abstand zwischen den Bildern */
  display: flex;
  flex-direction: column;  /* Die Items (Bild und Beschreibung) werden untereinander angeordnet */
  align-items: center;  /* Zentrale Ausrichtung der Items */
  justify-content: center;
  text-align: center;  /* Optional, damit die Beschriftung zentriert aussieht */
  z-index: 1;
mix-blend-mode: difference; 

}


.image-box img {
 width: 100%;
  height: 100%;
max-height: 500px;
  object-fit: contain;
  margin-bottom: 10px;

}



.gif-box img {
  width: 100%;
  height: 100%;
max-height: 500px;
  object-fit: contain;
  margin-bottom: 10px;
}


.description {
  font-family: "Roboto Mono", serif;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  
  font-size : clamp(0.5rem, 0.7vw, 1.5rem);
  line-height: 1.1em;
  color: grey;


 mix-blend-mode: difference;


}



.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
padding: 0 10px;
}

.modal-content {
  position: relative;
 
  padding: 2vw;
  text-align: center;
}

.modal img {
 width: auto;
  height: 70vh; 
  object-fit: contain; /* Behält das Seitenverhältnis bei, sodass das Bild nicht verzerrt wird */
  max-height: 70vh; /* Verhindert, dass das Bild die maximale Höhe überschreitet */
  margin: 0 auto;
margin-bottom: 10px; 
}

button {
  position: absolute;
  top: 50%;
  background: rgba(0, 0, 0, 0.0);
  color: grey;
  border: none;
  font-size: 20px;

  cursor: pointer;
z-index: 1000;
}

#prev { left: 10px; }
#next { right: 10px; }

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: grey;
z-index: 1000;
}

@media (max-width: 768px) {
  /* Für kleinere Bildschirme wie Tablets und Handys */
  
  .modal-content {
    padding: 5%; /* Mehr Abstand für kleinere Bildschirme */
width: 90%;
 justify-content: center;
  }

  .modal img {
    max-height: 60vh;  /* Die maximale Höhe des Bildes verringern */
    object-fit: contain; /* Bild skaliert, um das Seitenverhältnis zu wahren */
width: 90%;
 justify-content: center;
  }

  button {
    font-size: 18px;  /* Kleinere Buttons auf mobilen Geräten */
    padding: 1px;

  }

  #prev, #next {
    top: 50%; /* Positionierung der Navigationstasten zentrieren */
    font-size: 24px;
  }

  .close {
    top: 5px;  /* Schließen-Button näher an den oberen Rand positionieren */
    font-size: 30px;
  }
}

/* Sehr kleine Geräte, Smartphones */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 10px;  /* Weniger Padding */
 justify-content: center;
  }

  .modal img {
    max-height: 50vh;  /* Noch kleinere Bilder auf ganz kleinen Geräten */
width: 90%;
 justify-content: center;
  }

  button {
    font-size: 16px;  /* Noch kleinere Schrift */
    padding: 1px;

  }

  #prev, #next {
    font-size: 22px;
  }

  .close {
    font-size: 28px;
  }
}