.project-scroller-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: none;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.project-scroller-content {
    width: 80vw;
    max-width: 900px;
    min-width: 320px;
    height: 90vh;
    margin: auto;
    background: var(--dark-clay);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.close-scroller {
    position: fixed;
    top: 60px;
    right: 160px;
    z-index: 10000;
    background: var(--primary-color);
    border: none;
    color: rgb(252, 249, 249);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.close-scroller:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.scroller-header {
    text-align: center;
    padding: 20px;
    color: white;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.scroller-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.scroller-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.scroller-images {
    overflow-y: auto;
    max-height: calc(90vh - 100px);
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

.scroller-images::-webkit-scrollbar {
    width: 8px;
}

.scroller-images::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.scroller-images::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 0;
}

.scroller-image-wrapper {
    opacity: 0;
    width: 100%;
    height: auto;
    max-width: 900px;
    animation: scrollReveal 0.5s ease forwards;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
    display: block;
    margin: 0;
}

.scroller-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
    background: transparent;
    margin: 0;
}



@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .project-scroller-content {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
        padding: 0;
    }

    .scroller-header h2 {
        font-size: 1.6rem;
    }

    .scroller-header .subtitle {
        font-size: 0.9rem;
    }

    .scroller-images {
        padding: 0;
        gap: 0;
    }

    .scroller-image-wrapper {
        width: 100vw;
        height: auto;
        max-width: 100vw;
        max-height: none;
        margin: 0;
        background: transparent;
        border-radius: 0;
        opacity: 1;
        animation: none;
        display: block;
        overflow: hidden;
    }
    .scroller-image {
        width: 100%;
        height: auto;
        max-width: 100vw;
        max-height: none;
        object-fit: contain;
        background: transparent;
        border-radius: 0;
        margin: 0;
        display: block;
    }

    .close-scroller {
        top: 10px;
        right: 10px;
    }
}