/* Simple Appearing Animation for Project Pages */
.text-reveal-wrapper {
    overflow: visible;
    height: auto;
    padding-bottom: 0;
}

/* All direct children and nested elements start hidden with opacity */
.text-reveal-wrapper > h1,
.text-reveal-wrapper > h2,
.text-reveal-wrapper > h3,
.text-reveal-wrapper > p,
.text-reveal-wrapper > span,
.text-reveal-wrapper > a,
.text-reveal-wrapper > div,
.text-reveal-wrapper div p,
.text-reveal-wrapper div.project-detail-text {
    opacity: 0 !important;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity;
}

/* Specific display settings */
.text-reveal-wrapper > span,
.text-reveal-wrapper > a {
    display: inline-block;
}

.text-reveal-wrapper > p,
.text-reveal-wrapper > h1,
.text-reveal-wrapper > h3,
.text-reveal-wrapper > div,
.text-reveal-wrapper div p {
    display: block;
}

/* When revealed, all direct children and nested elements appear */
.text-reveal-wrapper.revealed > h1,
.text-reveal-wrapper.revealed > h2,
.text-reveal-wrapper.revealed > h3,
.text-reveal-wrapper.revealed > p,
.text-reveal-wrapper.revealed > span,
.text-reveal-wrapper.revealed > a,
.text-reveal-wrapper.revealed > div,
.text-reveal-wrapper.revealed div p,
.text-reveal-wrapper.revealed div.project-detail-text {
    opacity: 1 !important;
}

/* Project Page Styles */
.project-body {
    background-color: #212121;
    color: #ffffff;
    transition: background-color 1.5s ease-in-out;
}

.project-main {
    padding-top: 80px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.project-hero {
    padding: 60px 0 80px 0;
}

.project-header-content {
    margin-bottom: 80px;
}

.project-header-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin-top: 20px;
}

.project-title-section {
    margin-bottom: 0;
    margin-left: -10px;
    padding-left: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.project-title {
    font-family: 'Times New Roman', serif;
    font-size: 120px;
    font-weight: 400;
    color: #ffffff;
    text-transform: none !important;
    letter-spacing: -5px;
    line-height: 0.8;
    margin: 0;
    padding: 0 0 0 10px;
    transition: color 1.5s ease-in-out;
}

.project-website-link {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1;
}

.project-website-link:hover {
    color: #ffffff;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
    padding-bottom: 20px;
}

.project-meta-right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.project-label {
    font-family: 'Times New Roman', serif !important;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.7;
    transition: color 1.5s ease-in-out;
}

.project-live-link {
    font-family: 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 0;
    border: none;
    background: transparent;
    transition: opacity 0.3s ease;
    overflow: visible;
}

.project-live-link:hover {
    opacity: 0.7;
    transform: none !important;
}

.project-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    position: relative;
    flex-shrink: 0;
}

.project-live-link:hover .project-arrow {
    transform: translate(6px, -2px);
}

.project-details-section {
    margin: 0px 0 80px 0;
}


.project-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0px;
    padding: 0px 0 0 0;
    align-items: start;
}

.project-detail-item {
    display: flex;
    flex-direction: column;
}

.project-detail-title {
    font-family: Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    opacity: 1;
    transition: color 1.5s ease-in-out;
}

.project-detail-text {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    opacity: 0.7;
    transition: color 1.5s ease-in-out;
}

.project-detail-text p {
    margin: 0 0 2px 0;
}

.project-detail-text p:last-child {
    margin-bottom: 0;
}

.project-detail-item:last-child {
    justify-self: end;
    text-align: right;
}

/* Diagonal Offset Layout - Option 2 */
.project-diagonal-layout {
    display: flex;
    flex-direction: column;
    gap: 150px;
    margin-bottom: 80px;
}

.project-diagonal-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
}

.project-diagonal-image {
    position: relative;
    opacity: 0;
    transform: translateX(-50px) rotate(-2deg);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-diagonal-block:nth-child(even) .project-diagonal-image {
    transform: translateX(50px) rotate(2deg);
    order: 2;
}

.project-diagonal-block.revealed .project-diagonal-image {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.project-diagonal-block:nth-child(even).revealed .project-diagonal-image {
    transform: translateX(0) rotate(0deg);
}

.project-diagonal-image .project-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1820 / 1060;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    margin: 0;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.project-diagonal-image .project-main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #212121;
    transform: translateY(0);
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    border-radius: 0;
}

.project-diagonal-block.revealed .project-diagonal-image .project-main-image.revealed::before {
    transform: translateY(100%);
}

.project-diagonal-image .project-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    opacity: 1;
    transform: none;
}

