/* ==========================================================
   Image Switcher for Elementor — Frontend Styles v1.1
   ========================================================== */

.ise-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* ══════════════════════════════════════
   LAYOUT 1 — STACKED
══════════════════════════════════════ */
.ise-layout-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ise-layout-stack .ise-image-area {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.ise-layout-stack .ise-controls-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ise-layout-stack .ise-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    width: 100%;
}

/* ══════════════════════════════════════
   LAYOUT 2 — SIDE BY SIDE
══════════════════════════════════════ */
.ise-layout-side {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 48px;
}

.ise-layout-side .ise-image-area {
    position: relative;
    flex: 0 0 35%;
    max-width: 35%;
}

.ise-layout-side .ise-controls-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.ise-layout-side .ise-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* fallback — overridden by Elementor responsive selectors */
    gap: 14px;
    width: 100%;
}

@media (max-width: 767px) {
    .ise-layout-side {
        flex-direction: column;
    }

    .ise-layout-side .ise-image-area {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .ise-layout-side .ise-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════
   IMAGE WRAPPERS
══════════════════════════════════════ */
.ise-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease, transform 400ms ease;
    will-change: opacity, transform;
}

.ise-image-wrapper:first-child {
    position: relative;
}

.ise-image-wrapper.ise-image-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.ise-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ise-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #f0f0f0;
    color: #888;
    font-size: 1.1em;
}

/* ══════════════════════════════════════
   TRANSITION EFFECTS
══════════════════════════════════════ */
.ise-wrapper[data-effect="slide-up"] .ise-image-wrapper:not(.ise-image-active) {
    transform: translateY(20px);
}

.ise-wrapper[data-effect="slide-up"] .ise-image-wrapper.ise-image-active {
    transform: translateY(0);
}

.ise-wrapper[data-effect="zoom-in"] .ise-image-wrapper:not(.ise-image-active) {
    transform: scale(0.94);
}

.ise-wrapper[data-effect="zoom-in"] .ise-image-wrapper.ise-image-active {
    transform: scale(1);
}

.ise-wrapper[data-effect="flip"] .ise-image-area {
    perspective: 1200px;
}

.ise-wrapper[data-effect="flip"] .ise-image-wrapper:not(.ise-image-active) {
    transform: rotateY(90deg);
}

.ise-wrapper[data-effect="flip"] .ise-image-wrapper.ise-image-active {
    transform: rotateY(0deg);
}

/* ══════════════════════════════════════
   PROMPT TEXT
══════════════════════════════════════ */
.ise-prompt {
    margin: 0 0 18px;
    color: #c55a11;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 0.04em;
}

.ise-layout-stack .ise-prompt {
    text-align: center;
}

.ise-layout-side .ise-prompt {
    text-align: left;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.ise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    background-color: #333333;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    white-space: nowrap;
}

.ise-layout-side .ise-btn {
    width: 100%;
}

.ise-btn:hover:not(.ise-active) {
    background-color: #555555;
}

.ise-btn:focus-visible {
    outline: 3px solid #c55a11;
    outline-offset: 3px;
}

.ise-btn.ise-active {
    background-color: #c55a11;
    color: #ffffff;
}

@media (max-width: 767px) {
    .ise-btn {
        padding: 12px 18px;
        font-size: 0.78em;
    }

    .ise-layout-stack .ise-buttons {
        gap: 10px;
    }
}
