/* Lightbox Overlay */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    user-select: none;
}

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

.gallery-lightbox .close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.gallery-lightbox .close-btn:hover {
    opacity: 1;
}

.gallery-lightbox .counter {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    z-index: 10;
}

.gallery-lightbox .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    background: none;
    border: none;
    padding: 1rem;
    line-height: 1;
}

.gallery-lightbox .nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox .nav-btn.prev {
    left: 0.5rem;
}

.gallery-lightbox .nav-btn.next {
    right: 0.5rem;
}

.gallery-lightbox .lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    min-height: 0;
}

.gallery-lightbox .lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
}

.gallery-lightbox .lightbox-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    padding: 0.5rem 1rem 0;
    max-width: 80%;
}

/* Thumbnail Strip */
.gallery-lightbox .thumb-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem 1.5rem;
    width: 100%;
    overflow-x: auto;
}

.gallery-lightbox .thumb-strip .thumb-item {
    width: 4rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-lightbox .thumb-strip .thumb-item:hover {
    opacity: 0.7;
}

.gallery-lightbox .thumb-strip .thumb-item.active {
    opacity: 1;
    border-color: #14b8a6;
    transform: scale(1.1);
}

.gallery-lightbox .thumb-strip .thumb-item.prev,
.gallery-lightbox .thumb-strip .thumb-item.next {
    opacity: 0.6;
    transform: scale(0.85);
}

/* Cursor pointer utility */
.cursor-pointer {
    cursor: pointer;
}