.project-diagonal-text {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.project-diagonal-block:nth-child(even) .project-diagonal-text {
    transform: translateX(-30px);
    order: 1;
}

.project-diagonal-block.revealed .project-diagonal-text {
    opacity: 1;
    transform: translateX(0);
}

.project-diagonal-block:nth-child(even).revealed .project-diagonal-text {
    transform: translateX(0);
}

.project-diagonal-text.text-left {
    text-align: left;
}

.project-diagonal-text.text-right {
    text-align: right;
}

.project-diagonal-text .project-text-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-diagonal-text .project-description-title {
    margin-bottom: 25px;
}

.project-diagonal-text .project-description-text {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-diagonal-text .project-description-text .text-reveal-wrapper {
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-diagonal-text .project-description-text p {
    margin-bottom: 0;
}

/* Original image section for other pages */
.project-image-section {
    width: 100%;
    margin-bottom: 80px;
    overflow: visible;
    position: relative;
}

.project-image-section .project-main-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image-section .project-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Stplaner Image Scroll Reveal Effect - Scroll Linked */
.project-image-section .stplaner-image-reveal {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    margin-bottom: 40px;
    border-radius: 22px; /* Adjusted desktop radius */
    background: #8A8A8A; /* Updated to requested grey to avoid white bleed */
}

.project-image-section .stplaner-image-reveal:last-child {
    margin-bottom: 0;
}

/* Subtle transparency gradient at top of image as it scrolls */
.project-image-section .stplaner-image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(138, 138, 138, 0.3), transparent); /* Match grey tone */
    pointer-events: none;
    z-index: 2;
    opacity: var(--gradient-opacity, 0); /* Controlled by JavaScript with delay */
    transition: opacity 0.3s ease;
    border-radius: 22px 22px 0 0; /* Match desktop rounded corners on top */
}

.project-image-section .stplaner-image-reveal img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain; /* Show images naturally in full */
    border-radius: 22px; /* Match desktop rounded corners */
    background-color: #8A8A8A; /* Ensure behind transparent pixels is grey */
}

/* Monun Image Scroll Reveal Effect - Same as Stplaner */
.project-image-section .monun-image-reveal {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    margin-bottom: 40px;
    border-radius: 22px; /* Adjusted desktop radius */
    background: #8A8A8A; /* Updated to requested grey to avoid white bleed */
}

.project-image-section .monun-image-reveal:last-child {
    margin-bottom: 0;
}

/* Subtle transparency gradient at top of image as it scrolls */
.project-image-section .monun-image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(138, 138, 138, 0.3), transparent); /* Match grey tone */
    pointer-events: none;
    z-index: 2;
    opacity: var(--gradient-opacity, 0); /* Controlled by JavaScript with delay */
    transition: opacity 0.3s ease;
    border-radius: 22px 22px 0 0; /* Match desktop rounded corners on top */
}

.project-image-section .monun-image-reveal img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain; /* Show images naturally in full */
    border-radius: 22px; /* Match desktop rounded corners */
    background-color: #8A8A8A; /* Ensure behind transparent pixels is grey */
}

/* Doratec Image Scroll Reveal Effect - Same as Monun/Stplaner */
.project-image-section .doratec-image-reveal {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    margin-bottom: 40px;
    border-radius: 22px; /* Desktop radius */
    background: #8A8A8A; /* Grey to avoid white bleed */
}

.project-image-section .doratec-image-reveal:last-child {
    margin-bottom: 0;
}

/* Subtle transparency gradient at top of image as it scrolls */
.project-image-section .doratec-image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(138, 138, 138, 0.3), transparent);
    pointer-events: none;
    z-index: 2;
    opacity: var(--gradient-opacity, 0);
    transition: opacity 0.3s ease;
    border-radius: 22px 22px 0 0;
}

.project-image-section .doratec-image-reveal img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 22px;
    background-color: #8A8A8A;
}

/* Spitex Image Scroll Reveal Effect - Same as others */
.project-image-section .spitex-image-reveal {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    margin-bottom: 40px;
    border-radius: 22px;
    background: #8A8A8A;
}

.project-image-section .spitex-image-reveal:last-child {
    margin-bottom: 0;
}

.project-image-section .spitex-image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(138, 138, 138, 0.3), transparent);
    pointer-events: none;
    z-index: 2;
    opacity: var(--gradient-opacity, 0);
    transition: opacity 0.3s ease;
    border-radius: 22px 22px 0 0;
}

.project-image-section .spitex-image-reveal img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 22px;
    background-color: #8A8A8A;
}
/* Main Image Carousel */
.project-main-image-carousel {
    position: relative;
    width: 100vw;
    height: auto;
    min-height: 400px;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    cursor: grab;
    left: 50%;
    transform: translateX(-50%);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}


.project-main-image-carousel:active {
    cursor: grabbing;
}

.carousel-slides {
    display: flex;
    align-items: center;
    min-height: 400px;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 24px;
    position: relative;
    backface-visibility: hidden;
}

.carousel-slide {
    flex: 0 0 1160px;
    width: 1160px;
    max-width: min(1160px, calc(100vw - 80px));
    height: auto;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.carousel-slide.active {
    filter: grayscale(0%);
    opacity: 1;
}

.carousel-slide:not(.active) {
    filter: grayscale(0%);
    opacity: 1;
}


.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    touch-action: pan-y;
}


/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.project-description-section {
    margin-bottom: 80px;
}


