/* CatalanInside – Stylesheet */
/* Innenperspektive: Kamera im Zentrum des Deltoidal Ikositetraeders */

.ci-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    /* Hintergrundfarbe sichtbar durch Spalten zwischen den 24 Flächen */
    background: #060410;
}

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

/* ── Lightbox ── */
.ci-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.ci-lightbox.ci-lb-visible {
    opacity: 1;
    pointer-events: all;
}
.ci-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.ci-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.7);
}
.ci-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,.5);
}

/* ── Unpin button ── */
.ci-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;
}
.ci-btn-wrap.ci-btn-visible {
    opacity: 1;
    pointer-events: all;
}
.ci-unpin-btn {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .15s;
    display: inline-block;
    white-space: nowrap;
}
.ci-unpin-btn.ci-btn-shadow { box-shadow: 0 4px 20px rgba(0,0,0,.45); }
.ci-unpin-btn:hover { transform: translateY(-2px); }
.ci-unpin-btn.ci-btn-shadow:hover { box-shadow: 0 8px 24px rgba(0,0,0,.55); }

/* ── Hint text ── */
.ci-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 ── */
.ci-lightbox-video {
    display: block;
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.7);
    background: #000;
}

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

/* ── Text-overlay tooltip ── */
.ci-overlay-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    max-width: 200px;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
    transition: opacity .2s;
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
    border: 1px solid rgba(168,212,255,.25);
}
