/* Project detail */
.getis-project-detail {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 46px;
}

.getis-project-detail-header h1 {
    max-width: 980px;
    margin: 0 0 34px;
    color: #004c84;
    font-size: 40px;
    line-height: 1.18;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.getis-project-detail-info {
    max-width: 740px;
    margin: 0 0 26px;
}

.getis-project-info-table {
    width: 100%;
    border-collapse: collapse;
    color: #111;
    font-size: 14px;
    line-height: 1.45;
}

.getis-project-info-table th,
.getis-project-info-table td {
    padding: 8px 0;
    border-bottom: 1px solid #4d4d4d;
    vertical-align: top;
}

.getis-project-info-table th {
    width: 48%;
    color: #111;
    font-weight: 700;
    text-align: left;
    text-transform: none;
}

.getis-project-info-table td {
    color: #111;
    font-weight: 400;
}

.getis-project-gallery {
    --getis-gallery-columns: 4;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 20px 0 56px;
}

.getis-project-gallery:not(.is-masonry-ready) {
    flex-wrap: wrap;
}

.getis-project-gallery-item {
    display: block;
    min-width: 0;
    margin: 0;
    background: transparent;
}

.getis-project-gallery:not(.is-masonry-ready) .getis-project-gallery-item {
    flex: 0 0 calc((100% - 54px) / 4);
}

.getis-project-gallery-column {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
}

.getis-project-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.getis-related-projects {
    padding-bottom: 52px;
}

.getis-related-projects-header h2 {
    margin: 0 0 28px;
    color: #004c84;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0;
}

/* Project archive filters */
.getis-project-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
    max-width: 1200px;
    margin: 24px auto 22px;
    padding: 0;
    text-align: left;
}

.getis-project-filter-field {
    min-width: 0;
}

.getis-project-filter-field label {
    display: block;
    margin: 0 0 6px;
    color: #222;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.getis-project-filter-field input,
.getis-project-filter-field select {
    width: 100%;
    height: 42px;
    margin: 0;
    border: 1px solid #d6dce3;
    border-radius: 6px;
    background-color: #fff;
    color: #111;
    font-size: 14px;
    line-height: 1.4;
}

.getis-project-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.getis-project-filter-actions button {
    height: 42px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: #004c84;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.getis-project-filter-actions a {
    color: #004c84;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Project cards */
.project-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
    text-align: center;
}

.project-posts h1 {
    margin: 0 0 24px;
    text-align: left;
}

.project-posts .h-color {
    color: #004c84;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.project-post {
    padding: 0;
    transition: transform .18s ease;
}

.project-post:hover {
    transform: translateY(-3px);
}

.project-thumbnail {
    overflow: hidden;
    background: #f3f3f3;
}

.project-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-post h2 {
    margin: 10px 0 0;
    font-size: 14px !important;
    
    font-weight: 400;
    text-align: left;
}

.project-title a {
    color: #111;
    text-decoration: none;
}

.project-post a:hover {
    color: #004c84;
}

.getis-project-grid-shortcode {
    width: 100%;
}

.getis-project-grid-shortcode .projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.getis-project-grid-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.getis-project-grid-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid #004c84;
    border-radius: 6px;
    background: #004c84;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.getis-project-grid-more a:hover,
.getis-project-grid-more a:focus {
    background: #fff;
    color: #004c84;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    margin: 0 5px;
    padding: 4px 6px;
    color: #333;
    background: transparent;
    text-decoration: none;
}

.pagination a:hover {
    color: #004c84;
}

.pagination .current {
    background: transparent;
    color: #004c84;
}

@media (max-width: 900px) {
    .getis-project-detail-header h1 {
        font-size: 32px;
    }

    .getis-project-gallery {
        --getis-gallery-columns: 3;
        gap: 12px;
    }

    .getis-project-gallery:not(.is-masonry-ready) .getis-project-gallery-item {
        flex-basis: calc((100% - 24px) / 3);
    }

    .getis-project-gallery-column {
        gap: 12px;
    }

    .getis-project-filters {
        grid-template-columns: 1fr 1fr;
    }

    .getis-project-filter-search,
    .getis-project-filter-actions {
        grid-column: 1 / -1;
    }

    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .getis-project-grid-shortcode .projects-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .project-header {
        overflow: hidden;
    }

    .project-posts {
        width: calc(100% - 24px);
        padding: 22px 0 20px;
    }

    .project-posts h1 {
        margin-bottom: 18px;
        font-size: 28px;
        line-height: 1.2;
    }

    .getis-project-detail {
        width: calc(100% - 20px);
        padding-top: 24px;
    }

    .getis-project-detail-header h1 {
        margin-bottom: 24px;
        font-size: 25px;
    }

    .getis-project-info-table {
        font-size: 13px;
    }

    .getis-project-info-table th {
        width: 46%;
    }

    .getis-project-gallery {
        --getis-gallery-columns: 2;
        gap: 10px;
        margin-bottom: 38px;
    }

    .getis-project-gallery:not(.is-masonry-ready) .getis-project-gallery-item {
        flex-basis: calc((100% - 10px) / 2);
    }

    .getis-project-gallery-column {
        gap: 10px;
    }

    .getis-related-projects-header h2 {
        font-size: 22px;
    }

    .getis-project-filters {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        margin: 0 0 22px;
        padding: 0;
    }

    .getis-project-filter-field label {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .getis-project-filter-field input,
    .getis-project-filter-field select {
        height: 44px;
        font-size: 16px;
    }

    .getis-project-filter-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
    }

    .getis-project-filter-actions button,
    .getis-project-filter-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .getis-project-grid-shortcode .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .getis-project-grid-more {
        margin-top: 22px;
    }

    .project-post h2 {
        font-size: 13px !important;
        
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
    }

    .pagination a,
    .pagination span {
        margin: 0;
        padding: 8px 10px;
    }
}

/* Global typography sync for project pages */
.getis-project-detail h1,
.project-posts h1 {
    font-size: var(--getis-font-size-h1) !important;
    line-height: var(--getis-line-height-heading);
}

.getis-project-detail h2,
.getis-related-projects-header h2,
.project-posts h2 {
    font-size: var(--getis-font-size-h2) !important;
    line-height: var(--getis-line-height-heading);
}

.getis-project-detail h3,
.project-posts h3 {
    font-size: var(--getis-font-size-h3) !important;
    line-height: 1.3;
}

.getis-project-detail h4,
.project-posts h4 {
    font-size: var(--getis-font-size-h4) !important;
    line-height: 1.35;
}

.getis-project-detail p,
.getis-project-detail a,
.getis-project-detail li,
.getis-project-detail th,
.getis-project-detail td,
.project-posts p,
.project-posts a,
.project-posts li,
.project-posts th,
.project-posts td {
    font-size: var(--getis-font-size-body) !important;
}

