/* Styles pour la page de détail de l'article */
.article-content img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-content h1 {
    color: #0a5f4a; /* Couleur verte CEEMUCI */
    font-weight: bold;
    margin-bottom: 1rem;
}

#article-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Styles pour les articles similaires */

#related-articles .related-article {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#related-articles .related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#related-articles img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
}

#related-articles h5 {
    font-size: 1.2rem;
    color: #0a5f4a;
    margin: 0;
}

/* Titre de l'article */
.article-title {
    color: #0a5f4a; /* Couleur verte CEEMUCI */
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Section "À lire aussi" */
#section-title {
    font-size: 1.25rem; /* Agrandir le titre de la section */
    color: #0a5f4a;
    font-weight: bold;
}

/* Section de l'auteur, de la date et de la catégorie */
#article-date-author-category {
    font-size: 1rem;
    color: #555;
}

/* Styles pour la galerie Masonry */
.masonry-gallery {
    column-count: 3;
    column-gap: 15px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
}

.masonry-item img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.masonry-item img:hover {
    transform: scale(1.05);
}

/* Styles pour la lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-overlay:target {
    display: flex;
}
