/* ============================================================
   ElementorParticleCloud — Stylesheet
   ============================================================ */

/* Wrapper */
.epc-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    box-sizing: border-box;
    cursor: none;
}

/* Canvas */
.epc-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

/* Custom cursor */
.epc-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, background 0.15s;
    z-index: 10;
    mix-blend-mode: difference;
}

.epc-cursor.active {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
}

/* ============================================================
   Loader
   ============================================================ */
.epc-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: inherit;
    transition: opacity 0.6s ease;
}

.epc-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.epc-loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: epc-spin 0.9s linear infinite;
}

@keyframes epc-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Lightbox
   ============================================================ */
.epc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.epc-lightbox.open {
    visibility: visible;
    opacity: 1;
}

.epc-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.epc-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: epc-lb-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes epc-lb-in {
    from { transform: scale(0.82) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.epc-lightbox-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    display: block;
}

.epc-lightbox-title {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-family: sans-serif;
    margin: 0;
    text-align: center;
}

/* Lightbox buttons */
.epc-lightbox-close,
.epc-lightbox-download {
    position: absolute;
    top: -48px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(6px);
}

.epc-lightbox-download {
    right: 46px;
    font-size: 20px;
}

.epc-lightbox-close:hover,
.epc-lightbox-download:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.1);
}

/* ============================================================
   Image navigation dots
   ============================================================ */
.epc-nav-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

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

.epc-nav-dot.active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.3);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .epc-wrapper {
        cursor: auto;
    }
    .epc-cursor {
        display: none;
    }
}
