#custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
    max-height: 80%;
}

#lightbox-image {
    max-width: 100%;
    height: auto;
}

/* #lightbox-caption {
    margin-top: 10px;
    color: white;
    font-size: 1rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 4px;
    max-width: 100%;
    word-break: break-word;
} */

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

#lightbox-prev, #lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
}

#lightbox-prev {
    left: 10px;
}

#lightbox-next {
    right: 10px;
}

#lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
}

.lightbox-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-image {
    max-width: 100%;
    height: auto;
    display: block;
}


.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6); /* semi-transparent black background */
    color: #f3f3f3;
    padding: 8px;
    text-align: left;
    line-height: 18px;
    box-sizing: border-box;
    word-wrap: break-word;
    font-size: 11px;
}

.lightbox-image-wrapper {
    position: relative;
    display: inline-block;
}
