/* =============== RESET =============== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============== WRAPPER =============== */
.my-slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 0;
    cursor: grab;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE10+ */
    touch-action: pan-y;
}

.my-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.my-slider-wrapper.dragging {
    cursor: grabbing;
}

/* =============== TRACK =============== */
.my-slider {
    display: flex;
    gap: 12px;
    padding: 0;
    height: 500px;
    align-items: center;
}

/* =============== SLIDE =============== */
.slide {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.my-slider::before {
    content: '';
    flex: 0 0 72px;
    /* lebar spacer */
    height: 1px;
    /* tidak berpengaruh, bisa 0 */
}

.my-slider::after {
    content: '';
    flex: 0 0 72px;
    /* lebar spacer */
    height: 1px;
    /* tidak berpengaruh, bisa 0 */
}

/* =============== IMAGE WRAPPER =============== */
.slide-img-wrapper {
    --base-h: 400px;
    /* base height standar */
    width: 380px;
    height: var(--base-h);
    /* gunakan CSS var sebagai base */
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    transition: height 0.1s ease;
    /* smooth resize */
}

/* ✨ Tambahkan transition di sini */
.slide-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    transition: transform 0.3s ease-out;
    /* ← ini */
}

/* ✨ Hover rule */
.slide-img-wrapper:hover img {
    transform: scale(1.2);
    /* zoom in */
}

/* MEDIA QUERIES untuk override base-h: */
@media (max-width: 1024px) {
    .slide-img-wrapper {
        --base-h: 340px;
        width: 300px;
    }
}

@media (max-width: 768px) {
    .slide-img-wrapper {
        --base-h: 280px;
        width: 200px;
    }

    .my-slider::before {
        flex: 0 0 16px;
    }
    
    .my-slider::after {
        flex: 0 0 16px;
    }
}

@media (max-width: 480px) {
    .slide-img-wrapper {
        --base-h: 280px;
        width: 80vw;
    }

    .my-slider {
        height: 300px;
    }

    .my-slider::before {
        flex: 0 0 16px;
    }
    
    .my-slider::after {
        flex: 0 0 16px;
    }
}

/* =============== IMAGE =============== */
.slide-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

/* =============== TITLE =============== */
.slide-title {
    font-family: 'K2D', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    margin: 12px 0 0;
    font-size: 1rem;
    text-align: left;
    color: #0d1a4f;
    text-decoration: none;
    user-select: none;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }