/* Grille créatures — hauteur minimale sans image */
.lu_creature_posts_grid .posts_grid_post_media {
    min-height: 180px;
    background-color: #1c1716;
}

/* Vignettes créatures — ratio uniforme 4/3, recadrage centré */
.lu_creature_posts_grid .pic {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.lu_creature_posts_grid .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Page Créatures éternelles : extraits de trois lignes, hauteur identique. */
.page-id-1911 .lu_creature_posts_grid .post_content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    block-size: 3lh;
    overflow: hidden;
}

/* Grille créatures — bouton LIRE LA SUITE */
.lu_creature_posts_grid .cws_custom_button {
    background-color: transparent !important;
    border-color: #224a49 !important;
    color: #224a49 !important;
}
.lu_creature_posts_grid .cws_custom_button:hover {
    background-color: transparent !important;
    border-color: #e53e26 !important;
    color: #e53e26 !important;
}
.lu_creature_posts_grid .cws_custom_button:hover::before,
.lu_creature_posts_grid .cws_custom_button:hover::after {
    background-color: #e53e26 !important;
    border-color: #e53e26 !important;
}

/* Bouton "Découvrir d'autres créatures" */
.lu-creatures-btn-wrap {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}
.lu-creatures-more-btn.cws_custom_button {
    background-color: transparent !important;
    border-color: #224a49 !important;
    color: #224a49 !important;
}
.lu-creatures-more-btn.cws_custom_button:hover {
    background-color: transparent !important;
    border-color: #e53e26 !important;
    color: #e53e26 !important;
}
.lu-creatures-more-btn.cws_custom_button:hover::before,
.lu-creatures-more-btn.cws_custom_button:hover::after {
    background-color: #e53e26 !important;
    border-color: #e53e26 !important;
}

/* ── lu-archive-grid — archive Elementor style VintWood (page Légendes) ─── */

/* Cadre image VintWood : ratio uniforme 4/3 sur le lien wrapper */
.lu-archive-grid .elementor-post__thumbnail__link {
    display: block !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
}
/* Padding + shadow sur le container interne, hauteur 100% pour remplir le wrapper */
.lu-archive-grid .elementor-post__thumbnail {
    padding: 15px !important;
    box-shadow: 0 0 5px 1px rgba(0,0,0,.15) !important;
    box-sizing: border-box !important;
    height: 100% !important;
}
.lu-archive-grid .elementor-post__thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

/* Métadonnées (date, commentaires) cachées */
.lu-archive-grid .elementor-post__meta-data {
    display: none !important;
}

/* Extrait — 3 lignes max */
.lu-archive-grid .elementor-post__excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Titre */
.lu-archive-grid .elementor-post__title a {
    text-decoration: none;
    transition: color .2s ease;
}
.lu-archive-grid .elementor-post__title a:hover {
    color: #e53e26;
}

/* Bouton centré — style cws_custom_button advanced VintWood */
.lu-archive-grid .elementor-post__text {
    text-align: center !important;
}
.lu-archive-grid .elementor-post__read-more {
    display: inline-block !important;
    background: transparent !important;
    border-width: 4px 0 !important;
    border-style: solid !important;
    border-color: #224a49 !important;
    color: #224a49 !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    padding: 5px 27px 8px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    transition: color .2s ease, border-color .2s ease !important;
    margin-top: 12px !important;
}
.lu-archive-grid .elementor-post__read-more:hover {
    color: #e53e26 !important;
    border-color: #e53e26 !important;
}

/* Archive catégorie — en-tête */
.lu-category-header {
    text-align: center;
    margin-bottom: 48px;
}
.lu-category-desc {
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* Archive catégorie — pagination */
.lu-category-pagination {
    text-align: center;
    margin-top: 48px;
}
.lu-category-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lu-category-pagination .page-numbers {
    display: inline-block;
    padding: 6px 14px;
    border: 2px solid #224a49;
    color: #224a49;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: color .2s, border-color .2s;
}
.lu-category-pagination .page-numbers.current,
.lu-category-pagination .page-numbers:hover {
    color: #e53e26;
    border-color: #e53e26;
}

/* Grille légendes/archives — vignettes ratio 4/3 + extraits 3 lignes */
.lu_legendes_posts_grid .pic {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.lu_legendes_posts_grid .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.lu_legendes_posts_grid .post_content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section Myths modernes — colonne image plein bord gauche */
.lu-myths-img-col,
.lu-myths-img-col .cws_vc_column-inner,
.lu-myths-img-col .vc_column-inner,
.lu-myths-img-col .wpb_wrapper {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.lu-myths-row .cws-column:last-child .wpb_wrapper {
    padding-left: 20px !important;
    padding-right: 80px !important;
}
.lu-myths-img-col .vc_column-inner,
.lu-myths-img-col .cws_vc_column-inner {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}
.lu-myths-img-col .wpb_single_image,
.lu-myths-img-col .vc_figure,
.lu-myths-img-col .vc_single_image-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}
.lu-myths-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
