/* Custom Self-Contained Lightbox/Gallery Component Styles */

/* Main lightbox overlay container */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
}

.custom-lightbox.active {
    display: flex;
}

/* Lightbox Content wrapping the image */
.custom-lightbox-content {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transition: transform 0.25s ease;
}

/* Control Buttons styling */
.custom-lightbox-close,
.custom-lightbox-prev,
.custom-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    outline: none;
    transition: all 0.2s ease;
}

.custom-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.custom-lightbox-prev:hover,
.custom-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

/* Close Button positioning */
.custom-lightbox-close {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 24px;
}

/* Prev/Next positioning */
.custom-lightbox-prev {
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
    transform: translateY(-50%);
    top: 50%;
}

.custom-lightbox-next {
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
    transform: translateY(-50%);
    top: 50%;
}

/* Image counter at bottom */
.custom-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: system-ui, -apple-system, sans-serif;
}