/* Horizontal Sections Gallery (like screenshot) */
.project-horizontal-sections {
    width: 100%;
    margin: 80px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.horizontal-section-item {
    width: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.horizontal-section-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.horizontal-section-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.horizontal-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.horizontal-section-item:hover .horizontal-section-image img {
    transform: scale(1.05);
}

.project-description-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

/* Three Column Layout */
.project-three-column {
    margin-bottom: 80px;
}

.project-three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.project-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    margin-bottom: 40px;
}


.project-three-column .project-description-title {
    margin-bottom: 20px;
}

.project-three-column .project-description-text {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-three-column .project-description-text .text-reveal-wrapper {
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-three-column .project-description-text p {
    margin-bottom: 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .project-three-column-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    
    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 60px;
        align-items: start;
    }
    
    .project-detail-item {
        display: flex;
        flex-direction: column;
    }
    
    .project-detail-item:nth-child(1),
    .project-detail-item:nth-child(3) {
        justify-self: start;
        text-align: left;
    }
    
    .project-detail-item:nth-child(2),
    .project-detail-item:nth-child(4) {
        justify-self: end;
        text-align: right;
    }
    
    .project-details-section {
        margin: 0px 0 60px 0;
    }
}

.project-description-title h3 {
    font-family: Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
    opacity: 1;
    transition: color 1.5s ease-in-out;
}

.project-description-text {
    font-family: Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
    opacity: 0.8;
    transition: color 1.5s ease-in-out;
}

.project-description-text p {
    margin: 0;
}

.project-gallery-section {
    margin-bottom: 80px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-gallery-item {
    width: 100%;
}

.project-gallery-section .work-item {
    transition: none;
}

.project-gallery-section .work-item:hover {
    opacity: 1;
    transform: none;
}

.project-gallery-section .work-image {
    margin-bottom: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.project-gallery-section .work-image-empty {
    width: 50%;
    height: 400px !important;
    padding-bottom: 0 !important;
    background: transparent;
}

.project-gallery-horizontal {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.project-gallery-horizontal .work-image {
    width: 50%;
    height: 25vh;
    min-height: 400px;
    max-height: 400px;
    padding-bottom: 0 !important;
    overflow: hidden;
    position: relative;
}

.project-gallery-section .work-image {
    overflow: hidden;
    position: relative;
}

.project-gallery-section .work-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    transform: translateY(0);
    transition: transform 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.project-gallery-section .work-image.revealed::before {
    transform: translateY(100%);
}

.project-gallery-section .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: none;
    opacity: 1;
    transform: none;
}

.project-gallery-section .work-item:hover .work-image img {
    transform: none;
}

.project-gallery-horizontal {
    margin-top: 20px;
    width: 100%;
}

.project-gallery-horizontal .work-image {
    width: 50%;
    height: 25vh;
    min-height: 400px;
    max-height: 400px;
    padding-bottom: 0 !important;
    overflow: hidden;
    position: relative;
}

.project-gallery-horizontal .work-image:only-child {
    width: 100%;
    height: 50vh;
    min-height: 800px;
    max-height: 800px;
}

.project-gallery-horizontal .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    opacity: 1;
    transform: none;
}

.project-gallery-horizontal .work-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    transform: translateY(0);
    transition: transform 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.project-gallery-side-by-side {
    margin-top: 20px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-gallery-side-by-side .work-image {
    width: 100%;
    height: 25vh;
    min-height: 400px;
    max-height: 400px;
    padding-bottom: 0 !important;
    overflow: hidden;
    position: relative;
}

.project-gallery-side-by-side .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    opacity: 1;
    transform: none;
}

.project-gallery-side-by-side .work-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    transform: translateY(0);
    transition: transform 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.project-gallery-side-by-side .work-image.revealed::before {
    transform: translateY(100%);
}


/* Tablet Responsive */
@media (max-width: 1024px) {
    .project-diagonal-layout {
        gap: 120px;
    }
    
    .project-diagonal-block {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .project-diagonal-block:nth-child(even) .project-diagonal-image {
        order: 1;
    }
    
    .project-diagonal-block:nth-child(even) .project-diagonal-text {
        order: 2;
    }
    
    .project-diagonal-image {
        transform: translateY(40px) rotate(0deg) !important;
    }
    
    .project-diagonal-block:nth-child(even) .project-diagonal-image {
        transform: translateY(40px) rotate(0deg) !important;
    }
    
    .project-diagonal-block.revealed .project-diagonal-image {
        transform: translateY(0) rotate(0deg) !important;
    }
    
    .project-diagonal-text {
        transform: translateY(30px) !important;
    }
    
    .project-diagonal-block:nth-child(even) .project-diagonal-text {
        transform: translateY(30px) !important;
    }
    
    .project-diagonal-block.revealed .project-diagonal-text {
        transform: translateY(0) !important;
    }
    
    .project-diagonal-text.text-left,
    .project-diagonal-text.text-right {
        text-align: left;
    }
    
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .project-main-image-carousel {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
        margin-top: 0;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
        min-height: auto;
        height: auto;
        display: flex;
        align-items: stretch;
        padding: 5px 0 10px 0 !important;
    }
    
    .carousel-slides {
        gap: 16px;
        min-height: auto;
        height: auto;
        padding: 0 !important;
    }
    
    .carousel-slide {
        flex: 0 0 90vw;
        width: 90vw;
        max-width: none;
        height: auto;
        aspect-ratio: 1700 / 1150;
        touch-action: pan-y;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .carousel-slide img {
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        transform-origin: center center !important;
    }
    
    .carousel-dots {
        bottom: 20px;
        gap: 8px;
        z-index: 10;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dot {
        width: 10px;
        height: 10px;
        cursor: pointer;
        touch-action: manipulation;
    }
    
    .project-gallery-horizontal .work-image img,
    .project-gallery-side-by-side .work-image img {
        object-fit: contain;
    }
    .project-title {
        font-size: 60px;
        letter-spacing: -2px;
        margin: 0;
        padding: 0;
    }
    
    .project-hero {
        padding: 40px 0 60px 0;
    }
    
    .project-header-content {
        margin-bottom: 50px;
    }
    
    .project-title-section {
        margin-bottom: 40px;
        margin-left: -10px;
        padding-left: 0;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .project-meta-right {
        align-self: flex-end;
        margin-top: -43px;
    }
    
    .project-diagonal-layout {
        gap: 100px;
    }
    
    .project-diagonal-block {
        gap: 50px;
    }
    
    .project-diagonal-text.text-left,
    .project-diagonal-text.text-right {
        text-align: left;
    }
    
    .project-horizontal-sections {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 60px 0;
    }
    
    .horizontal-section-image {
        aspect-ratio: 16 / 9;
    }
    
    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 60px;
        align-items: start;
    }
    
    .project-detail-item {
        display: flex;
        flex-direction: column;
    }
    
    .project-detail-item:nth-child(1),
    .project-detail-item:nth-child(3) {
        justify-self: start;
        text-align: left;
    }
    
    .project-detail-item:nth-child(2),
    .project-detail-item:nth-child(4) {
        justify-self: end;
        text-align: right;
    }
    
    .project-details-section {
        margin: 0px 0 20px 0;
    }
    
    .project-image-section {
        margin-bottom: 40px !important;
        margin-top: 0px !important;
        transform: none !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .project-image-section .project-main-image {
        width: 100%;
        height: 74vh !important;
        min-height: 74vh !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
    }
    
    .project-image-section .project-main-image img {
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        max-width: 100% !important;
        min-height: 100% !important;
        transform: scale(1.43) !important;
        transform-origin: center center !important;
    }
    
    /* Stplaner images - override fixed heights for natural display */
    .project-image-section .stplaner-image-reveal {
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 25px !important;
    }
    
    .project-image-section .stplaner-image-reveal img {
        height: auto !important;
        transform: none !important;
    }
    
    /* Monun images - override fixed heights for natural display */
    .project-image-section .monun-image-reveal {
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 25px !important;
    }
    
    .project-image-section .monun-image-reveal img {
        height: auto !important;
        transform: none !important;
    }
    
    /* First description section - proper spacing from image */
    .project-description-section:first-of-type {
        margin-bottom: 40px !important;
        margin-top: 40px !important;
    }
    
    /* Specifically target three-column layout - proper spacing */
    .project-three-column {
        margin-top: 40px !important;
    }
    
    /* Subsequent description sections - proper spacing */
    .project-description-section ~ .project-description-section {
        margin-bottom: 40px !important;
        margin-top: 40px !important;
    }
    
    .project-description-text p {
        margin-bottom: 24px !important; /* Increased spacing between paragraphs on mobile */
        line-height: 1.4 !important; /* Reduced line height for tighter spacing */
    }
    
    .project-description-text p:last-child {
        margin-bottom: 0 !important;
    }
    
    .project-description-grid {
        gap: 15px !important; /* Closer gap between title and text on mobile */
    }
    
    .project-detail-title {
        margin-bottom: 2px !important; /* Reduced gap between title and text on mobile */
    }
    
    .project-three-column-grid {
        grid-template-columns: 1fr !important; /* Single column layout on mobile */
        gap: 20px !important; /* Reduced gap for mobile */
    }
    
    .project-gallery-section {
        margin-bottom: 40px;
    }
    
    .project-gallery-horizontal {
        margin-top: 20px;
    }
    
    .project-gallery-horizontal .work-image {
        width: 100%;
        height: 20vh;
        min-height: 300px;
        max-height: 300px;
    }
    
    .project-gallery-horizontal .work-image:only-child {
        width: 100%;
        height: 40vh;
        min-height: 400px;
        max-height: 500px;
    }
    
    .project-gallery-section .work-image-empty {
        width: 100%;
        height: 20vh;
        min-height: 300px;
        max-height: 300px;
    }
    
    .project-gallery-side-by-side {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-gallery-side-by-side .work-image {
        height: 40vh;
        min-height: 400px;
        max-height: 500px;
    }
    
    .project-gallery-section .work-image-empty {
        height: 15vh;
        min-height: 150px;
        max-height: 250px;
    }
    
    .project-gallery-section {
        margin-bottom: 60px;
    }
}


/* Project Back Link Styles */
.project-back-section {
    margin-top: 60px;
    text-align: left;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
    padding: 4px 12px 4px 0;
    border: none;
    background: transparent;
    transition: opacity 0.3s ease;
    overflow: visible;
}

.project-back-link:hover {
    color: #ffffff;
    opacity: 0.7;
    transform: none !important;
}

.project-back-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    position: relative;
    flex-shrink: 0;
}

.project-back-link:hover .project-back-arrow {
    transform: translate(6px, -2px);
}

/* ========================================
   MONUN THREE-COLUMN INFO LAYOUT
   ======================================== */

.project-info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 200px;
    margin-top: 80px;
    margin-bottom: 80px;
    align-items: stretch;
}

/* Left Column: Industry, Service, Location */
.project-info-left {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    align-content: start;
}

.project-info-left .project-info-item:nth-child(1) {
    /* Industry - at top */
}

.project-info-left .project-info-item:nth-child(2) {
    /* Service - vertically centered */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.project-info-left .project-info-item:nth-child(3) {
    /* Location - at bottom, aligns with Stack */
}

/* Middle Column: Year (top), Stack (bottom) */
.project-info-middle {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    height: 100%;
}

.project-info-year {
    /* Year at top - aligns with Industry */
}

.project-info-stack {
    /* Stack at bottom - aligns with Location */
    align-self: end;
}

/* Right Column: Project Description */
.project-info-right {
    display: flex;
    flex-direction: column;
}

.project-info-right .project-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Info Items */
.project-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-info-label {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    text-transform: none;
    letter-spacing: 0px;
    opacity: 1;
    display: block;
    margin-bottom: 2px;
}

.project-info-value {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.5;
    opacity: 0.9;
    display: block;
}

/* Project Description Content */
.project-description-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-description-text {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.8;
    opacity: 0.9;
    margin: 0;
    text-align: left;
}

/* Responsive Design - Keep 3 columns on iPad/Tablet */
@media (max-width: 1024px) {
    .project-info-layout {
        gap: 120px;
    }
}

/* Mobile Only - 2 columns + description below */
@media (max-width: 768px) {
    /* Mobile Title adjustments */
    .project-title {
        font-size: 60px;
        letter-spacing: -3px;
        padding: 0;
    }

    .project-title-section {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .project-website-link {
        font-size: 15px;
        align-self: flex-end;
        margin-top: -10px;
    }

    .project-info-layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px 80px;
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .project-info-right {
        grid-column: 1 / -1;
        margin-top: 40px;
    }

    .project-info-left {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .project-info-left .project-info-item:nth-child(2) {
        margin-top: 0;
        margin-bottom: 0;
    }

    .project-info-left .project-info-item:nth-child(3) {
        margin-top: 0;
    }

    .project-info-middle {
        display: contents; /* Unwrap so children become grid items */
    }

    /* Year stays in right column, top */
    .project-info-year {
        grid-column: 2; /* Right column */
        grid-row: 1; /* Top row */
        align-self: start;
    }

    /* Stack moves to right column, SAME horizontal line as Location */
    .project-info-stack {
        grid-column: 2; /* Right column */
        grid-row: 1; /* Start at same row */
        align-self: end; /* Align to bottom to match Location's position */
        margin-top: 100px; /* Match Location's position from top */
    }

    .project-info-label {
        font-size: 15px;
    }

    .project-info-value {
        font-size: 16px;
    }

    .project-description-text {
        font-size: 16px;
    }
    
    /* Stplaner images on mobile - same effect as desktop */
    .project-image-section .stplaner-image-reveal {
        margin-bottom: 30px; /* Close to each other like desktop */
        border-radius: 12px; /* Reduced radius for mobile */
    }
    
    .project-image-section .stplaner-image-reveal::before {
        border-radius: 12px 12px 0 0;
    }
    
    .project-image-section .stplaner-image-reveal img {
        border-radius: 12px;
        height: auto;
        object-fit: contain; /* Show naturally in full */
    }
    
    /* Monun images on mobile - same effect as Stplaner */
    .project-image-section .monun-image-reveal {
        margin-bottom: 30px; /* Close to each other like desktop */
        border-radius: 12px; /* Reduced radius for mobile */
    }
    
    .project-image-section .monun-image-reveal::before {
        border-radius: 12px 12px 0 0;
    }
    
    .project-image-section .monun-image-reveal img {
        border-radius: 12px;
        height: auto;
        object-fit: contain; /* Show naturally in full */
    }
    
    /* Doratec images on mobile - same effect */
    .project-image-section .doratec-image-reveal {
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .project-image-section .doratec-image-reveal::before {
        border-radius: 12px 12px 0 0;
    }
    
    .project-image-section .doratec-image-reveal img {
        border-radius: 12px;
        height: auto;
        object-fit: contain;
    }
    
    /* Spitex images on mobile */
    .project-image-section .spitex-image-reveal {
        margin-bottom: 30px;
        border-radius: 12px;
    }
    
    .project-image-section .spitex-image-reveal::before {
        border-radius: 12px 12px 0 0;
    }
    
    .project-image-section .spitex-image-reveal img {
        border-radius: 12px;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 50px;
        letter-spacing: -2px;
    }

    .project-website-link {
        font-size: 14px;
    }

    .project-info-layout {
        gap: 40px 60px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .project-info-left {
        gap: 40px;
    }

    .project-info-middle {
        gap: 40px;
    }

    .project-info-label {
        font-size: 14px;
    }

    .project-info-value {
        font-size: 15px;
    }

    .project-description-text {
        font-size: 15px;
        line-height: 1.7;
    }
}


