/* ============================================================
   Layer Slider Pro — Public Styles
   ============================================================ */

.lsp-slider-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    background: #000;
    user-select: none;
}

/* Full width — breakout of any container, edge to edge */
.lsp-slider-wrap.lsp-fullwidth {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    left: 0;
}

/* Full screen — full viewport height */
.lsp-slider-wrap.lsp-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;   /* dynamic viewport on mobile */
    margin-left: calc(-50vw + 50%) !important;
}

/* ---- Slides container ---- */
.lsp-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---- Individual slide ---- */
.lsp-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    /* default: hidden, JS fades/slides in */
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
    z-index: 1;
    pointer-events: none;
}

.lsp-slide.lsp-active {
    opacity: 1;
    z-index: 2;
    pointer-events: all;
}

/* Slide transitions */
.lsp-slider-wrap[data-transition="slide"] .lsp-slide             { transform: translateX(100%); opacity: 1; }
.lsp-slider-wrap[data-transition="slide"] .lsp-slide.lsp-active  { transform: translateX(0); }
.lsp-slider-wrap[data-transition="slide"] .lsp-slide.lsp-leaving { transform: translateX(-100%); }

.lsp-slider-wrap[data-transition="zoom"] .lsp-slide             { transform: scale(1.12); opacity: 0; }
.lsp-slider-wrap[data-transition="zoom"] .lsp-slide.lsp-active  { transform: scale(1); opacity: 1; }

.lsp-slider-wrap[data-transition="flip"] .lsp-slide             { transform: perspective(1200px) rotateY(90deg); opacity: 0; }
.lsp-slider-wrap[data-transition="flip"] .lsp-slide.lsp-active  { transform: perspective(1200px) rotateY(0deg); opacity: 1; }

/* ---- Layers ---- */
.lsp-layer {
    position: absolute;
    /* animation via JS */
    opacity: 0;
    will-change: transform, opacity;
}

/* ---- Navigation arrows ---- */
.lsp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    backdrop-filter: blur(4px);
    padding: 0;
}
.lsp-nav:hover {
    background: rgba(91, 141, 238, 0.75);
    border-color: rgba(91, 141, 238, 0.9);
    transform: translateY(-50%) scale(1.08);
}
.lsp-prev { left: 20px; }
.lsp-next { right: 20px; }

/* ---- Bullet navigation ---- */
.lsp-bullets {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
}

.lsp-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s, width 0.25s;
}
.lsp-bullet.lsp-active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}
.lsp-bullet:hover:not(.lsp-active) { background: rgba(255, 255, 255, 0.7); }

/* ---- Button layer style ---- */
.lsp-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lsp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   Layer Animation Keyframes
   ============================================================ */
@keyframes lsp-fadeIn       { from { opacity: 0; } to { opacity: 1; } }
@keyframes lsp-slideInLeft  { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lsp-slideInRight { from { opacity: 0; transform: translateX(80px); }  to { opacity: 1; transform: translateX(0); } }
@keyframes lsp-slideInTop   { from { opacity: 0; transform: translateY(-80px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lsp-slideInBottom{ from { opacity: 0; transform: translateY(80px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes lsp-zoomIn       { from { opacity: 0; transform: scale(0.6); }         to { opacity: 1; transform: scale(1); } }
@keyframes lsp-bounceIn {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { opacity: 1; transform: scale(1.1); }
    80%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
@keyframes lsp-rotateIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0.5); }
    to   { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes lsp-flipIn {
    from { opacity: 0; transform: perspective(600px) rotateX(-90deg); }
    to   { opacity: 1; transform: perspective(600px) rotateX(0deg); }
}

.lsp-anim-fadeIn        { animation-name: lsp-fadeIn; }
.lsp-anim-slideInLeft   { animation-name: lsp-slideInLeft; }
.lsp-anim-slideInRight  { animation-name: lsp-slideInRight; }
.lsp-anim-slideInTop    { animation-name: lsp-slideInTop; }
.lsp-anim-slideInBottom { animation-name: lsp-slideInBottom; }
.lsp-anim-zoomIn        { animation-name: lsp-zoomIn; }
.lsp-anim-bounceIn      { animation-name: lsp-bounceIn; }
.lsp-anim-rotateIn      { animation-name: lsp-rotateIn; }
.lsp-anim-flipIn        { animation-name: lsp-flipIn; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .lsp-nav { width: 38px; height: 38px; font-size: 24px; }
    .lsp-prev { left: 8px; }
    .lsp-next { right: 8px; }
    .lsp-bullets { bottom: 10px; }
    .lsp-bullet { width: 8px; height: 8px; }
    .lsp-bullet.lsp-active { width: 18px; }
}
