/* Mirror Labyrinth Gallery v1.0 */

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

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

/* ── Custom Cursor ──────────────────────────────────────────────── */
.ml-wrap .ml-cursor {
    position: absolute;
    width: 8px; height: 8px;
    background: #c8cdd6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    transition: width .2s, height .2s, background .3s;
    mix-blend-mode: difference;
    will-change: left, top;
}
.ml-wrap .ml-cursor.hovering {
    width: 14px; height: 14px;
    background: #d4af6a;
}
.ml-wrap .ml-cursor-ring {
    position: absolute;
    width: 36px; height: 36px;
    border: 1px solid rgba(200, 205, 214, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99;
    transform: translate(-50%, -50%);
    transition: all .18s ease;
    mix-blend-mode: difference;
    will-change: left, top;
}
.ml-wrap .ml-cursor-ring.hovering {
    width: 52px; height: 52px;
    border-color: rgba(212, 175, 106, 0.7);
}

/* ── Depth Indicator ────────────────────────────────────────────── */
.ml-wrap .ml-depth-indicator {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    z-index: 20;
    opacity: 0.35;
    pointer-events: none;
}
.ml-wrap .ml-depth-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #c8cdd6;
    transition: all .4s;
}
.ml-wrap .ml-depth-dot.active {
    width: 7px; height: 7px;
    background: #d4af6a;
    opacity: 1;
}
.ml-wrap .ml-depth-label {
    font-size: 7px;
    letter-spacing: .4em;
    color: #c8cdd6;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 8px;
    text-transform: uppercase;
    font-family: sans-serif;
    opacity: .5;
}

/* ── Gyro Button ────────────────────────────────────────────────── */
.ml-wrap .ml-gyro-btn {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 10px 24px;
    background: rgba(10, 10, 30, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #c8cdd6;
    border: 1px solid rgba(200, 205, 214, .35);
    border-radius: 50px;
    font-size: 13px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    transition: background .2s;
}
.ml-wrap .ml-gyro-btn:hover {
    background: rgba(20, 20, 50, .9);
}

/* ── Lightbox ───────────────────────────────────────────────────── */
.ml-wrap .ml-lightbox {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(5, 5, 8, .96);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: opacity .55s cubic-bezier(.4, 0, .2, 1);
}
.ml-wrap .ml-lightbox.ml-lb-active {
    display: flex;
    opacity: 1;
}
.ml-wrap .ml-lb-frame {
    position: relative;
    display: inline-block;
}
.ml-wrap .ml-lb-frame::before {
    content: '';
    position: absolute;
    inset: -16px;
    border: 1px solid rgba(200, 205, 214, .15);
    pointer-events: none;
}
.ml-wrap .ml-lb-frame::after {
    content: '';
    position: absolute;
    inset: -30px;
    border: 1px solid rgba(200, 205, 214, .06);
    pointer-events: none;
}
.ml-wrap .ml-lb-img {
    max-width: 85%;
    max-height: 68vh;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(.93);
    transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}
.ml-wrap .ml-lightbox.ml-lb-active .ml-lb-img {
    transform: scale(1);
}
.ml-wrap .ml-lb-close {
    position: absolute;
    top: 20px; right: 24px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #c8cdd6;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
    z-index: 51;
}
.ml-wrap .ml-lb-close:hover { background: rgba(255, 255, 255, .15); }
.ml-wrap .ml-lb-caption {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 13px;
    letter-spacing: .15em;
    color: rgba(200, 205, 214, .5);
    margin: 0;
}
.ml-wrap .ml-lb-counter {
    font-size: 9px;
    letter-spacing: .5em;
    color: rgba(200, 205, 214, .25);
    text-transform: uppercase;
    font-family: sans-serif;
    margin: 0;
}
.ml-wrap .ml-lb-hint {
    font-size: 10px;
    letter-spacing: .3em;
    color: rgba(200, 205, 214, .2);
    text-transform: uppercase;
    font-family: sans-serif;
    margin: 0;
    cursor: pointer;
}

/* ── SEO hidden list ────────────────────────────────────────────── */
.ml-wrap .ml-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) {
    .ml-wrap { height: 420px; cursor: auto; }
    .ml-wrap .ml-canvas { cursor: auto; }
    .ml-wrap .ml-cursor,
    .ml-wrap .ml-cursor-ring { display: none; }
    .ml-wrap .ml-depth-indicator { display: none; }
}

/* ── Editor placeholder ─────────────────────────────────────────── */
.elementor-editor-active .ml-wrap[data-images="[]"]::before {
    content: "🔮 Mirror Labyrinth Gallery: Keine Bilder ausgewählt";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(200, 205, 214, .8);
    font-family: sans-serif; font-size: 13px;
    z-index: 5;
    background: rgba(0, 0, 0, .65);
    padding: 10px 22px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid rgba(200, 205, 214, .2);
}
