#lightbox-gallery {
    position: fixed;
    inset: 0;
    z-index: 9999999;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}


.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 60px; /* Abstand für Buttons */
    box-sizing: border-box;
}


#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
    position:absolute;
    background:none;
    border:none;
    color:white;
    font-size:42px;
    cursor:pointer;
    user-select:none;
}

.lightbox-prev { left:20px; }
.lightbox-next { right:20px; }
.lightbox-close {
    top:10px;
    right:20px;
    font-size:36px;
}

.lightbox-delete {
    position: absolute;
    top: 10px;
    right: 60px;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
}


.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 6px;
}

.image-lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

.image-lightbox-title {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
}

.lightbox-delete svg {
    display: block;
}