/* =========================================
   Project Timeline
   ========================================= */
.project-timeline {
    --timeline-color: #d0d0d0;
    --accent-color: #2878a0;
    --date-color: #666666;
    position: relative;
    margin: 30px 0;
    padding-left: 30px;
    border-left: 2px solid var(--timeline-color);
}

/* Individual update */
.project-timeline .project-update {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.project-timeline .project-update:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Timeline dot */
.project-timeline .project-update::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 5px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    background: var(--accent-color);
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* Title */
.project-timeline .project-update-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
	margin-top: 0;
    margin-bottom: 12px;
	padding-bottom: 0;
}

/* Content */
.project-timeline .project-update-content {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.project-timeline .project-update-content p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-timeline .project-update-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Mobile devices */
@media (max-width: 767px) {
    .project-timeline {
        padding-left: 20px;
    }
    .project-timeline .project-update::before {
        left: -28px;
    }
    .project-timeline .project-update {
        margin-bottom: 25px;
    }
    .project-timeline .project-update-title {
        font-size: 20px;
    }
}

/* =========================================
   LightGallery
   ========================================= */

.lg-backdrop,
.lg-outer {
    z-index: 999999 !important;
}

.lg-toolbar,
.lg-prev,
.lg-next,
.lg-close {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000000 !important;
}

.pp_pic_holder,
.pp_overlay {
    display: none !important;
    visibility: hidden !important;
}

/* Image caption */
.lg-caption {
    font-size: 16px;
    padding: 10px 20px;
    text-align: center;
}

/* Gallery mouse cursor */
.project-timeline .wp-block-gallery a {
    cursor: zoom-in;
}


/* =========================================
   Compact Gallery Preview
   ========================================= */

/* Hide additional preview images */
.project-timeline .wp-block-gallery
.project-gallery-hidden {
    display: none !important;
}

/* Last visible image */
.project-timeline .project-gallery-more-link {
    position: relative;
    overflow: hidden;
}

/* Dark overlay */
.project-timeline .project-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    text-align: center;
    pointer-events: none;
    transition: background 0.2s ease;
}

/* Number of additional images */
.project-timeline .project-gallery-more-count {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.2;
}

/* Overlay label */
.project-timeline .project-gallery-more-label {
    font-size: 14px;
    line-height: 1.4;
}

/* Hover effect */
.project-timeline
.project-gallery-more-link:hover
.project-gallery-more {
    background: rgba(0, 0, 0, 0.7);
}

/* Mobile devices */
@media (max-width: 767px) {
    .project-timeline .project-gallery-more-label {
        font-size: 11px;
    }
}


/* =========================================
   Latest Project Update
   ========================================= */
.project-timeline.project-latest {
    border-left: none;
    padding-left: 0;
}

.project-latest .project-update::before {
    display: none;
}