/* * Reveal Slider Styles v15.9.4
 * Copyright 2026 Tony Redhead. All rights reserved.
 */

html, body { 
    height: 100%; width: 100%; margin: 0; padding: 0;
    overflow: hidden; background: #000; 
    font-family: -apple-system, system-ui, sans-serif; position: fixed; 
}

#wrapper { 
    position: relative; width: 100%; height: 100%; 
    user-select: none; -webkit-user-select: none; 
    opacity: 0; transition: opacity 0.8s ease; 
}

#loading-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: #000; z-index: 1000; display: flex; 
    align-items: center; justify-content: center; transition: opacity 0.4s ease;
}

.spinner { 
    width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); 
    border-top: 3px solid #fff; border-radius: 50%; animation: spin 1s linear infinite; 
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

body.loaded #loading-overlay { opacity: 0; visibility: hidden; }
body.loaded #wrapper { opacity: 1; }

.pano-container { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; }
#container_left { z-index: 5; }
#container_right { z-index: 10; pointer-events: none; }

#slider-handle { 
    position: absolute; z-index: 95; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; touch-action: none; 
}

#slider-handle::before { 
    content: ""; position: absolute; z-index: 1; background: var(--slider-col);
}

#slider-handle::after {
    position: absolute; content: "↔"; z-index: 2;
    background: var(--btn-bg); color: var(--icon-col); border: 2px solid var(--slider-col);
    border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; 
    font-weight: bold; font-size: 22px; line-height: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Orientation Logic */
@media (orientation: landscape) {
    #slider-handle { top: 0; bottom: 0; width: 40px; height: 100%; }
    #slider-handle::before {
        width: 3px; height: 100%; left: 50%; transform: translateX(-50%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    }
    #slider-handle::after { transform: rotate(0deg); }
    #slider-handle:hover::after { transform: scale(1.1) rotate(0deg); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    #slider-handle.dragging::after { transform: scale(1.2) rotate(45deg); animation: pulse 0.8s infinite; }
}

@media (orientation: portrait) {
    #slider-handle { left: 0; right: 0; height: 40px; width: 100%; }
    #slider-handle::before {
        height: 3px; width: 100%; top: 50%; transform: translateY(-50%);
        mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    }
    #slider-handle::after { transform: rotate(90deg); }
    #slider-handle:hover::after { transform: scale(1.1) rotate(90deg); box-shadow: 10px 0px 20px rgba(0,0,0,0.5); }
    #slider-handle.dragging::after { transform: scale(1.2) rotate(135deg); box-shadow: 15px 0px 30px rgba(0,0,0,0.6); animation: pulse 0.8s infinite; }
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

.label { 
    position: absolute; padding: 10px 20px; white-space: nowrap; 
    background: var(--lab-bg); color: var(--lab-txt); 
    font-size: 11px; text-transform: uppercase; letter-spacing: 2px; 
    border-radius: 50px; z-index: 80; pointer-events: none; 
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

#controls { position: absolute; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.btn { 
    width: 50px; height: 50px; border-radius: 50%; border: none; 
    background: var(--btn-bg); color: var(--icon-col); font-size: 24px; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: all 0.2s;
}
.btn:hover { background: var(--btn-hov); transform: scale(1.05); }