/* --- Allgemeine Seitengestaltung --- */
    /*body {
      margin: 0;
      padding: 0;
      background-color: #121212; /* Dunkles, modernes Design *//*
      color: #ffffff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    header {
      text-align: center;
      padding: 40px 20px 20px 20px;
    }

    header h1 {
      margin: 0 0 10px 0;
      font-size: 2.5rem;
      font-weight: 300;
      letter-spacing: 2px;
    }

    header p {
      margin: 0;
      color: #888;
      font-size: 1rem;
    }*/
/* Diese Klasse wird per JavaScript hinzugefügt */
header.hidden {
  /* Schiebt den Header um seine eigene Höhe nach oben aus dem Bild */
  transform: translateY(-200%); 
}

.nav-trigger.hidden {
  /* Schiebt den Header um seine eigene Höhe nach oben aus dem Bild */
  transform: translateY(-200%); 
}
    /* --- Masonry Grid Layout --- */
    .image-grid {
      column-count: 4;
      column-gap: 15px;
      grid-gap: 1em;
      padding: 20px;
      padding: 0;
      max-width: 1390px;
      margin: 0 auto 0 auto;
      margin-bottom: 15px;
    }

    .image-grid img {
      width: 100%;
      display: block;
      margin-bottom: 15px;
      height: auto;
      /*border-radius: 8px;*/
      break-inside: avoid;
      cursor: pointer;
      /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    }

    /* Hover-Effekt für die Bilder im Raster */
    /*.masonry-grid img:hover {
      transform: scale(1.02);
      box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
    }*/

    /* --- Lightbox Styles --- */
    .lightboxb {
      display: none; /* Standardmässig unsichtbar */
      position: fixed;
      z-index: 10000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: var(--ovfarbe);
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    /* Das grosse Bild in der Lightbox */
    .lightboxb-content {
      max-width: 85%;
      max-height: 80%;
      /*border-radius: 6px;*/
      /*box-shadow: 0 10px 30px rgba(0,0,0,0.8);*/
      animation: zoomIn 0.25s ease-out;
    }

    /* Bildbeschreibung unter dem Bild */
    #lightboxbtext {
      color: var(--ovtext);
      margin-top: 20px;
      font-size: 1.1rem;
      letter-spacing: 0.5px;
      text-align: center;
      padding: 0 20px;
    }

    /* Schliessen-Button (X) */
    .close-btn {
      position: absolute;
      top: 15px;
      right: 35px;
      color: var(--ovtext);
      font-size: 55px;
      font-weight: 200;
      cursor: pointer;
      transition: color 0.2s, transform 0.2s;
      user-select: none;
    }

    .close-btn:hover {
      color: var(--hoverfa);
      transform: scale(1.1);
    }

    /* Navigations-Pfeile */
    .nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      /*background: rgba(255, 255, 255, 0.05);*/
      /*color: white;*/
      color: var(--ovtext);
      /*border: 1px solid rgba(255, 255, 255, 0.1);*/
      font-size: 2rem;
      padding: 15px 22px;
      cursor: pointer;
      /*border-radius: 50%;*/
      /*transition: background 0.2s, transform 0.2s;*/
      z-index: 10010;
      user-select: none;
    }

    .nav-btn:hover {
      /*background: rgba(255, 255, 255, 0.2);*/
      /*color: var(--hoverfa);*/
      transform: translateY(-50%) scale(1.05);
    }

    .prev-btn { left: 30px; }
    .next-btn { right: 30px; }

    /* Animation für das sanfte Öffnen des Bildes */
    @keyframes zoomIn {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    /* --- Responsive Anpassung für Mobilgeräte --- */

    @media (max-width: 1360px) {
      .image-grid { column-count: 3; }
      .prev-btn { left: 25px; }
      .next-btn { right: 25px; }
    }

    @media (max-width: 1030px) {
      .image-grid { column-count: 2; }
      .prev-btn { left: 15px; }
      .next-btn { right: 15px; }
    }

    @media (max-width: 680px) {
      .image-grid { column-count: 1; padding: 0; }/*padding: 10px;*/

      .image-grid img:last-child{margin: 0;} 
      
      /* Pfeile auf dem Smartphone nach unten verschieben */
      .nav-btn {
        top: auto;
        bottom: 25px;
        transform: none;
        padding: 10px 18px;
        font-size: 1.8rem;
      }
      .nav-btn:hover { transform: scale(1.05); }
      .prev-btn { left: 15%; }
      .next-btn { right: 15%; }
      .close-btn { font-size: 55px;}
      #lightboxbtext { margin-top: 10px; margin-bottom: 80px; }
    }