/* VANDAYS FULL-SCREEN PHOTO VIEWER */

#photo-dialog {
    box-sizing: border-box !important;
    width: 98vw !important;
    max-width: 98vw !important;
    max-height: 98dvh !important;
    padding: 12px !important;
    overflow: auto !important;
}

#photo-dialog::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

#photo-dialog .vd-photo-zoom-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 12px;
}

#photo-dialog .vd-photo-zoom-toolbar button {
    min-width: 46px;
    min-height: 40px;
    padding: 7px 16px;
    background: #292929;
    color: #fff;
    border: 1px solid #777;
    border-radius: 5px;
    font: inherit;
    cursor: pointer;
}

#photo-dialog .vd-photo-zoom-toolbar button:hover {
    background: #444;
}

#photo-dialog .vd-photo-zoom-toolbar button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

#photo-dialog .vd-photo-zoom-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 75dvh;
    max-height: 75dvh;
    overflow: hidden;
    background: #111;
    cursor: zoom-in;
    touch-action: none;
    user-select: none;
    border-radius: 4px;
}

#photo-dialog .vd-photo-zoom-stage.is-zoomed {
    cursor: grab;
}

#photo-dialog .vd-photo-zoom-stage.is-zoomed:active {
    cursor: grabbing;
}

#photo-dialog .vd-photo-zoom-stage img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    transform-origin: center center !important;
    transition: none !important;
    pointer-events: none !important;
}

@media (max-width: 600px) {
    #photo-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 8px !important;
    }

    #photo-dialog .vd-photo-zoom-stage {
        height: 72dvh;
        max-height: 72dvh;
    }
}
