.gallery-ib-container_c1953df2 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-ib-track_c1953df2 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.gallery-ib-track_c1953df2.no-smooth-scroll {
    scroll-behavior: auto !important;
}

.gallery-ib-track_c1953df2::-webkit-scrollbar {
    display: none;
}

.gallery-ib-item_c1953df2 {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px; /* Default, overridden by settings */
    box-sizing: border-box;
    cursor: pointer; /* Indicates left/right click areas */
}

/* Ensure text inside item doesn't interfere with the left/right click navigation unless intended */
.gallery-ib-item_c1953df2.is-text {
    background-color: #f9f9f9;
    color: #333;
    padding: 20px;
    /* text-align default is handled by widget controls now */
}

.gallery-ib-item_c1953df2.is-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Let clicks pass to item */
}


.gallery-ib-text-content_c1953df2 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    pointer-events: auto; /* Buttons/links inside text should still work */
}

.gallery-ib-counter_c1953df2 {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
    /* Absolute positioning defaults overridden via controls */
}

.gallery-ib-nav_c1953df2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.gallery-ib-nav_c1953df2 svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.gallery-ib-nav_c1953df2 i {
    font-size: 20px;
}

.gallery-ib-nav_c1953df2:hover {
    background: #fff;
    color: #000;
}

.gallery-ib-nav_c1953df2.nav-prev {
    left: 10px;
}

.gallery-ib-nav_c1953df2.nav-next {
    right: 10px;
}
