/* Lightbox overlay */
#lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#lightbox-overlay.active {
    display: flex;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

#lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* Signature pad (App\Form\SignatureType, signature-pad Stimulus controller) */
.signature-pad {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}
.signature-field.has-error .signature-pad {
    border-color: #a94442;
}
.signature-pad-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-bottom: 1px solid #eee;
}
.signature-pad-hint {
    flex: 1;
    color: #888;
    font-size: 12px;
}
.signature-pad-canvas {
    display: block;
    width: 100%;
    height: 180px;
    /* Keeps the page from scrolling while drawing with a finger. */
    touch-action: none;
    cursor: crosshair;
}
.signature-pad.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
}
.signature-pad.is-fullscreen .signature-pad-canvas {
    flex: 1;
    height: auto;
}
body.signature-pad-open {
    overflow: hidden;
}
