

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.lightbox-title {

  color: #000!important;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.lightbox-header {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 10px 0;
    z-index: 10;
}

.lightbox-img-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 80%;
    overflow: hidden;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    border-radius: 10px;
}

.lightbox-hover-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.lightbox-img-container:hover .lightbox-hover-text {
    opacity: 1;
}



.lightbox-thumbnails {

    display: grid;

    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(16, 1fr); /* Erstellt drei Spalten mit gleicher Breite */
    grid-template-rows: repeat(3, 1fr); /* Erstellt drei Zeilen mit gleicher Höhe */

    gap: 10px;

    margin-top: 25px;

}


.lightBox-edit {
display: flex;
}




.thumbnail {

    width: 50px;

    cursor: pointer;
    border-radius: 2px;

}


.current-thumbnail {
    border: 2px solid #F3DA65; /* Goldene Farbe, um das aktuelle Thumbnail hervorzuheben */
    opacity: 0.6;
}


.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    cursor: pointer;
    color: white;
    z-index: 20;
}

.download-btn {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    z-index: 20;
}

.navigation {
    position: absolute;
    top: 40%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev, .next {
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}





/** FILTER **/


.filter-buttons {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 70px;
}

.filter-buttons button {
    padding: 10px 50px;
    margin: 5px;
    cursor: pointer;
    border: none;
    background-color: #ddd;
    border-radius: 5px;
    font-size: 17px;
}

.filter-buttons button.active {
    background-color: #333;
    color: white;
}

.gallery__item {
display: block; /* Entferne das "display: none" */
}

.gallery__item.active {
display: block; /* Stelle sicher, dass aktive Elemente sichtbar sind */
}

.gallery__item.inactive {
display: none; /* Deaktiviere nur nicht ausgewählte Bilder */
}



@media screen and (max-width: 1200px) {
  .lightbox-thumbnails {

      display: grid;

      justify-content: center;
      align-items: center;
      grid-template-columns: repeat(12, 1fr); /* Erstellt drei Spalten mit gleicher Breite */
      grid-template-rows: repeat(4, 1fr); /* Erstellt drei Zeilen mit gleicher Höhe */

      gap: 10px;

      margin-top: 25px;

  }
}


@media screen and (max-width: 1060px) {

  .filter-buttons button {
      padding: 10px 30px;
      margin: 5px;
      cursor: pointer;
      border: none;
      background-color: #ddd;
      border-radius: 5px;
      font-size: 15px;
  }

}



@media screen and (max-width: 830px) {

  .filter-buttons button {
      padding: 10px 25px;
      margin: 5px;
      cursor: pointer;
      border: none;
      background-color: #ddd;
      border-radius: 5px;
      font-size: 14px;
  }

}




@media screen and (max-width: 900px) {
  .lightbox-thumbnails {

      display: grid;

      justify-content: center;
      align-items: center;
      grid-template-columns: repeat(9, 1fr); /* Erstellt drei Spalten mit gleicher Breite */
      grid-template-rows: repeat(5, 1fr); /* Erstellt drei Zeilen mit gleicher Höhe */

      gap: 10px;

      margin-top: 25px;

  }



  .navigation {
      position: absolute;
      top: 30%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
  }
}




@media screen and (max-width: 650px) {
  .lightbox-thumbnails {

      display: grid;

      justify-content: center;
      align-items: center;
      grid-template-columns: repeat(6, 1fr); /* Erstellt drei Spalten mit gleicher Breite */
      grid-template-rows: repeat(8, 1fr); /* Erstellt drei Zeilen mit gleicher Höhe */

      gap: 10px;

      margin-top: 25px;

  }


  .navigation {
      position: absolute;
      top: 20%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
  }


}



@media screen and (max-width: 450px) {
  .lightbox-thumbnails {

      display: grid;

      justify-content: center;
      align-items: center;
      grid-template-columns: repeat(5, 1fr); /* Erstellt drei Spalten mit gleicher Breite */
      grid-template-rows: repeat(10, 1fr); /* Erstellt drei Zeilen mit gleicher Höhe */

      gap: 10px;

      margin-top: 25px;

  }





  .navigation {
      position: absolute;
      top: 15%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
  }


}




@media screen and (max-width: 360px) {
  .lightbox-thumbnails {

      display: grid;

      justify-content: center;
      align-items: center;
      grid-template-columns: repeat(4, 1fr); /* Erstellt drei Spalten mit gleicher Breite */
      grid-template-rows: repeat(11, 1fr); /* Erstellt drei Zeilen mit gleicher Höhe */

      gap: 10px;

      margin-top: 25px;

  }
}
