/* ========================================
   PROJECT PAGE SPECIFIC STYLES
   Updated: Cover image at top, client logo, reduced spacing
   ======================================== */

/* Cover Image */
.project-cover {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-top: 70px;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Header - Client Logo */
.project-header {
    padding: 0 80px;
    text-align: center;
    background: #fff;
}

.client-logo {
    margin-bottom: 0;
}

.client-logo img {
    max-height: 200px;
    max-width: 300px;
    width: auto;
    object-fit: contain;
}

.project-header h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--gray);
}

.project-details {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 80px;
    text-align: center;
}

.project-description h2 {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 500;
}

.project-description p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: #fafafa;
    border: 1px solid #eee;
}

.meta-item {
    padding: 30px 20px;
    border-right: 1px solid #eee;
    text-align: center;
}

.meta-item:last-child {
    border-right: none;
}

.meta-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.meta-value {
    font-size: 15px;
    color: var(--gray);
    font-weight: 300;
}

/* Photo Gallery - Reduced spacing, smaller images */
.photo-gallery {
    padding: 40px 80px 60px;
    background: #fff;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-block;
    padding: 16px 40px;
    background: #000;
    color: white;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary);
    color: #000;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    color: var(--primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-strip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 999px;
    overflow-x: auto;
}

.lightbox-strip::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    flex: 0 0 auto;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.lightbox-thumb img {
    display: block;
    width: 42px;
    height: 32px;
    object-fit: cover;
}

.lightbox-thumb.active {
    border-color: #ffffff;
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .project-cover {
        height: 50vh;
        min-height: 300px;
    }

    .project-header {
        padding: 50px 40px 30px;
    }

    .project-details, .photo-gallery {
        padding-left: 40px;
        padding-right: 40px;
    }

    .project-meta {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .project-meta::-webkit-scrollbar {
        height: 4px;
    }

    .project-meta::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .project-meta::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .meta-item {
        flex: 0 0 auto;
        min-width: 180px;
        scroll-snap-align: start;
        border-bottom: none;
    }

    .meta-item:last-child {
        border-right: 1px solid #eee;
    }

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

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

    .project-header {
        padding: 40px 20px 20px;
    }

    .client-logo img {
        max-height: 120px;
        max-width: 200px;
    }

    .project-details {
        padding: 30px 20px 40px;
    }

    .photo-gallery {
        padding: 30px 20px 40px;
    }

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

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

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