/* Project Page Specific Styles */

/* Disable scroll snapping for project pages to allow natural scrolling to footer */
html {
    scroll-snap-type: none !important;
}

.project-intro {
    width: 100%;
    background: white;
    scroll-snap-align: start; /* Changed from end to allow scrolling past if needed */
    scroll-snap-stop: normal;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    height: auto;
    padding-top: 80px;
    padding-bottom: 4rem;
    justify-content: center;
    align-items: center;
}

.project-intro .hero-image {
    width: 100%;
    height: 45vh;
    object-fit: cover;
    object-position: center;
    margin-bottom: 2rem;
}

.project-hero {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin-top: 80px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-content {
    background: white;
    padding: 8rem 4rem;
}

/* Project Page Two-Section Layout */
.project-section-1 {
    background: white;
    padding: 6rem 4rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.project-section-1 .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.project-intro .container {
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 1;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-section-2 {
    background: white;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
}

.project-section-2 .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: stretch;
}

.project-header {
    margin-bottom: 3rem;
    width: 100%;
}

.project-header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}

.project-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.project-meta-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: none;
    justify-items: center;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.meta-value {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 400;
}

.project-description {
    margin: 2rem 0 0 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    max-width: 900px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.project-description p {
    margin-bottom: 1.5rem;
}

.project-gallery {
    margin: 0;
    background: #fafafa;
    border: none;
    padding: 0;
    flex: 0 0 auto;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.gallery-placeholder {
    text-align: center;
    color: var(--gray);
    padding: 3rem 2rem;
}

.gallery-placeholder p {
    font-size: 1.1rem;
}

/* Minimalistic Horizontal Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-main {
    flex: 1;
    min-height: 500px;
    overflow: hidden;
    background: #f9f9f9;
    position: relative;
}

.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

/* Navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

/* Thumbnails strip */
.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    overflow-x: auto;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.gallery-indicator {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 2px;
}

.gallery-indicator:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.gallery-indicator.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Image counter */
.gallery-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 10;
}

@media (max-width: 1024px) {
    .gallery-main {
        min-height: 400px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-prev {
        left: 0.5rem;
    }

    .gallery-next {
        right: 0.5rem;
    }

    .gallery-thumbnails {
        padding: 1rem;
        min-height: 70px;
    }

    .gallery-indicator {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .gallery-main {
        min-height: 300px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .gallery-thumbnails {
        padding: 0.8rem;
        gap: 0.4rem;
        min-height: 60px;
    }

    .gallery-indicator {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .gallery-counter {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1.5rem;
    }

    .gallery-grid img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .gallery-grid img {
        height: 250px;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 10px;
    }

    .lightbox-close {
        font-size: 2rem;
    }
}

.project-scope {
    margin: 0;
    padding: 3rem;
    background: #f9f9f9;
    border: none;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-scope h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1.5rem;
}

.project-scope h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.project-scope ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-scope li {
    padding: 0;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.project-scope li:before {
    content: "→";
    color: var(--accent);
    margin-right: 0;
    font-weight: 400;
    min-width: 20px;
}

.project-scope li:last-child {
    border-bottom: none;
}

.related-projects {
    padding: 6rem 4rem;
    background: white;
}

.related-projects-inner {
    margin: 2rem 0 0 0;
    flex: 1;
}

.related-projects-inner h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-align: left;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.related-projects-inner h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.related-projects h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.related-projects h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.related-projects h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

.projects-grid.small {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card-small {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: all 0.3s;
    background: white;
}

.project-card-small img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card-small:hover img {
    transform: scale(1.05);
}

.project-card-small h3 {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-content {
        padding: 4rem 2rem;
    }

    .project-intro .container {
        padding: 4rem 2rem;
    }

    .project-intro .hero-image {
        height: 40vh;
    }

    .project-section-1 {
        padding: 4rem 2rem;
    }

    .project-section-2 {
        padding: 4rem 2rem;
    }

    .content-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .project-header h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .project-meta-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
    }

    .projects-grid.small {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-projects {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .project-hero {
        height: 40vh;
        margin-top: 60px;
    }

    .project-intro .hero-image {
        height: 35vh;
        margin-top: 60px;
    }

    .project-intro .container {
        padding: 3rem 1.5rem;
    }

    .project-section-2 {
        padding: 3rem 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .project-gallery {
        min-height: 400px;
    }

    .project-header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .project-meta-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: start;
    }

    .project-scope {
        padding: 2rem;
    }

    .project-scope h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .related-projects h2 {
        font-size: 1.5rem;
    }

    .projects-grid.small {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-gallery {
        margin: 3rem 0 2rem 0;
    }
}



/* Option 2: The "Editorial Footer" (Minimalist & Clean) */
.layout-editorial-stack {
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
}

.description-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #444;
}

.scope-horizontal-bar {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.scope-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.scope-items {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* Clean up old unused css */

/* Mobile Responsive Styles (iPhone 15, 15 Pro, 15 Pro Max) */
@media screen and (max-width: 480px) {
    /* Layout & Spacing */
    .project-intro,
    .project-section-1,
    .project-section-2,
    .project-content {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 3rem;
        padding-bottom: 3rem;
        min-height: auto; /* Allow height to adjust */
    }

    .project-intro .container,
    .project-section-1 .container,
    .project-section-2 .container {
        padding: 0;
    }

    /* Grids */
    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        margin-bottom: 3rem;
    }

    .project-details-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
        border-top: none; /* Cleaner look on mobile */
    }

    /* Typography */
    .project-header h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .project-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Hero Images */
    .project-hero,
    .project-intro .hero-image {
        height: 35vh; /* Reduce height for mobile */
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    /* Editorial Footer */
    .layout-editorial-stack {
        margin: 2rem auto 0;
        padding: 0;
    }
    
    .scope-horizontal-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .scope-label {
        margin-bottom: 0.2rem;
        display: block;
    }
}
