/* project-list-section */
/* -------------------- */
.project-list-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.project-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
}

/* CARD */
.project-item {
    display: none;
}

.project-item.is-visible {
    display: block;
}

.project-item a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
}

.project-item img {
    width: 100%;
    height: 353px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-item a:hover img {
    transform: scale(1.05);
}

.project-item h3 {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;

    /* biar rata */
    min-height: 38px;
}

/* PAGINATION */
.project-list-nav {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.project-list-nav button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-list-nav button:hover {
    background: #000;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .project-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-item img {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .project-list-grid {
        grid-template-columns: 1fr;
    }

    .project-item img {
        height: 200px;
    }
}

/* =========================
   PROJECT LIST SECTION (V2 Override)
========================= */
.project-list-section {
    padding: 60px 0 100px;
    background-color: #fff;
}

.project-list-wrapper {
    max-width: 1280px; /* Adjusted to fit ~270px grid cols better */
    margin: 0 auto;
    padding: 0 60px;
}

.project-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    row-gap: 48px;
}

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

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    width: 100%;
    aspect-ratio: 270 / 353; /* Exact Figma ratio */
    overflow: hidden;
    margin-bottom: 20px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    background-color: #f0f0f0;
}

.project-link:hover .project-image img {
    transform: scale(1.05);
}

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

.project-title {
    font-family: var(--font-heading); /* Or 'Inter' depending on specific font */
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    margin: 0 0 4px 0;
    text-transform: capitalize; /* or uppercase if desired */
}

.project-location {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

/* Navigation Buttons */
.project-navigation {
    display: flex;
    gap: 16px;
    margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .project-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .project-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-list-wrapper {
        padding: 0 24px;
    }
    
    .project-list-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

/* =========================
   PROJECT DETAIL PAGE
========================= */
.project-detail-intro {
    background-color: #5c5542; /* Dark Olive/Brown from reference */
    color: #fff;
    padding: 80px 0;
}

.project-intro-label {
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    opacity: 0.9;
}

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

.project-intro-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.project-intro-right p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    max-width: 90%;
}

.project-detail-content {
    padding: 80px 0;
    background-color: #fff;
}

.project-info-row {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 60px;
}

.project-meta-col {
    flex: 1;
    max-width: 60%;
}

.client-logo-wrapper {
    margin-bottom: 30px;
}

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

.detail-project-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.detail-project-subtitle {
    font-weight: 400;
    color: #444;
}

.detail-project-specs {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Products Used */
.project-products-col {
    width: 300px; /* Fixed width for products column */
}

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

.used-product-item {
    text-align: center;
}

.used-product-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    margin-bottom: 10px;
    overflow: hidden;
}

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

.used-product-name {
    font-size: 13px;
    color: #000;
}

/* Gallery - Centered */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.gallery-item {
    width: calc(25% - 18px); /* 4 columns approx */
    /* width: 270px; */ /* Or fixed width if preferred */
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 3/4; 
    object-fit: cover;
    display: block;
}



/* =========================
   PROJECT LIST GRID (4 Cols V3 Override)
========================= */
.project-list-section {
    padding: 80px 0;
}

.project-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns as requested */
    gap: 40px 24px;
}

.project-item {
    position: relative;
    display: block;
    width: 100%;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.project-image {
    width: 100%;
    /* Aspect Ratio based on 270:353 ~ 0.76 or 3:4 roughly */
    aspect-ratio: 270/353;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 20px;
    position: relative;
}

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

.project-link:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding-right: 0;
}

.project-title {
    font-size: 18px; /* Slightly smaller for 4-col layout */
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.project-link:hover .project-title {
    color: #666; 
}

/* =========================
   PROJECT NAVIGATION
========================= */
.project-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .project-list-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 24px;
    }
}

@media (max-width: 900px) {
    .project-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
}

@media (max-width: 600px) {
    .project-list-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .project-list-section {
        padding: 60px 0;
    }
}

/* =========================
   RESPONSIVE FIXES FOR DETAIL PAGE
========================= */
@media (max-width: 1024px) {
    .project-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-info-row {
        flex-direction: column;
    }

    .project-meta-col {
        max-width: 100%;
    }
    
    .project-products-col {
        width: 100%;
        margin-top: 40px;
    }
    
    /* On tablet, maybe show products in a row if there are many? */
    .products-used-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }


    .gallery-item {
        width: calc(50% - 12px); /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .gallery-item {
        width: 100%; /* Full width on mobile */
    }
    
    .products-used-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-intro-title {
        font-size: 32px;
    }

    .project-detail-content {
        padding: 40px 0;
    }

    .project-info-row {
        gap: 40px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .detail-project-title {
        font-size: 20px;
    }
}
