.ng-lightbox {
    align-items: center;
    background: rgba(17, 24, 39, 0.92);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: fixed;
    z-index: 2100;
}

.ng-lightbox.is-open {
    display: flex;
}

.ng-lightbox__backdrop {
    inset: 0;
    position: absolute;
}

.ng-lightbox__dialog {
    color: #fff;
    display: grid;
    gap: 1rem;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: 100%;
    max-width: min(1200px, 96vw);
    position: relative;
    width: 100%;
    z-index: 1;
}

.ng-lightbox__toolbar {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.ng-lightbox__counter {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    margin-right: auto;
}

.ng-lightbox__button {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ng-lightbox__button:hover,
.ng-lightbox__button:focus {
    background: rgba(255, 255, 255, 0.2);
}

.ng-lightbox__stage {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 0;
}

.ng-lightbox.is-single .ng-lightbox__stage {
    grid-template-columns: minmax(0, 1fr);
}

.ng-lightbox.is-single [data-ng-lightbox-prev],
.ng-lightbox.is-single [data-ng-lightbox-next],
.ng-lightbox.is-single .ng-lightbox__counter {
    display: none;
}

.ng-lightbox__viewport {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 0;
    overflow: auto;
}

.ng-lightbox__image {
    cursor: zoom-in;
    max-height: 76vh;
    max-width: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.18s ease;
}

.ng-lightbox.is-zoomed .ng-lightbox__image {
    cursor: zoom-out;
    transform: scale(1.18);
}

.ng-lightbox__caption {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    line-height: 1.45;
    min-height: 1.45em;
    text-align: center;
}

@media (max-width: 768px) {
    .ng-lightbox {
        padding: 1rem;
    }

    .ng-lightbox__stage {
        grid-template-columns: 1fr;
        position: relative;
    }

    .ng-lightbox__stage > .ng-lightbox__button {
        background: rgba(255, 255, 255, 0.16);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .ng-lightbox__stage > .ng-lightbox__button[data-ng-lightbox-prev] {
        left: 0.25rem;
    }

    .ng-lightbox__stage > .ng-lightbox__button[data-ng-lightbox-next] {
        right: 0.25rem;
    }

    .ng-lightbox__image {
        max-height: 68vh;
    }
}
