zen-badge {
    display: block;
    height: 20px;
    width: 20px;
    background-color: blueviolet;
}

/* Galerie / carrousel CTZen */
zen-gallery, .ctzen-gallery {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 20rem;
}
 
.ctzen-gallery ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    height: 100%;
}

.ctzen-gallery-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.3s ease-in-out;
    /* Empêcher les clics sur les items non actifs (empilement absolu) */
    pointer-events: none;
}

.ctzen-gallery-item--active {
    opacity: 1;
    pointer-events: auto;
}

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

.ctzen-gallery-prev, .ctzen-gallery-next {
    position: absolute;
    top: 0;
    background: transparent;
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
    z-index: 2;
    bottom: 0;
}

.ctzen-gallery-prev {
    left: 0rem;
}

.ctzen-gallery-next {
    right: 0rem;
}

.ctzen-gallery-prev:hover,
.ctzen-gallery-next:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Overlay plein écran pour l'affichage en grand */
.ctzen-gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ctzen-gallery-overlay-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.ctzen-gallery-overlay-inner img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.ctzen-gallery-overlay-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1.4rem;
    cursor: pointer;
}