/* ═══════════════════════════════════════════════════════════════
   Elementor Praxinoscope Gallery  –  praxinoscope.css
   Elegant Victorian / Mercury-Glass Aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ── Base Widget ─────────────────────────────────────────────── */
.epxg-widget {
    position: relative;
    width: 100%;
    height: 560px;
    background: #080b10;
    overflow: hidden;
    border-radius: 3px;
    cursor: grab;
    font-family: 'Georgia', 'Times New Roman', serif;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.epxg-widget:active { cursor: grabbing; }

.epxg-widget canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

/* ── Editor Placeholder ──────────────────────────────────────── */
.epxg-editor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(160, 200, 220, 0.25);
    background: #070a0f;
}

.epxg-editor-msg { text-align: center; color: rgba(180, 210, 230, 0.55); }

.epxg-editor-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.7;
}

.epxg-editor-msg p {
    font-size: 17px;
    margin: 0 0 5px;
    font-style: italic;
    letter-spacing: 0.07em;
}

.epxg-editor-msg small { font-size: 11px; opacity: 0.5; letter-spacing: 0.09em; }

/* ── Status Indicator ────────────────────────────────────────── */
.epxg-status {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 8, 14, 0.75);
    border: 1px solid rgba(140, 180, 210, 0.22);
    color: rgba(140, 175, 205, 0.60);
    font-family: 'Georgia', serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 2px;
    pointer-events: none;
    white-space: nowrap;
    transition: color 0.5s ease, border-color 0.5s ease, text-shadow 0.5s ease;
    z-index: 10;
}

.epxg-status--animating {
    color: rgba(200, 230, 255, 0.92);
    border-color: rgba(180, 215, 255, 0.42);
    text-shadow: 0 0 12px rgba(180, 215, 255, 0.38);
}

/* ── Open Button ─────────────────────────────────────────────── */
.epxg-open-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(140, 180, 210, 0.10);
    border: 1px solid rgba(150, 190, 220, 0.38);
    color: rgba(190, 220, 245, 0.85);
    font-family: 'Georgia', serif;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 6px 15px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10;
}

.epxg-open-btn:hover {
    background: rgba(150, 190, 220, 0.22);
    border-color: rgba(200, 230, 255, 0.65);
    color: #D8EEFF;
}

.epxg-open-btn:active { transform: scale(0.97); }

/* ── Gyroscope Button ────────────────────────────────────────── */
.epxg-gyro-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(6, 8, 14, 0.68);
    border: 1px solid rgba(150, 190, 220, 0.28);
    color: rgba(170, 205, 230, 0.72);
    font-family: 'Georgia', serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.epxg-gyro-btn:hover { background: rgba(150, 190, 220, 0.15); }

/* ── Frame Counter ───────────────────────────────────────────── */
.epxg-frame-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 8, 14, 0.70);
    border: 1px solid rgba(140, 180, 210, 0.20);
    color: rgba(150, 185, 215, 0.65);
    font-family: 'Georgia', serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 3px 12px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.epxg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.epxg-lightbox.epxg-lightbox--visible {
    opacity: 1;
    pointer-events: all;
}

.epxg-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 10, 0.94);
    cursor: pointer;
}

/* Radial vignette on backdrop */
.epxg-lightbox-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 65% 60% at 50% 50%,
        transparent 35%,
        rgba(0, 2, 8, 0.60) 100%
    );
    pointer-events: none;
}

.epxg-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    transform: scale(0.82) translateY(20px);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.epxg-lightbox--visible .epxg-lightbox-inner {
    transform: scale(1) translateY(0);
}

/* Silver-framed picture frame (mercury glass aesthetic) */
.epxg-lightbox-frame {
    position: relative;
    background: #070a10;
    border: 1px solid rgba(160, 200, 230, 0.45);
    border-radius: 2px;
    padding: 7px;
    box-shadow:
        0 0 0 1px rgba(50, 70, 100, 0.55),
        0 0 50px rgba(0, 5, 20, 0.9),
        0 0 100px rgba(0, 5, 20, 0.65),
        inset 0 0 25px rgba(0, 5, 20, 0.40);
}

/* Thin silver corner ornaments */
.epxg-lightbox-frame::before,
.epxg-lightbox-frame::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(160, 200, 230, 0.40);
    border-style: solid;
}
.epxg-lightbox-frame::before { top: 3px; left: 3px; border-width: 1px 0 0 1px; }
.epxg-lightbox-frame::after  { bottom: 3px; right: 3px; border-width: 0 1px 1px 0; }

.epxg-lightbox-img {
    display: block;
    max-width: 82vw;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 1px;
    cursor: pointer;
}

.epxg-lightbox-placeholder {
    min-width: 260px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #06090f;
    cursor: pointer;
}

.epxg-lightbox-placeholder span {
    color: rgba(150, 190, 220, 0.50);
    font-family: 'Georgia', serif;
    font-size: 16px;
    font-style: italic;
}

.epxg-lightbox-caption {
    text-align: center;
    padding: 9px 8px 3px;
    margin: 0;
    color: rgba(180, 215, 240, 0.72);
    font-family: 'Georgia', serif;
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.07em;
    border-top: 1px solid rgba(150, 190, 220, 0.16);
    margin-top: 6px;
}

.epxg-lightbox-close {
    position: absolute;
    top: -13px;
    right: -13px;
    width: 26px;
    height: 26px;
    background: rgba(6, 9, 16, 0.92);
    border: 1px solid rgba(160, 200, 230, 0.42);
    border-radius: 50%;
    color: rgba(190, 220, 245, 0.82);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    z-index: 2;
}

.epxg-lightbox-close:hover {
    background: rgba(150, 190, 220, 0.25);
    color: #D8EEFF;
    border-color: rgba(200, 230, 255, 0.65);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .epxg-widget { height: 420px; }
    .epxg-open-btn  { font-size: 9px; padding: 5px 11px; bottom: 12px; right: 12px; }
    .epxg-gyro-btn  { font-size: 9px; padding: 4px 10px; bottom: 12px; left: 12px; }
    .epxg-status    { font-size: 9px; padding: 3px 10px; }
    .epxg-frame-counter { font-size: 9px; padding: 3px 10px; }
}

@media (max-width: 480px) {
    .epxg-widget { height: 360px; }
    .epxg-lightbox-img { max-width: 90vw; max-height: 60vh; }
}

@media (max-width: 360px) {
    .epxg-widget { height: 310px; }
}
