/* Crystal Cave Gallery v1.0 */

.cc-wrap {
    position: relative;
    width: 100%;
    height: 650px;
    min-height: 200px;
    overflow: hidden;
    background-color: #050810;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

.cc-wrap .cc-canvas {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    cursor: crosshair;
}

/* ── Unpin-Button ─────────────────────────────────────────────── */
.cc-wrap .cc-unpin-btn {
    position: absolute; z-index: 20;
    padding: 10px 22px;
    background: rgba(8,12,40,.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: #99ccff;
    border: 1px solid rgba(80,120,255,.45);
    border-radius: 50px; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    box-shadow: 0 0 24px rgba(60,100,255,.3);
    transition: background .25s, box-shadow .25s, transform .15s;
}
.cc-wrap .cc-unpin-btn:hover {
    background: rgba(20,30,90,.9);
    box-shadow: 0 0 36px rgba(80,130,255,.5);
    transform: scale(1.05);
}
.cc-wrap .cc-unpin--bottom-left   { bottom:20px; left:20px; }
.cc-wrap .cc-unpin--bottom-right  { bottom:20px; right:20px; }
.cc-wrap .cc-unpin--bottom-center { bottom:20px; left:50%; transform:translateX(-50%); }
.cc-wrap .cc-unpin--bottom-center:hover { transform:translateX(-50%) scale(1.05); }
.cc-wrap .cc-unpin--top-left  { top:20px; left:20px; }
.cc-wrap .cc-unpin--top-right { top:20px; right:20px; }

/* ── Gyro / Audio ─────────────────────────────────────────────── */
.cc-wrap .cc-gyro-btn {
    position: absolute; bottom:64px; left:50%; transform:translateX(-50%);
    z-index:20; padding:12px 28px;
    background:rgba(0,30,80,.85); backdrop-filter:blur(10px);
    color:#ddeeff; border:1px solid rgba(80,160,255,.5);
    border-radius:50px; font-size:14px; font-weight:600;
    cursor:pointer; white-space:nowrap;
}
.cc-wrap .cc-audio-btn {
    position:absolute; top:16px; right:16px; z-index:20;
    padding:7px 15px;
    background:rgba(20,0,60,.75); backdrop-filter:blur(8px);
    color:#ccaaff; border:1px solid rgba(120,60,220,.45);
    border-radius:50px; font-size:12px; font-weight:600; cursor:pointer;
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.cc-wrap .cc-lightbox {
    position:absolute; inset:0; z-index:50;
    background:rgba(2,4,20,.94);
    display:none; align-items:center; justify-content:center; flex-direction:column; gap:14px;
}
.cc-wrap .cc-lb-img {
    max-width:88%; max-height:80%;
    object-fit:contain; border-radius:12px;
    box-shadow:0 0 50px rgba(80,160,255,.4),0 0 100px rgba(0,0,0,.8);
    display:block; cursor:pointer;
}
.cc-wrap .cc-lb-close {
    position:absolute; top:16px; right:20px;
    background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2);
    color:#fff; font-size:20px; line-height:1;
    padding:6px 10px; border-radius:50%; cursor:pointer; z-index:51;
    transition:background .2s;
}
.cc-wrap .cc-lb-close:hover { background:rgba(255,255,255,.2); }
.cc-wrap .cc-lb-hint { color:rgba(255,255,255,.3); font-size:12px; font-family:sans-serif; cursor:pointer; margin:0; }

/* ── SEO ──────────────────────────────────────────────────────── */
.cc-wrap .cc-seo {
    position:absolute; width:1px; height:1px; overflow:hidden;
    clip:rect(0,0,0,0); white-space:nowrap; list-style:none; padding:0; margin:0; border:0;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width:767px) { .cc-wrap { height:400px; } }

/* ── Editor ───────────────────────────────────────────────────── */
.elementor-editor-active .cc-wrap[data-images="[]"]::before {
    content:"💎 Crystal Cave Gallery: Keine Bilder ausgewählt";
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    color:rgba(150,200,255,.85); font-family:sans-serif; font-size:13px;
    z-index:5; background:rgba(0,0,0,.6); padding:10px 22px; border-radius:8px;
    white-space:nowrap; pointer-events:none;
}
