.lb1d-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1055;
}

.lb1d-overlay.is-open {
    display: flex;
}

.lb1d-dialog {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 24px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 12px;
}

.lb1d-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.lb1d-caption {
    color: #f2f2f2;
    font-size: 0.95rem;
    text-align: center;
}

.lb1d-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb1d-button {
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.lb1d-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lb1d-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.lb1d-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lb1d-prev {
    left: -8px;
}

.lb1d-next {
    right: -8px;
}

.lb1d-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.lb1d-counter {
    color: #e5e5e5;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .lb1d-dialog {
        padding: 14px;
    }

    .lb1d-nav {
        width: 36px;
        height: 36px;
    }
}
