/* DekagonalPrismCL – Stylesheet */
.egfbcl-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
}

.egfbcl-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    cursor: grab;
}
.egfbcl-canvas:active { cursor: grabbing; }

/* ── Lightbox ── */
.egfbcl-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.egfbcl-lightbox.egfbcl-lb-visible {
    opacity: 1;
    pointer-events: all;
}
.egfbcl-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.egfbcl-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.egfbcl-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #000;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ── Unpin button ── */
.egfbcl-btn-wrap {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.egfbcl-btn-wrap.egfbcl-btn-visible {
    opacity: 1;
    pointer-events: all;
}
.egfbcl-unpin-btn {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .15s;
    display: inline-block;
    white-space: nowrap;
}
.egfbcl-unpin-btn.egfbcl-btn-shadow { box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.egfbcl-unpin-btn:hover { transform: translateY(-2px); }
.egfbcl-unpin-btn.egfbcl-btn-shadow:hover { box-shadow: 0 8px 24px rgba(0,0,0,.4); }

/* ── Keyboard / hint text ── */
.egfbcl-key-hint {
    color: rgba(255,255,255,.5);
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
    transition: opacity .4s;
}

/* ── Lightbox video ── */
.egfbcl-lightbox-video {
    display: block;
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    background: #000;
}

/* ── Lightbox caption ── */
.egfbcl-lightbox-caption {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    text-align: center;
}
.egfbcl-lb-caption-text {
    color: rgba(255,255,255,.9);
    font-size: 14px;
    margin: 0 0 6px;
    line-height: 1.5;
}
.egfbcl-lb-caption-text:last-child { margin-bottom: 0; }
.egfbcl-lb-caption-link {
    display: inline-block;
    color: #7eb8ff;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid rgba(126,184,255,.4);
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}
.egfbcl-lb-caption-link:hover {
    color: #afd4ff;
    border-color: rgba(175,212,255,.7);
}

/* ── Face link cursor ── */
.egfbcl-canvas[data-has-links="true"] { cursor: pointer; }

/* ── Text-overlay tooltip ── */
.egfbcl-overlay-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    max-width: 180px;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
    transition: opacity .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ── Video-face indicator ── */
.egfbcl-video-badge {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.egfbcl-wrapper:hover .egfbcl-video-badge { opacity: 1; }
