/* Project container */
        
    * {
        box-sizing: border-box;
    }

    body {
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Variable for image height */
    :root {
        --scroll-height: clamp(400px, 60vh, 800px);
    }

    .project-container {
        width: 100%;
        align-self: stretch;
        padding: 0 20px;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        box-sizing: border-box;
        overflow: hidden;
        flex: 1;
    }

    .project-description {
        position: relative;
        max-width: 800px;
        line-height: 1.2;
        max-height: 2.4em; /* exactly 2 lines */
        min-height: 2.4em; 
        overflow: hidden;
        opacity: 0;        
        transition: opacity .3s ease;
    }

    .project-description.is-ready { 
        opacity: 0.85; 
    }

    .project-header {
        margin: 0 auto 8px;
        width: min(800px, 100%);
    }

    /* Horizontal scroll section */
    .horizontal-section {
        position: relative;
        width: 100%;
        min-width: 0;
        margin: 0 0 64px;
        padding: 20px 0 60px;
    }

    /* truncation and read more */ 

    .scroll-wrapper {
        position: relative;
        width: 100%;
        height: var(--scroll-height);
        overflow: hidden;
        cursor: grab;
        user-select: none;
    }

    .scroll-wrapper.grabbing {
        cursor: grabbing;
    }

    .scroll-track {
        display: inline-flex;
        gap: 40px;
        padding: 0;
        height: 100%;
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }

    .scroll-track.no-transition {
        transition: none;
    }

    .scroll-item {
        height: var(--scroll-height);
        flex-shrink: 0;
        opacity: 0;
        animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        background: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .scroll-item img {
        height: var(--scroll-height);
        width: auto;
        display: block;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
    }

    /* Controls */
    .scroll-controls {
        position: absolute;
        bottom: 0;
        right: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 10;
    }

    .scroll-buy {
        background: none;
        font-family: 'FoundersGroteskTextRegular', 'Helvetica', 'Arial', sans-serif;
        color: #1A1A1A;
        transition: all 0.3s ease;
        letter-spacing: 0.25px;
        text-align: center;
        padding: 4px 12px 6px 12px;
        border-radius: 4px;
        border: 2px solid #1A1A1A;
        line-height: 1.2;
        cursor: pointer;
        font-size: 1rem;
        text-decoration: none;
        display: inline-block;
    }

    .scroll-buy-container {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hover only for devices that support hover (desktop) */
    @media (hover: hover) and (pointer: fine) {
      .scroll-buy:hover {
        background: #1A1A1A;
        color: #FAFAFA;
      }
    }

    .scroll-nav {
        display: flex;
        gap: 12px;
    }

    .scroll-btn {
        background: none;
        border: none;
        color: #1A1A1A;
        cursor: pointer;
        padding: 12px;
        opacity: 0.8;
        transition: opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .scroll-btn:disabled {
        opacity: 0.3;
        cursor: default;
    }

    .scroll-btn svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .scroll-btn:hover:not(:disabled) {
            opacity: 0.7;
        }
    }

    @media (hover: hover) and (pointer: fine) {
        .progress-dash:hover {
            opacity: 0.7; /* Add this new rule */
        }
    }

    .scroll-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        display: flex;
        gap: 8px;
        justify-content: center;
        margin-top: 0;
        height: 44px;
        align-items: center;
    }

   .progress-dash {
        width: 32px;
        height: 44px;
        position: relative;
        cursor: pointer;
        display: flex;
        align-items: center;
        opacity: 0.3; /* Move opacity here */
        transition: opacity 0.3s ease;
    }

    .progress-dash::after {
        content: '';
        width: 100%;
        height: 2px;
        background: #1A1A1A;
    }

    .progress-dash.active {
        opacity: 1; /* Toggle opacity on parent */
    }

    /* After your existing .scroll-item img styles. Rotate and scale images on hover. Currently set to not scale or rotate */
    @media (hover: hover) and (pointer: fine) {
        .scroll-item img {
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .scroll-item:hover img {
            transform: scale(1.00) rotate(0.0deg);
        }
    }

    /* Mobile adjustments */
    @media (max-width: 768px) {
        body {
            height: auto;
            min-height: 100dvh;
            overflow-y: auto;
        }

        .project-container {
            margin: 64px 0 48px 0;
            padding: 20px 16px;
            overflow: visible;
            justify-content: flex-start;
            min-height: auto;
        }

        .project-header {
            margin: 0 auto 24px;
        }

        .scroll-wrapper {
            height: auto;
            overflow: visible;
            cursor: default;
        }

        .scroll-track {
            display: flex;
            flex-direction: column;
            gap: 16px;
            height: auto;
            transform: none !important;
            transition: none;
            will-change: auto;
        }

        .scroll-item {
            display: block;          
            height: auto;
            min-height: 66vw;        
            background: none;    
        }

        .scroll-item img {
            width: 100%;
            height: auto;              /* full image at any aspect ratio, 4x5 or 35mm */
            max-height: none;
        }

        .scroll-controls, .scroll-progress {
            display: none;
        }

        .scroll-buy-container {
            position: static;
            transform: none;
            width: 100%;
            height: auto;
            margin-top: 24px;
        }

        .scroll-buy {
            width: 100%;
            font-size: 1rem;
            padding: 10px 20px 14px 20px;
            min-height: 44px;
            margin-top: 24px;
        }

        .horizontal-section {
            padding: 20px 0 0;
            margin-bottom: 48px;
        }

        /* Save */

        .scroll-btn {
            min-width: 48px;
            min-height: 48px;
            padding: 14px;
        }

        .scroll-btn svg {
            width: 24px;
            height: 24px;
        }        

        .progress-dash {
            width: 24px;
            height: 48px;
        }
    }

    /* Delay animations for each item */
    .scroll-item:nth-child(1) { animation-delay: 0s; }
    .scroll-item:nth-child(2) { animation-delay: 0.1s; }
    .scroll-item:nth-child(3) { animation-delay: 0.2s; }
    .scroll-item:nth-child(4) { animation-delay: 0.3s; }
    .scroll-item:nth-child(5) { animation-delay: 0.4s; }
    .scroll-item:nth-child(6) { animation-delay: 0.5s; }
    .scroll-item:nth-child(7) { animation-delay: 0.6s; }
    .scroll-item:nth-child(8) { animation-delay: 0.7s; }