.sds-container-wrap {
    position: relative;
    width: 100%;
}

.sds-sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.admin-bar .sds-sticky-viewport {
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .sds-sticky-viewport {
        height: calc(100vh - 46px);
        top: 46px;
    }
}

.sds-slides-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sds-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.sds-card {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    background-color: #222;
    border-style: solid;
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
    width: 450px;
    height: 600px;
    border-width: 3px;
    border-color: #ffffff;
    border-radius: 24px;
}

.sds-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Zoom Effect */
.sds-card.sds-has-hover-zoom:hover .sds-slide-bg {
    transform: scale(1.08);
}

.sds-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.sds-slide-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    color: #ffffff;
    width: 100%;
}

.sds-slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.sds-slide-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    color: #e0e0e0;
}

/* Mobile Snap Fallback */
@media (max-width: 767px) {
    .sds-container-wrap {
        height: auto !important;
    }
    .sds-sticky-viewport {
        position: relative !important;
        height: auto !important;
        top: 0 !important;
        overflow: visible !important;
        padding: 40px 20px;
    }
    .sds-slides-stack {
        display: flex;
        flex-direction: column;
        gap: 30px;
        height: auto;
        width: 100%;
    }
    .sds-slide {
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }
    .sds-card {
        width: 100% !important;
        max-width: 100%;
        height: 500px !important;
    }
}
