/* frontend.css v2.6.5 - Pop Style Fixes & Mobile Arrows Hidden */

/* --- 1. GLOBAL RESET --- */
html, body {
    margin: 0; padding: 0;
    overflow-x: hidden !important; 
}

/* --- 2. SLIDER WRAPPER --- */
.calids-slider {
    position: relative; 
    width: 100vw !important;
    height: 100vh !important; 
    height: 100dvh !important; /* Mobile URL bar fix */
    left: 50% !important; right: 50% !important;
    margin-left: -50vw !important; margin-right: -50vw !important;
    max-width: 100vw !important;
    background: #020617;
    overflow: hidden; 
    user-select: none;
}

/* ADMIN BAR OFFSET */
body.admin-bar .calids-slider { height: calc(100vh - 32px) !important; height: calc(100dvh - 32px) !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .calids-slider { height: calc(100vh - 46px) !important; height: calc(100dvh - 46px) !important; }
}

/* --- 3. SLIDES --- */
.calids-slide-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0; z-index: 1; transition: opacity 0.8s ease-in-out; pointer-events: none;
}
.calids-slide-item.active { opacity: 1; z-index: 5; pointer-events: auto; }

/* --- 4. LAYERS --- */
.calids-layer {
    position: absolute; display: flex; flex-direction: column;
    justify-content: center; align-items: center;     
}
.calids-layer img {
    width: 100%; height: 100%; display: block;
    object-fit: contain !important; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* --- TEXT STYLES --- */
.calids-layer .text {
    width: 100%; height: auto !important; display: block !important; 
    white-space: pre-wrap; line-height: 1.4;
    word-break: break-word; overflow-wrap: break-word;
    box-sizing: border-box !important; 
    padding: 0 20px !important;
    max-width: 100vw;                  
}

/* --- CRITICAL FIX: FORCE INHERITANCE --- */
.calids-layer .text span, 
.calids-layer .text strong, 
.calids-layer .text b, 
.calids-layer .text em, 
.calids-layer .text div {
    font-size: inherit !important;   
    line-height: inherit !important;
    display: inline !important;
    margin: 0 !important; padding: 0 !important;
}

/* --- POP STYLE --- */
.text-pop {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    word-break: normal; 
    overflow-wrap: normal;
}

/* --- 5. UI CONTROLS --- */
.calids-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    cursor: pointer; z-index: 9999; transition: 0.2s; line-height: 1; color: #fff;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.calids-nav:hover { opacity: 0.8; transform: translateY(-50%) scale(1.1); }
.calids-nav.prev { left: 20px; } .calids-nav.next { right: 20px; }
.calids-nav.simple { font-size: 50px; width: 40px; height: 80px; }

.calids-dots {
    position: absolute; bottom: 30px; left: 0; width: 100%;
    display: flex; justify-content: center; gap: 12px; z-index: 9999;
}
.calids-dot {
    width: 12px; height: 12px; border-radius: 50%; background: #fff;
    opacity: 0.5; cursor: pointer; transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5); border: 1px solid rgba(0,0,0,0.2);
}
.calids-dot.active { opacity: 1; transform: scale(1.3); background: #fff; }

/* --- 6. MOBILE FIXES --- */
@media (max-width: 768px) {
    /* HIDE ARROWS ON MOBILE (User Request) */
    .calids-nav {
        display: none !important;
    }

    .calids-slide-item.active {
        display: flex !important; flex-direction: column !important;
        justify-content: center !important; align-items: center !important;
        padding-top: 60px !important; 
    }
    .calids-layer {
        position: relative !important; top: auto !important; left: auto !important;
        transform: none !important; margin-bottom: 25px !important; 
        width: 100% !important; 
    }
    .calids-layer .text {
        max-width: 100% !important; padding: 0 10px !important;
    }
    .calids-studio-btn { margin-top: 10px; }
}