/* 0.45.0-test.9 – geschützter Vollauflösungs-Viewer als einzelne Datei. */

button.dsa-photo-main-lightbox.dsa-protected-zoom-trigger {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
}

.dsa-photo-quick-action-button.dsa-protected-zoom-action {
    cursor: zoom-in;
}

html.dsa-protected-zoom-open,
html.dsa-protected-zoom-open body {
    overflow: hidden !important;
}

.dsa-protected-zoom-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #03080d;
    color: #eef6fc;
    overflow: hidden;
}

.dsa-protected-zoom-dialog::backdrop {
    background: rgba(0, 0, 0, .96);
}

.dsa-protected-zoom-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100%;
    background: #03080d;
}

.dsa-protected-zoom-toolbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 58px;
    padding: .6rem .8rem .6rem 1rem;
    border-bottom: 1px solid rgba(147, 198, 232, .22);
    background: rgba(7, 16, 25, .98);
}

.dsa-protected-zoom-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .98rem;
    font-weight: 650;
}

.dsa-protected-zoom-controls {
    display: flex;
    align-items: center;
    gap: .38rem;
    flex: 0 0 auto;
}

.dsa-protected-zoom-controls button,
.dsa-protected-zoom-controls [data-dsa-zoom-label] {
    min-width: 42px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 205, 255, .28);
    border-radius: 9px;
    background: #10202d;
    color: #eaf6ff;
    font: inherit;
    font-size: .88rem;
    line-height: 1;
}

.dsa-protected-zoom-controls button {
    cursor: pointer;
    padding: 0 .72rem;
}

.dsa-protected-zoom-controls button:hover,
.dsa-protected-zoom-controls button:focus-visible {
    background: #17364d;
    border-color: rgba(139, 205, 255, .62);
    outline: none;
}

.dsa-protected-zoom-controls [data-dsa-zoom-label] {
    min-width: 64px;
    border-color: transparent;
    background: transparent;
    color: #b9d4e6;
}

.dsa-protected-zoom-controls .dsa-protected-zoom-close {
    min-width: 42px;
    padding: 0;
    font-size: 1.65rem;
    font-weight: 300;
}

.dsa-protected-zoom-viewport {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #020508;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.dsa-protected-zoom-viewport.is-dragging {
    cursor: grabbing;
}

.dsa-protected-zoom-preview,
.dsa-protected-zoom-full {
    position: absolute;
    display: block;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    object-fit: fill;
}

.dsa-protected-zoom-preview {
    z-index: 1;
    opacity: 1;
    transition: opacity .16s linear;
}

.dsa-protected-zoom-preview.is-hidden {
    opacity: 0;
}

.dsa-protected-zoom-full {
    z-index: 2;
    opacity: 0;
    transition: opacity .16s linear;
    image-rendering: auto;
}

.dsa-protected-zoom-full.is-loaded {
    opacity: 1;
}

.dsa-protected-zoom-status {
    position: absolute;
    z-index: 12;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 28px);
    padding: .46rem .72rem;
    border: 1px solid rgba(139, 205, 255, .28);
    border-radius: 999px;
    background: rgba(4, 10, 16, .82);
    color: rgba(238, 246, 252, .9);
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
}

.dsa-protected-zoom-status.is-error {
    border-color: rgba(255, 130, 130, .55);
    color: #ffd7d7;
}


@media (max-width: 900px) {
    .dsa-protected-zoom-toolbar {
        min-height: 52px;
        padding: .45rem .45rem .45rem .7rem;
        gap: .4rem;
    }

    .dsa-protected-zoom-title {
        font-size: .9rem;
        max-width: 30vw;
    }

    .dsa-protected-zoom-controls {
        gap: .3rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .dsa-protected-zoom-controls button,
    .dsa-protected-zoom-controls [data-dsa-zoom-label] {
        min-height: 36px;
        min-width: 40px;
        font-size: .84rem;
    }
}

@media (max-width: 640px) {
    .dsa-protected-zoom-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .dsa-protected-zoom-title {
        max-width: 100%;
    }

    .dsa-protected-zoom-controls {
        width: 100%;
        justify-content: flex-start;
    }
}
