.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.image-lightbox.active {
    display: block;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    height: calc(100% - 20px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content.zoomed {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    overflow: auto;
}

.lightbox-content.zoomed img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-zoom {
    position: absolute;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 1010;
}

.lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
}

.lightbox-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-zoom {
    bottom: 10px;
    right: 10px;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 4px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-zoom:hover {
    color: #ccc;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Add styles for zoom controls */
.lightbox-zoom-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1010;
}

.lightbox-zoom-level {
    color: white;
    margin: 0 8px;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

.lightbox-zoom-in,
.lightbox-zoom-out {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.lightbox-zoom-in:hover,
.lightbox-zoom-out:hover {
    color: #ccc;
} 