/* ═══════════════════════════════════════════════
   Liquid Image Distortion – Styles
═══════════════════════════════════════════════ */

.lid-widget {
    position: relative;
    width: 100%;
    background: #0a0a0f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Canvas Wrapper */
.lid-canvas-wrap {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    cursor: crosshair;
    background: #0a0a0f;
}

.lid-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Overlay UI */
.lid-overlay-ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    gap: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 40%);
}

/* Navigation */
.lid-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
}

.lid-btn-prev,
.lid-btn-next {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lid-btn-prev:hover,
.lid-btn-next:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.08);
}

/* Dots */
.lid-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lid-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.2s;
}

.lid-dot.active {
    background: #fff;
    transform: scale(1.35);
}

/* Lightbox open button */
.lid-btn-lightbox {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: background 0.2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lid-btn-lightbox svg {
    width: 16px;
    height: 16px;
}

.lid-btn-lightbox:hover { background: rgba(0,0,0,0.7); }

/* Hint text */
.lid-hint {
    position: absolute;
    top: 14px;
    left: 14px;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.4s;
}

.lid-canvas-wrap:hover .lid-hint { opacity: 0; }

/* ═══════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════ */

.lid-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lid-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lid-lightbox-inner {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lid-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
    transition: transform 0.35s ease;
}

.lid-lightbox.open .lid-lightbox-img {
    transform: scale(1);
}

.lid-lightbox-label {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    letter-spacing: 0.04em;
    margin: 0;
}

.lid-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 1;
}

.lid-lightbox-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.lid-lightbox-prev,
.lid-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lid-lightbox-prev { left: 24px; }
.lid-lightbox-next { right: 24px; }

.lid-lightbox-prev:hover,
.lid-lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lid-canvas-wrap { height: 320px !important; }

    .lid-lightbox-prev { left: 8px; }
    .lid-lightbox-next { right: 8px; }

    .lid-lightbox-prev,
    .lid-lightbox-next {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
