.lightbox {
    width: 90vw;
    height: 90vh;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #111;
    overflow: hidden;
    position: relative;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.lb-images {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lb-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btn-floating {
    position: absolute;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-floating:hover {
    background: rgba(0,0,0,0.8);
}

.lb-close { top: 10px; right: 10px; }
.lb-prev  { top: 50%; left: 10px; transform: translateY(-50%); }
.lb-next  { top: 50%; right: 10px; transform: translateY(-50%); }
.lb-dl    { bottom: 10px; right: 10px; }

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.lb-images {
    width: 100%; height: 100%;
    position: relative;
    overflow: hidden;
}

.lb-images img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease-out, opacity 0.3s;

    opacity: 0;
    pointer-events: none;
}

.lb-images img.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.lb-images img.enter-right { transform: translateX(100%); }
.lb-images img.enter-left  { transform: translateX(-100%); }
