/* Main Wrapper */
.iis-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    /* Reduced gap */
    padding: 40px 10px;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

/* Left Content */
.iis-content {
    flex: 0 0 40%;
    /* Fixed width for content */
    z-index: 2;
    padding-right: 10px;
}

.iis-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff0055, #ff00aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.iis-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Slider Section Top-Level */
.iis-slider-container {
    flex: 0 0 55%;
    /* More space for slider */
    /* Height calculation: (ImageHeight + Gap) * 2 */
    /* Let's assume Image Height approx 250px + 30px gap = 280 * 2 = 560px */
    height: 560px;
    position: relative;
    overflow: hidden;
    /* SAFETY: Prevent any slider content from overflowing constraints */
    /* perspective: 1200px; REMOVED 3D PERSPECTIVE */
    /* Fade mask top/bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Rotator: Handles the fixed 3D angle */
.iis-slider-rotator {
    width: 100%;
    height: 100%;
    /* transform-style: preserve-3d; REMOVED */
    transform: none;
    /* REMOVED ROTATION */
    position: relative;
    transform-origin: center center;
    /* Flex for two columns */
    display: flex;
    gap: 20px;
    pointer-events: none;
    /* KEY FIX: Pass clicks through 3D container */
}

.iis-slider-col {
    flex: 1;
    position: relative;
    height: 100%;
    /* Ensure full height for scrolling context */
    overflow: hidden;
    /* Hide overflow per column if needed, but usually container handles it */
    transform-style: preserve-3d;
    /* Fix for 3D hit-testing/hover on Col 2 */
    pointer-events: none;
    /* Pass clicks through */
}

/* Adjust Scroller to be relative to the Col */
.iis-slider-scroller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    transform-style: preserve-3d;
    /* Fix for 3D hit-testing/hover on Col 2 */
    pointer-events: none;
    /* Pass clicks through */
}

/* Slide Item */
.iis-slide-item {
    width: 100%;
    height: 170px;
    /* Reduced height to fit better or maintain aspect ratio */
    margin-bottom: 20px;
    /* Gap */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 10px 15px 40px rgba(0, 0, 0, 0.15);
    /* Softer shadow */
    background: #fff;
    transition: transform 0.4s ease, filter 0.4s ease;
    /* Smooth transition */
    position: relative;
    cursor: pointer;
    /* Indicate clickable */
    transform-style: preserve-3d;
    /* Ensure children like img also participate in 3D */
    pointer-events: auto;
    /* Capture clicks here */
}

.iis-slide-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter 0.5s ease, transform 0.5s ease;
    /* Smooth transition for both */
}

/* Grayscale Mode */
.iis-grayscale-active .iis-slide-item img {
    filter: grayscale(100%);
}

/* Hover: Restore Color & Zoom */
.iis-grayscale-active .iis-slide-item:hover img,
.iis-slide-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
    /* Smooth Image Zoom */
}