/* =============================================================
   Inspiratsioon Slider — Frontend Styles
   Scoped to .insp-slider-wrap to avoid BeTheme conflicts
   ============================================================= */

/* ---------- CUSTOMIZE HERE ---------- */
:root {
    --insp-accent:        #e3001b;   /* dot active + accent color */
    --insp-radius:        14px;      /* image card border radius  */
    --insp-gap:           16px;      /* gap between slides        */
    --insp-arrow-size:    48px;      /* arrow button diameter     */
    --insp-transition:    0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
/* ------------------------------------ */

.insp-slider-wrap {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

.insp-slider-outer {
    display: flex;
    align-items: center;
    gap: var(--insp-gap);
}

/* Viewport clips the sliding track */
.insp-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: var(--insp-radius);
}

.insp-track {
    display: flex;
    gap: var(--insp-gap);
    transition: transform var(--insp-transition);
    will-change: transform;
}

/* ---------- SLIDE CARD ---------- */
.insp-slide {
    flex: 0 0 calc((100% - calc(var(--insp-gap) * 2)) / 3);
    border-radius: var(--insp-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
    cursor: zoom-in;
    background: #e8e8e8;
}

.insp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.insp-slide:hover img {
    transform: scale(1.05);
}

/* Zoom icon that appears on hover */
.insp-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    color: #222;
}

.insp-slide:hover .insp-zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* ---------- ARROWS ---------- */
.insp-arrow {
    flex-shrink: 0;
    width: var(--insp-arrow-size);
    height: var(--insp-arrow-size);
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    color: #e8456a;
    padding: 0;
    line-height: 1;
}

.insp-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    color: #c4304f;
}

.insp-arrow:active {
    transform: scale(0.92);
}

/* ---------- DOTS ---------- */
.insp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.insp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s, transform 0.2s;
}

.insp-dot.active {
    background: var(--insp-accent);
    transform: scale(1.35);
}

/* ---------- LIGHTBOX ---------- */
.insp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.insp-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.insp-lb-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insp-lb-inner img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.insp-lightbox.open .insp-lb-inner img {
    transform: scale(1);
}

.insp-lb-close {
    position: fixed;
    top: 22px;
    right: 26px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    line-height: 1;
}

.insp-lb-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.insp-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    padding: 0;
}

.insp-lb-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.insp-lb-prev { left: 22px; }
.insp-lb-next { right: 22px; }

.insp-lb-counter {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    letter-spacing: 1px;
    font-family: inherit;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet: 2 slides visible */
@media (max-width: 900px) {
    .insp-slide {
        flex: 0 0 calc((100% - var(--insp-gap)) / 2);
    }
}

/* Mobile: 1 slide visible */
@media (max-width: 540px) {
    .insp-slide {
        flex: 0 0 100%;
    }

    .insp-arrow {
        width: 38px;
        height: 38px;
    }

    .insp-lb-nav {
        width: 40px;
        height: 40px;
    }

    .insp-lb-prev { left: 10px; }
    .insp-lb-next { right: 10px; }
}
