/* Lightbox Print Button — frontend v3.2.5
   Alle knop-afmetingen in em zodat font-size alles schaalt. */

/* ── Wrapper ──────────────────────────────────────────────── */
.lpb-buttons-wrapper {
    position: absolute;
    bottom: 20px; top: auto; left: 0;
    width: 100%; z-index: 9999;
    display: flex; justify-content: center; align-items: flex-end;
    pointer-events: none;
    transition: opacity .22s ease;
}
.lpb-buttons-wrapper .lpb-buttons-container { pointer-events: auto; }
.lpb-pos-bottom-left  { justify-content: flex-start; padding-left: 20px; }
.lpb-pos-bottom-right { justify-content: flex-end;   padding-right: 20px; }
.lpb-pos-top-center   { bottom: auto; top: 20px; align-items: flex-start; }

/* ── Container — font-size is set via JS (button_size px) ── */
.lpb-buttons-container {
    display: flex;
    gap: .55em;
    background: rgba(0,0,0,.54);
    padding: .6em .9em;
    border-radius: .6em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    align-items: center;
}

/* ── Base button — all sizing in em ──────────────────────── */
.lpb-lightbox-button {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .52em 1.05em;
    border: none;
    border-radius: .35em;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.4;
    white-space: nowrap;
    transition: filter .18s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.lpb-lightbox-button svg {
    flex-shrink: 0;
    width: 1em; height: 1em;
}
.lpb-lightbox-button:hover {
    filter: brightness(.86);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.lpb-lightbox-button:active {
    transform: translateY(0) scale(.96);
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: transform .06s, box-shadow .06s;
}

/* ── Outline style ──────────────────────────────────────── */
.lpb-lightbox-button.lpb-style-outline {
    background: transparent;
    border: 2px solid currentColor;
    box-shadow: none;
    padding: calc(.52em - 2px) calc(1.05em - 2px);
}
.lpb-lightbox-button.lpb-style-outline:hover { filter: none; opacity: .8; }

/* ── Icon only ──────────────────────────────────────────── */
.lpb-lightbox-button.lpb-style-icon { padding: .52em .62em; border-radius: .35em; }

/* ── Modern (pill) ──────────────────────────────────────── */
.lpb-lightbox-button.lpb-style-modern {
    border-radius: 2em;
    padding: .55em 1.3em;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: transform .22s cubic-bezier(.34,1.56,.64,1),
                box-shadow .22s ease, filter .18s;
    position: relative; overflow: hidden;
}
.lpb-lightbox-button.lpb-style-modern::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.35) 0%, transparent 65%);
    opacity: 0; transition: opacity .3s;
    pointer-events: none;
}
.lpb-lightbox-button.lpb-style-modern:hover {
    filter: brightness(.9);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.lpb-lightbox-button.lpb-style-modern:hover::after { opacity: 1; }
.lpb-lightbox-button.lpb-style-modern:active {
    transform: scale(.94);
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    transition: transform .08s, box-shadow .08s;
}

/* Ripple for modern */
.lpb-ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.4);
    width: 2.4em; height: 2.4em;
    margin-top: -1.2em; margin-left: -1.2em;
    animation: lpb-ripple .5s ease-out forwards;
    pointer-events: none;
}
@keyframes lpb-ripple {
    from { transform: scale(0); opacity: 1; }
    to   { transform: scale(3.5); opacity: 0; }
}

/* ── Mobile FAB ─────────────────────────────────────────── */
.lpb-buttons-wrapper.lpb-touch {
    position: fixed !important;
    bottom: 24px !important; right: 16px !important;
    top: auto !important; left: auto !important; width: auto !important;
    flex-direction: column-reverse; align-items: flex-end;
    pointer-events: auto; opacity: 1 !important; z-index: 99999;
}
.lpb-buttons-wrapper.lpb-touch .lpb-buttons-container {
    flex-direction: column; align-items: stretch;
    gap: .5em; padding: .7em;
    transform-origin: bottom right;
    transform: scale(.84) translateY(8px);
    opacity: 0; pointer-events: none;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}
.lpb-buttons-wrapper.lpb-touch.lpb-expanded .lpb-buttons-container {
    transform: scale(1) translateY(0); opacity: 1; pointer-events: auto;
}
.lpb-buttons-wrapper.lpb-touch.lpb-visible { flex-direction: row; align-items: flex-end; }
.lpb-buttons-wrapper.lpb-touch.lpb-visible .lpb-buttons-container {
    flex-direction: row; flex-wrap: wrap;
    transform: none; opacity: 1; pointer-events: auto;
}
.lpb-touch-fab {
    width: 52px; height: 52px; border-radius: 50%;
    border: none; cursor: pointer;
    font-size: 24px; font-weight: 300; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.28);
    transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    flex-shrink: 0; margin-top: 8px;
}
.lpb-touch-fab:active { transform: scale(.9); }
.lpb-buttons-wrapper.lpb-touch.lpb-expanded .lpb-touch-fab { transform: rotate(45deg); }

.mfp-container .mfp-figure .lpb-buttons-wrapper { z-index: 1046; }

/* ── Share menu ─────────────────────────────────────────── */
#lpb-share-menu {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: flex-end; justify-content: center;
}
.lpb-sm-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0; transition: opacity .3s;
}
.lpb-sm-panel {
    position: relative; z-index: 1; background: #fff;
    border-radius: 20px 20px 0 0; padding: 20px 20px 36px;
    width: 100%; max-width: 480px;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -4px 32px rgba(0,0,0,.15);
}
#lpb-share-menu.lpb-sm-open .lpb-sm-backdrop { opacity: 1; }
#lpb-share-menu.lpb-sm-open .lpb-sm-panel    { transform: translateY(0); }
.lpb-sm-title { font-size: 15px; font-weight: 700; color: #1d2327; text-align: center; margin-bottom: 20px; }
.lpb-sm-close { position: absolute; top: 14px; right: 16px; font-size: 22px; color: #aaa; cursor: pointer; background: none; border: none; line-height: 1; padding: 4px 8px; border-radius: 50%; }
.lpb-sm-close:hover { background: #f0f0f0; }
.lpb-sm-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.lpb-sm-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 8px; border-radius: 12px; text-decoration: none;
    color: #1d2327; background: #f8f9fa; border: 1px solid #eee;
    font-size: 11px; font-weight: 500; text-align: center;
    cursor: pointer; transition: background .15s, transform .15s; font-family: inherit;
}
.lpb-sm-item:hover { transform: translateY(-2px); }
.lpb-sm-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.lpb-sm-label { color: #555; }

@media print { .lpb-buttons-wrapper, #lpb-share-menu { display: none !important; } }
