.gantt-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;      /* centers the wrapper on the page */
    overflow-x: auto;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px;
    box-sizing: border-box;
}

.gantt-table {
    width: 100%;
    max-width: 1200px;       /* keeps the table from stretching too wide on large screens */
    margin: 0 auto;         /* centers the table itself inside the wrapper */
    border-collapse: collapse;
    table-layout: fixed;
}

.gantt-table th,
.gantt-table td {
    border: 1px solid #000;
    text-align: center;
    vertical-align: middle;
    padding: 6px 4px;
    font-size: 13px;
}

.gantt-table thead th {
    background-color: #dbe5f1;
    font-weight: bold;
}

.gantt-table .wp-header {
    width: 22%;
    text-align: center;
}

.gantt-table .time-header {
    text-align: center;
}

.gantt-table .wp-name {
    text-align: left;
    font-weight: bold;
    background-color: #dbe5f1;
    padding: 8px 6px;
}

.gantt-table td.fill {
    background-color: #1fd322;
}

.gantt-table tbody td {
    height: 45px;
}

/* On very large displays, cap things a bit tighter so it doesn't look sparse/oversized */
@media (min-width: 1200px) {
    .gantt-wrapper,
    .gantt-table {
        max-width: 1200px;
    }
}


/* =========================================================
   PROJECT PAGE
========================================================= */

.project-page {
    padding: 45px 0;
    background: #f7f9f6;
}

.project-gallery-section,
.project-timeline-section {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto 65px;
    padding: 0 20px;
}

/* =========================================================
   SECTION HEADER
========================================================= */

.project-section-header {
    text-align: center;
    margin-bottom: 35px;
}

.project-eyebrow {
    display: inline-block;
    color: #398052;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-section-header h1,
.project-section-header h2 {
    color: #1e4530;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
}

.project-section-header p {
    color: #68756c;
    font-size: 15px;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* =========================================================
   PROJECT GRID
========================================================= */

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

/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {
    min-width: 0;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   IMAGE SLIDER
========================================================= */

.project-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dce5dc;
}

.project-slides {
    position: absolute;
    inset: 0;
}

.project-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.project-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

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

/* =========================================================
   BOTTOM OVERLAY
========================================================= */

.project-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.project-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

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

.project-slide .project-overlay {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 65px 24px 35px;
    color: #fff;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92),
        rgba(0, 0, 0, 0.65) 55%,
        transparent
    );
}

.activity-counter {
    float: right;
    color: #fff;
    font-size: 12px;
}

.project-info {
    max-width: 100%;
}

.project-number {
    display: inline-block;
    color: #b9e4bd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 8px;
}

.project-info h2 {
    color: #ffffff;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

/* Description collapsed */

.project-description {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    overflow: hidden;
    transition: all 0.3s ease;
}

/* Full description on hover */

.project-card:hover .project-description,
.project-card:focus-within .project-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

/* =========================================================
   SLIDER ARROWS
========================================================= */

.slider-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);

    width: 36px;
    height: 36px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.88);
    color: #214b32;

    font-size: 17px;
    cursor: pointer;

    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .slider-arrow,
.project-card:focus-within .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 12px;
}

.slider-arrow.next {
    right: 12px;
}

/* =========================================================
   SLIDER DOTS
========================================================= */

.slider-dots {
    position: absolute;
    z-index: 4;
    bottom: 13px;
    right: 20px;

    display: flex;
    gap: 7px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 21px;
    border-radius: 10px;
    background: #ffffff;
}

/* =========================================================
   TIMELINE SECTION
========================================================= */

.project-timeline-section {
    padding-top: 35px;
    border-top: 1px solid #e0e7df;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .project-page {
        padding: 30px 0;
    }

    .project-gallery-section,
    .project-timeline-section {
        padding: 0 15px;
        margin-bottom: 45px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-section-header h1,
    .project-section-header h2 {
        font-size: 26px;
    }

    .project-info h2 {
        font-size: 20px;
    }

    .project-overlay {
        padding: 50px 18px 32px;
    }

    .slider-arrow {
        opacity: 1;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 420px) {

    .project-slider {
        aspect-ratio: 4 / 3;
    }

    .project-info h2 {
        font-size: 18px;
    }

    .project-overlay {
        padding: 40px 15px 30px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .project-card,
    .project-slide,
    .project-overlay,
    .slider-arrow {
        transition: none;
    }
}