.work-detail-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 120px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    position: relative;
    gap: 60px;
    
}

.work-header {
    display: flex;
    text-align: left;
    flex-direction: column;
    
   
    gap: 16px;
    
    height: auto;
    margin-bottom: 3rem;
}

.work-header h1 {
    width: 800px;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 64px;
    line-height: 110%;
    display: flex;
    align-items: flex-end;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.work-header .category {
    font-family: DM Sans;
font-weight: 400;
font-size: 18px;
line-height: 140%;
letter-spacing: 0px;
opacity: 0.8;

}

.work-basic-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Shared styles for work item wrappers */
.work-padded-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Specific to padded wrapper */


.work-padded-wrapper img {
    height: 675px;
    object-fit: cover;
}

.work-image {
    display: flex;
    flex-direction: column;
    
    gap: 16px;
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2/1;
}

.work-image.padded {
    
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
}





.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}



.work-description {
font-family: DM Sans;
font-weight: 400;
font-size: 18px;
line-height: 140%;
letter-spacing: 0px;
max-width: 800px;
align-self: center;
margin: 0px;

}

.basic-description {
    padding-right: 4%;
}


.work-separator {
    width: 100%;
    height: 0px;
    opacity: 0.25;
    border-top: 2px solid #FFFFFF;
    flex: none;
    
    align-self: stretch;
    flex-grow: 0;
    
}

.work-description h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: 'Trap', sans-serif;
}

.work-description p {
    color: var(--color-white-80);
    line-height: 1.8;
    font-family: 'DM Sans', sans-serif;
    margin: 0px;
}

.work-description p + p {
    margin-top: 16px;
}

/* Carousel Container */
.work-carousel-wrapper {
    width: 100%;
    display: flex
;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    
}
.work-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
  }
  
  /* Carousel Track (holds all slides) */
  .work-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    gap: 40px;
    
  }
  
  /* Carousel Slide (inherits your existing wrappers) */
  .work-carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
    aspect-ratio: 2 / 1;
    /* Inherit styles from .work-padded-wrapper or .work-basic-wrapper */
  }

  .work-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Navigation Buttons */
  .work-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-black-30);
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 2;
  }
  .work-carousel-arrow.left { left: 10px; }
  .work-carousel-arrow.right { right: 10px; }
  
  /* Dots Navigation */
  .work-carousel-dots {
    position: static;
    
    display: flex;
    gap: 30px;
    justify-content: center;
  }
  .work-carousel-dot {
    /* Frame 4823 */
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    
    border: 2px solid #FFFFFF;
    border-radius: 1000px;
    flex: none;
    order: 0;
    flex-grow: 0;
    opacity: 0.75;
    cursor: pointer;
  }
  .work-carousel-dot.active {
    opacity: 1;
    background: var(--color-white);
  }

/* Mixed Size Grid Container */
.work-mixed-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    width: 350px;
    height: auto;
    border-radius: 10px;
    flex: none;
    flex-grow: 0;
}

.work-mixed-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    flex: none;
    flex-grow: 0;
    object-fit: cover;
    display: block;
}

/* Individual image aspect ratios */
.work-mixed-grid img:first-child, .work-mixed-grid img:last-child {
    aspect-ratio: 2 / 1;
}

.work-mixed-grid img:nth-child(2), .work-mixed-grid img:nth-child(3) {
    aspect-ratio: 1 / 1;
}

.work-header-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}



/* Responsive styles for mixed grid */
@media (max-width: 990px) {
    .work-mixed-grid {
        width: 100%;
        height: auto;
        max-width: 100%;
        
    }
    
    .work-mixed-grid img {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 990px) {
    .work-mixed-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
       
        gap: 20px;
    }

    .work-mixed-grid img:first-child,
    .work-mixed-grid img:last-child {
        grid-column: 1 / -1; /* Span full width */
    }
}


@media (min-width: 2000px) {
    .work-detail-content {
        padding-inline: 100px;
    }
}

@media (max-width: 1024px) {
    .work-detail-content {
        width: 100%;
        left: 0;
        padding-bottom: 60px;
        padding-inline: 20px;
       
    }
    
    .work-header {
        width: 100%;
        flex-direction: column;
        text-align: left;
        gap: 1rem;
       
    }
    
    .work-header h1 {
        width: 100%;
        font-size: 2rem;
    }
    
    .work-images {
        width: 100%;
    }
    
    .work-image {
        width: 100%;
        height: auto;
    }
    
    .work-description {
        width: 100% !important;
        max-width: 100% !important;
        
        align-self: stretch;
    }

    .work-basic-wrapper :where(p){
        padding: 0 40px;
    }

   

    
}






@media (min-width: 1024px) {
    .work-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }

    .work-header h1 {
        width: 45%;
        margin-bottom: 0;
    }

    .work-header-right {
        width: 45%;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .work-description {
        max-width: 50%;
        align-self: flex-end;
    }

    .work-header .work-description {
        max-width: 100%;
        align-self: flex-start;
    }
}