.carousel-block1 {
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    position: relative;
}

.slider-container1 {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
    touch-action: pan-y; /* Crucial for mobile scrolling */
}

.slider-wrapper1 {
    display: flex;
    will-change: transform;
}

.slide1 {
    display: flex !important;
    flex-direction: column !important; /* Stack image on top of text */
    min-width: 100% !important;
    background: #ffffff !important; /* Matches info background */
}

/* The Image Info Box */
.img-info1 {
    display: block !important;
    background-color: #f9f9f9 !important; /* Light grey background */
    padding: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* The Text inside the Info Box */
.img-info1 .img-name {
    margin: 0 !important;
    padding: 0 !important;
    color: #333333 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.slide1 img {
    width: 100%;
    display: block;
    pointer-events: none;
}

/* Fixed Center Arrows for Mobile */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: background 0.3s;
}

.nav-btn:hover { background: rgba(0,0,0,0.7); }
.prev-btn { left: 0; border-radius: 0 5px 5px 0; }
.next-btn { right: 0; border-radius: 5px 0 0 5px; }

/* Fixed Dots for Mobile */
.dots-container1 {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
}

.dot1 {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot1.active {
    background: #333;
    transform: scale(1.2);
}
