.legacy-img {
    border-radius: 10px;
}

/* ----- Timeline ----- */

#timeline {
    /* Complex Circle Gradient */
    background-image: radial-gradient(circle at 21% 15%, hsla(210,0%,82%,0.1) 0%, hsla(210,0%,82%,0.1)
    45%,transparent 45%, transparent 83%,transparent 83%, transparent 100%),radial-gradient(circle at 84% 23%,
    hsla(210,0%,82%,0.1) 0%, hsla(210,0%,82%,0.1) 68%,transparent 68%, transparent 93%,transparent 93%, transparent
    100%),radial-gradient(circle at 7% 76%, hsla(210,0%,82%,0.1) 0%, hsla(210,0%,82%,0.1) 52%,transparent 52%,
    transparent 75%,transparent 75%, transparent 100%),radial-gradient(circle at 59% 77%, hsla(210,0%,82%,0.1) 0%,
    hsla(210,0%,82%,0.1) 87%,transparent 87%, transparent 93%,transparent 93%, transparent 100%),radial-gradient(circle
    at 59% 5%, hsla(210,0%,82%,0.1) 0%, hsla(210,0%,82%,0.1) 54%,transparent 54%, transparent 56%,transparent 56%,
    transparent 100%),linear-gradient(60deg, rgb(0,197,19),rgb(47,145,255));
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}

/* Timeline center line */
.timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    /* Start with height 0 */
    height: 0;
    background: #fff;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 0;
    /* Smooth height growth */
    transition: height 8s ease;
}

/* Display line on scroll */
.aos-animate .timeline::after {
    /* Full height when triggered */
    height: 100%;
}

.timeline-box-container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    z-index: 1;
}

.timeline-text-box {
    padding: 20px 30px;
    background: #fff;
    position: relative;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: var(--box-shadow);
}

.timeline-text-box h2 {
    font-size: 1.5rem;
}

.timeline-text-box small {
    display: inline-block;
    margin-bottom: 15px;
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

.timeline-box-container img {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    right: -25px;
    top: 26px;
    z-index: 2;
    border: solid white 6px;
}

.right-container img {
    left: -25px;
}

.left-timeline-arrow, .right-timeline-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.left-timeline-arrow {
    border-left: 15px solid #fff;
    right: -15px;
}

.right-timeline-arrow {
    border-right: 15px solid #fff;
    left: -15px;
}

/* ----- Heritage Gallery ----- */

.heritage-item {
    border-radius: 6px;
}

.heritage-item .iconbox {
    background-color: var(--primary);
    color: white;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    opacity: 0;
}

.heritage-item .iconbox:hover {
    background-color: white;
    color: var(--primary);
}

.heritage-item:hover .iconbox {
    opacity: 1;
    top: 50%;
}

/* ----- Image Zoom ----- */

.image-zoom {
    position: relative;
    overflow: hidden;
}

.image-zoom-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.image-zoom-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom effect on hover */
.image-zoom-wrapper:hover img {
    transform: scale(1.1);
}

@media (max-width: 991px){
    .image-zoom-wrapper {
        height: 200px;
    }
}

@media (max-width: 600px){
    .timeline {
        margin: 50px auto;
    }
    
    .timeline::after {
        left: 31px
    }

    .timeline-box-container {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .timeline-text-box {
        font-size: 13px;
    }

    .timeline-text-box h2 {
        font-size: 1.2rem;
    }

    .timeline-text-box small {
        margin-bottom: 10px;
    }
    
    .right-container {
        left: 0;
    }

    .left-container img, .right-container img {
        left: 7px;
    }

    .left-timeline-arrow, .right-timeline-arrow {
        border-right: 15px solid #fff;
        border-left: 0;
        left: -15px;
    }
}
