/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 10 2025 | 16:48:24 */
/* --- layout principal --- */
.single-artwork-full {
    max-width: 1100px; /* ajuste selon ton thème */
    margin: 0 auto;    /* centre la colonne */
    padding: 20px;
    box-sizing: border-box;
}

/* header : titre à gauche, artiste à droite (sur la même ligne) */
.artwork-header-row {
    display: flex;
    align-items: baseline; /* ou 'center' si tu préfères */
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap; /* important pour mobile */
}

/* Titre */
.artwork-title {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.1;
    flex: 1 1 auto; /* prend l'espace restant si besoin */
}

/* Nom de l'artiste (à droite du titre) */
.artwork-artist {
    flex: 0 0 auto;
    margin-left: 12px;
    text-align: right;
}
.artist-name {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

/* Centre l'image et la contraint pour ne pas dépasser verticalement */
.artwork-featured-image {
    text-align: center !important;
    margin: 18px 0;
}

/* L'image principale : éviter dépassement vertical et garder ratio */
.artwork-main-image {
    max-width: 100%;
    height: auto;
    /* Ne pas dépasser la hauteur de la fenêtre : on enlève ~220px pour header/espaces (ajuste si besoin) */
    max-height: calc(100vh - 220px);
    object-fit: contain;
    display: inline-block;
}

/* Si tu veux aussi contraindre la lightbox header-photo */
.artwork-header-photo img {
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 240px);
    object-fit: contain;
}

/* Responsive : sur petits écrans, titre et artiste s'empilent proprement */
@media (max-width: 640px) {
    .artwork-header-row {
        align-items: flex-start;
    }
    .artwork-artist {
        text-align: left;
        margin-top: 6px;
    }
}
@media (min-width: 981px) {
    .et_right_sidebar #left-area, .single-artwork-full{
        float: none;
        padding-right: 5.5%;
    }
}

/*Articles liés*/
.related-articles {
    margin: 40px 0;  /* Espacement après présentation */
}

.related-articles h3 {
    margin: 0 0 15px;
    font-size: 22px;
    color: #333;
    text-align: left;
}

.articles-list {
    list-style: none !important;  /* Pas de puces */
    margin: 0;
    padding: 0;
}

.articles-list li {
    margin-bottom: 8px;  /* Espacement items */
}

.articles-list a {
    text-decoration: none;
    line-height: 1.4;
    display: block;  /* Pleine largeur */
}



/* Responsive */
@media (max-width: 768px) {
    .related-articles {
        margin: 30px 0;
        padding: 15px;
    }
    
    .related-articles h3 {
        font-size: 20px;
    }
    
    .articles-list a {
        font-size: 15px;
    }
}