/* ================================================= */
/* ESTILOS PARA A PÁGINA DE ILUSTRAÇÕES (TIMELINE)   */
/* ================================================= */

.page-main-title {
    text-align: center;
    font-size: 2.8em;
    margin-top: 20px;
    margin-bottom: 50px;
    color: #ffffff;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-right: 60px;
}

/* A linha vertical da timeline */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #3a3f44;
    top: 0;
    bottom: 0;
    right: 0;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    margin-bottom: 40px;
}

/* O ponto na linha do tempo */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #a3d5ff;
    border: 4px solid #2c3034;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(163, 213, 255, 0.4);
}

.timeline-content {
    padding: 20px 30px;
    background-color: #2c3034;
    position: relative;
    border-radius: 8px;
    border: 1px solid #3a3f44;
}

.timeline-date {
    color: #a3d5ff;
    font-weight: 700;
    position: absolute;
    top: 22px;
    right: -55px;
    transform: translateX(100%);
    background-color: #2c3034;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ===== NOVA MINI-GALERIA PARA OS ANOS ===== */
.year-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.year-gallery a {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}

.year-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.year-gallery a:hover img {
    transform: scale(1.1);
}


/* Responsividade para a timeline */
@media (max-width: 600px) {
    .timeline-container {
        padding-right: 0;
        padding-left: 30px;
    }
    .timeline-container::after {
        left: 0;
    }
    .timeline-item::after {
        left: -10px;
    }
    .timeline-date {
        left: -45px;
        right: auto;
        transform: translateX(-100%);
        text-align: right;
    }
}