/* Aurora Ice Gallery v1.0 */

/* ── Base wrap ──────────────────────────────────────────────────── */
.aig-wrap {
    position: relative;
    width: 100%;
    height: 680px;
    min-height: 200px;
    overflow: hidden;
    background: #000814;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
}
.aig-wrap .aig-canvas {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ── Ripple ring ─────────────────────────────────────────────────── */
.aig-wrap .aig-ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(160, 220, 255, 0.8);
    pointer-events: none;
    z-index: 30;
    width: 0; height: 0;
    opacity: 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 16px rgba(100, 200, 255, 0.4), inset 0 0 8px rgba(80, 180, 255, 0.2);
}
@keyframes aig-ripple {
    0%   { width: 0;     height: 0;     opacity: 0.85; border-width: 3px; }
    60%  { opacity: 0.4; border-width: 1.5px; }
    100% { width: 340px; height: 340px; opacity: 0;    border-width: 0.5px; }
}
.aig-wrap .aig-ripple.active {
    animation: aig-ripple 0.75s cubic-bezier(0.15, 0.85, 0.3, 1) forwards;
}

/* ── Gyro button ─────────────────────────────────────────────────── */
.aig-wrap .aig-gyro-btn {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 10px 24px;
    background: rgba(0, 20, 40, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #a0d8f0;
    border: 1px solid rgba(100, 200, 255, 0.4);
    border-radius: 50px;
    font-size: 13px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    transition: background .2s, border-color .2s;
}
.aig-wrap .aig-gyro-btn:hover {
    background: rgba(0, 40, 80, 0.9);
    border-color: rgba(140, 220, 255, 0.6);
}

/* ── Lightbox base ───────────────────────────────────────────────── */
.aig-wrap .aig-lightbox {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
}
.aig-wrap .aig-lightbox.aig-lb-active {
    display: flex;
    opacity: 1;
}

/* arctic style */
.aig-wrap .aig-lb--arctic {
    background: rgba(2, 10, 22, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
/* aurora_bg style */
.aig-wrap .aig-lb--aurora_bg {
    background: radial-gradient(ellipse at 50% 0%, rgba(0,40,20,0.97) 0%, rgba(2,8,20,0.98) 60%);
}
/* dark style */
.aig-wrap .aig-lb--dark {
    background: rgba(2, 4, 10, 0.97);
}

/* Frame */
.aig-wrap .aig-lb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.aig-wrap .aig-lb-frame {
    position: relative;
    display: inline-block;
}

/* Arctic ice-glass frame borders */
.aig-wrap .aig-lb--arctic .aig-lb-frame::before,
.aig-wrap .aig-lb--aurora_bg .aig-lb-frame::before {
    content: '';
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(140, 220, 255, 0.3);
    pointer-events: none;
}
.aig-wrap .aig-lb--arctic .aig-lb-frame::after,
.aig-wrap .aig-lb--aurora_bg .aig-lb-frame::after {
    content: '';
    position: absolute;
    inset: -26px;
    border: 1px solid rgba(100, 190, 255, 0.1);
    pointer-events: none;
}

/* Animated aurora shimmer on frame */
@keyframes aig-aurora-frame {
    0%   { box-shadow: 0 0 12px rgba(0,200,120,0.3), 0 0 28px rgba(0,100,200,0.15); }
    33%  { box-shadow: 0 0 18px rgba(0,150,255,0.4), 0 0 36px rgba(0,200,150,0.18); }
    66%  { box-shadow: 0 0 14px rgba(100,0,200,0.25), 0 0 30px rgba(0,180,120,0.2); }
    100% { box-shadow: 0 0 12px rgba(0,200,120,0.3), 0 0 28px rgba(0,100,200,0.15); }
}
.aig-wrap .aig-lb--aurora_bg .aig-lb-frame {
    animation: aig-aurora-frame 4s ease-in-out infinite;
}

.aig-wrap .aig-lb-img {
    max-width: 85%;
    max-height: 66vh;
    display: block;
    object-fit: contain;
    border-radius: 3px;
    transform: scale(0.92);
    transition: transform 0.65s cubic-bezier(.4,0,.2,1);
}
.aig-wrap .aig-lightbox.aig-lb-active .aig-lb-img {
    transform: scale(1);
}

/* Close button */
.aig-wrap .aig-lb-close {
    position: absolute;
    top: 18px; right: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(140, 220, 255, 0.3);
    color: rgba(160, 220, 255, 0.8);
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, color .2s;
    z-index: 51;
}
.aig-wrap .aig-lb-close:hover {
    background: rgba(0, 120, 200, 0.15);
    color: #a0d8f0;
}

/* Nav arrows */
.aig-wrap .aig-lb-prev,
.aig-wrap .aig-lb-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0, 30, 60, 0.7);
    border: 1px solid rgba(100, 200, 255, 0.3);
    color: rgba(160, 220, 255, 0.8);
    font-size: 28px; line-height: 1;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, color .2s;
    z-index: 51;
}
.aig-wrap .aig-lb-prev { left: 16px; }
.aig-wrap .aig-lb-next { right: 16px; }
.aig-wrap .aig-lb-prev:hover,
.aig-wrap .aig-lb-next:hover {
    background: rgba(0, 60, 120, 0.85);
    color: #d0eeff;
}

/* Caption & counter */
.aig-wrap .aig-lb-caption {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 13px;
    letter-spacing: .12em;
    color: rgba(160, 220, 255, 0.55);
    margin: 0;
}
.aig-wrap .aig-lb-counter {
    font-family: sans-serif;
    font-size: 9px;
    letter-spacing: .5em;
    color: rgba(100, 180, 255, 0.3);
    text-transform: uppercase;
    margin: 0;
}
.aig-wrap .aig-lb-hint {
    font-family: sans-serif;
    font-size: 10px;
    letter-spacing: .3em;
    color: rgba(100, 180, 255, 0.2);
    text-transform: uppercase;
    margin: 0;
    cursor: pointer;
}

/* ── SEO hidden list ─────────────────────────────────────────────── */
.aig-wrap .aig-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) {
    .aig-wrap { height: 440px; cursor: auto; }
    .aig-wrap .aig-lb-prev { left: 6px; padding: 8px 10px; }
    .aig-wrap .aig-lb-next { right: 6px; padding: 8px 10px; }
}

/* ── Editor placeholder ──────────────────────────────────────────── */
.elementor-editor-active .aig-wrap[data-images="[]"]::before {
    content: "❄️ Aurora Ice Gallery: Keine Bilder ausgewählt";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(160, 220, 255, 0.85);
    font-family: sans-serif; font-size: 13px;
    z-index: 5;
    background: rgba(0, 20, 50, 0.75);
    padding: 10px 22px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid rgba(100, 200, 255, 0.3);
}
