.hb-expositions-wrapper {
    width: 100%;
    color: #d91d18;
    font-family: "205TF Plaax 44 Foch Light", sans-serif;
    text-align: right;
}

.hb-expositions-section {
    margin-bottom: 70px;
}

.hb-expositions-title {
    margin: 0 0 70px;
    font-size: 28px;
    line-height: 1.2;
    color: #d91d18;
    font-family: "205TF Plaax 44 Foch Bold", sans-serif;
    font-weight: 700;
    text-align: right;
}

.hb-expositions-year-group {
    margin-bottom: 70px;
}

.hb-expositions-year {
    margin: 0 0 28px;
    font-size: 28px;
    line-height: 1.2;
    color: #d91d18;
    font-family: "205TF Plaax 44 Foch Bold", sans-serif;
    font-weight: 700;
    text-align: right;
}

.hb-expositions-list {
    display: block;
}

.hb-exposition-trigger {
    display: block;
    width: 100%;
    margin: 0 0 46px;
    padding: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #d91d18 !important;
    text-align: right;
    cursor: pointer;
    font-family: "205TF Plaax 44 Foch Light", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.32;
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none !important;
}

.hb-exposition-trigger:hover,
.hb-exposition-trigger:focus,
.hb-exposition-trigger:active {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #d91d18 !important;
    text-decoration: none !important;
}

.hb-exposition-link-title {
    display: block;
    margin-bottom: 8px;
    color: #d91d18;
    font-family: "205TF Plaax 44 Foch Light", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.32;
    font-style: italic;
    text-decoration: none !important;
}

.hb-exposition-link-line {
    display: block;
    color: #d91d18;
    font-family: "205TF Plaax 44 Foch Light", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.32;
    text-decoration: none !important;
}

.hb-exposition-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.hb-exposition-modal.is-open {
    display: block;
}

.hb-exposition-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
}

.hb-exposition-modal-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 40px));
    height: min(760px, calc(100vh - 40px));
    margin: 20px auto;
    background: #ffffff;
    color: #111111;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.hb-exposition-modal-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 40px;
    height: 100%;
    padding: 60px;
    overflow: auto;
}

.hb-exposition-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 0 !important;
    background: transparent !important;
    color: #d91d18 !important;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}

.hb-exposition-close:hover,
.hb-exposition-close:focus,
.hb-exposition-close:active {
    border: 0 !important;
    background: transparent !important;
    color: #d91d18 !important;
    outline: none !important;
    box-shadow: none !important;
}

.hb-exposition-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    border: 0 !important;
    background: transparent !important;
    color: #d91d18 !important;
    font-size: 70px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}

.hb-exposition-prev {
    left: 12px;
}

.hb-exposition-next {
    right: 12px;
}

.hb-exposition-nav:hover,
.hb-exposition-nav:focus,
.hb-exposition-nav:active {
    border: 0 !important;
    background: transparent !important;
    color: #d91d18 !important;
    outline: none !important;
    box-shadow: none !important;
}

.hb-exposition-media {
    min-width: 0;
}

.hb-exposition-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: transparent;
}

.hb-exposition-video {
    width: 100%;
}

.hb-exposition-video iframe,
.hb-exposition-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000000;
}

.hb-exposition-video:empty {
    display: none;
}

