/* Scroll Section Styles */

.scroll-section {
    position: relative;
    width: 100%;
    overflow: visible;
}

@media (min-width: 783px) {
    .scroll-section {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }
}

.scroll-content {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    padding: 1rem 0 2rem 0;
    z-index: 10;
}

@media (min-width: 783px) {
    .scroll-content {
        position: absolute;
        width: 50%;
        height: 100%;
    }
}

/* Align with container on desktop only */
@media (min-width: 783px) {
    .scroll-content {
        /* Calculate left padding to align with centered container (max-w-1296px) */
        padding-left: max(24px, calc((100vw - 1296px) / 2))!important;
        padding-right: 0!important;
    }
}

.scroll-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 42rem;
    overflow: hidden;
    /* Height will be set dynamically by JavaScript based on tallest content */
}

.scroll-item-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.scroll-images {
    position: relative;
    right: 0;
    width: 100%;
    height: 60vh;
    z-index: 5;
    overflow: hidden;
}

@media (min-width: 783px) {
    .scroll-images {
        position: absolute;
        top: 0;
        width: 50%;
        height: 100%;
    }
}

.scroll-images-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.scroll-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.scroll-item-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.scroll-progress {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

/* Desktop: Center vertically between content and images */
@media (min-width: 783px) {
    .scroll-progress {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        flex-direction: column;
        right: auto;
        bottom: auto;
    }
}

/* Mobile: Horizontal at bottom right of content */
@media (max-width: 782px) {
    .scroll-progress {
        bottom: 2rem;
        right: 2rem;
        flex-direction: row;
    }
}

.progress-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Mobile responsive styles - stack content and images vertically */
@media (max-width: 782px) {
    .scroll-section {
        display: flex;
        flex-direction: column;
    }
    
    .scroll-content,
    .scroll-images {
        position: relative;
        width: 100%;
        left: auto;
        right: auto;
    }
    
    .scroll-content {
        height: auto;
        min-height: 50vh;
        padding: 2rem 1.5rem;
        background: transparent;
    }
    
    .scroll-images {
        height: 50vh;
        min-height: 50vh;
        padding-left: 0;
    }
}

/* Tablet responsive styles */
@media (min-width: 769px) and (max-width: 1023px) {
    .scroll-content {
        padding: 2rem 3rem;
    }
}

/* Container-aligned padding utility */
.container-aligned-padding {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container-aligned-padding {
        /* Align with centered container (max-w-1296px) */
        padding-left: max(24px, calc((100vw - 1296px) / 2)) !important;
        padding-right: 4rem !important;
    }
}