.hb-exposition-gallery {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.hb-exposition-gallery button {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
    box-shadow: none !important;
}

.hb-exposition-gallery button.is-active {
    border: 0 !important;
}

.hb-exposition-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hb-exposition-info {
    min-width: 0;
    color: #d91d18;
}

.hb-exposition-modal-year {
    margin: 0 0 10px;
    color: #d91d18;
    font-size: 22px;
    line-height: 1.2;
    font-family: "205TF Plaax 44 Foch Bold", sans-serif;
}

.hb-exposition-modal-title {
    margin: 0 0 22px;
    color: #d91d18;
    font-size: 34px;
    line-height: 1.1;
    font-family: "205TF Plaax 44 Foch Bold", sans-serif;
}

.hb-exposition-modal-details {
    margin-bottom: 24px;
    line-height: 1.45;
    color: #d91d18;
}

.hb-exposition-modal-details p {
    margin: 0 0 6px;
}

.hb-exposition-modal-text {
    line-height: 1.55;
    color: #d91d18;
}

.hb-exposition-modal-text p:last-child {
    margin-bottom: 0;
}

body.hb-exposition-modal-open {
    overflow: hidden;
}

/* Slider expositions plein écran */
.hb-expositions-slider-container {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Masquer le scroll de la page derrière le slider */
body:has(.hb-expositions-slider-container) {
    overflow: hidden !important;
}

/* Croix retour About */
.hb-exposition-slider-close {
    position: fixed;
    top: 55px;
    right: 55px;
    z-index: 1000002;
    display: block;
    color: #e01d18 !important;
    font-family: "205TF Plaax 44 Foch Light", sans-serif;
    font-size: 52px;
    line-height: 1;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hb-exposition-slider-close:hover,
.hb-exposition-slider-close:focus,
.hb-exposition-slider-close:active {
    color: #e01d18 !important;
    background: transparent !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Navigation au-dessus du plein écran */
.hb-expositions-slider-container .hb-artistic-nav {
    z-index: 1000001;
}

/* Chaque exposition devient une vraie slide */
.hb-expositions-slider-container .hb-oeuvre-item {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
    line-height: normal;
}

/* Si aucune image n’est encore ajoutée */
.hb-exposition-slider-placeholder {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
}

/* Image plein écran si image présente */
.hb-expositions-slider-container .hb-oeuvre-item img {
    width: 100%;
    min-height: 100vh;
    object-fit: cover;
    display: block;
}

/* Vidéo plein écran */
.hb-exposition-slider-video {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
}

.hb-exposition-slider-video iframe,
.hb-exposition-slider-video video {
    width: 100%;
    height: 100vh;
    display: block;
}

/* Légende comme l’ancien slider, mais lisible même sans image */
.hb-expositions-slider-container .hb-oeuvre-legende {
    position: absolute;
    right: 80px;
    bottom: 80px;
    max-width: 520px;
    color: #e01d18;
    font-family: "205TF Plaax 44 Foch Light", sans-serif;
    font-size: 21px;
    line-height: 1.35;
    text-align: right;
    z-index: 5;
}

.hb-expositions-slider-container .hb-oeuvre-titre {
    font-style: italic;
}

.hb-expositions-slider-container .hb-oeuvre-content {
    margin-top: 16px;
}

.hb-expositions-slider-container .hb-oeuvre-content p {
    margin: 0 0 8px;
}

/* Correction admin bar WordPress */
body.admin-bar .hb-expositions-slider-container {
    top: 32px !important;
    height: calc(100vh - 32px) !important;
}

body.admin-bar .hb-exposition-slider-close {
    top: 75px;
}

@media screen and (max-width: 900px) {
    .hb-expositions-wrapper,
    .hb-expositions-title,
    .hb-expositions-year,
    .hb-exposition-trigger {
        text-align: right;
    }

    .hb-expositions-title {
        font-size: 26px;
        margin-bottom: 50px;
    }

    .hb-expositions-year {
        font-size: 26px;
    }

    .hb-exposition-trigger,
    .hb-exposition-link-title,
    .hb-exposition-link-line {
        font-size: 20px;
    }

    .hb-exposition-modal-content {
        width: 100vw;
        height: 100vh;
        margin: 0;
    }

    .hb-exposition-modal-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 70px 24px 40px;
    }

    .hb-exposition-nav {
        top: auto;
        bottom: 14px;
        transform: none;
        font-size: 54px;
    }

    .hb-exposition-prev {
        left: 24px;
    }

    .hb-exposition-next {
        right: 24px;
    }

    .hb-exposition-modal-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .hb-expositions-slider-container {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }

    body.admin-bar .hb-exposition-slider-close {
        top: 70px;
    }
}

@media screen and (max-width: 768px) {
    .hb-exposition-slider-close {
        top: 28px;
        right: 24px;
        font-size: 44px;
    }

    .hb-expositions-slider-container .hb-oeuvre-legende {
        right: 24px;
        bottom: 40px;
        max-width: calc(100% - 48px);
        font-size: 17px;
    }

    body.admin-bar .hb-exposition-slider-close {
        top: 72px;
    }
}