/* Diaporama galerie — plein écran, au-dessus du portail */

.hm-slideshow-page .site-header {
    display: none;
}

.hm-slideshow-page {
    background: #0b0f0d;
}

.hm-slideshow-page .site-main,
.hm-slideshow-page .hm-wrap,
.hm-slideshow-page #content,
body.hm-slideshow-page {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

.hm-show {
    position: fixed;
    inset: 0;
    background: #0b0f0d;
    color: #eef3ef;
    z-index: 80;
}

.hm-show-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0b0f0d;
}

.hm-show-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.85s ease;
    pointer-events: none;
}

.hm-show.is-rhythm .hm-show-img {
    transition-duration: 0.22s;
}

.hm-show-img.is-on {
    opacity: 1;
}

.hm-show-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    color: #8a9a90;
    pointer-events: none;
    z-index: 2;
}

.hm-show-empty[hidden] {
    display: none !important;
}

.hm-show-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(8, 12, 10, 0.72);
    text-align: center;
    padding: 2rem;
}

.hm-show-start[hidden] {
    display: none !important;
}

.hm-show-kicker {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #8fbf9f;
}

.hm-show-start h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hm-show-start p {
    margin: 0 0 0.6rem;
    color: #c5d4cb;
}

.hm-show-back {
    color: #9bb5a6;
    margin-top: 0.4rem;
}

.hm-show-chrome {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}

.hm-show.is-idle .hm-show-chrome {
    opacity: 0;
}

.hm-show:hover .hm-show-chrome,
.hm-show.is-paused .hm-show-chrome,
.hm-show[data-started="0"] .hm-show-chrome {
    opacity: 1;
}

/* Plein écran : le survol ne bloque plus le masquage. */
.hm-show.is-fs.is-idle .hm-show-chrome {
    opacity: 0;
    pointer-events: none;
}

.hm-show.is-fs.is-paused .hm-show-chrome,
.hm-show.is-fs[data-started="0"] .hm-show-chrome {
    opacity: 1;
    pointer-events: auto;
}

.hm-show.is-fs.is-idle {
    cursor: none;
}

.hm-show-top,
.hm-show-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1.1rem;
    pointer-events: auto;
    background: linear-gradient(to bottom, rgba(8, 12, 10, 0.72), transparent);
}

.hm-show-bottom {
    background: linear-gradient(to top, rgba(8, 12, 10, 0.82), transparent);
}

.hm-show-top a,
.hm-show-fs {
    color: #d7efe0;
    text-decoration: none;
    font-weight: 650;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.hm-show-caption {
    flex: 1 1 10rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-show-count,
.hm-show-track {
    font-size: 0.85rem;
    color: #9bb5a6;
}

.hm-show-track {
    flex: 1 1 8rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-show-transport {
    display: flex;
    gap: 0.35rem;
}

.hm-show-transport button {
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: #1b5e3b;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.hm-show-opt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #c5d4cb;
}

.hm-show-opt select,
.hm-show-opt input[type="range"] {
    font: inherit;
}

.hm-show-opt select {
    background: #141c18;
    color: #eef3ef;
    border: 1px solid #355246;
    border-radius: 8px;
    padding: 0.25rem 0.45rem;
}

.hm-show-opt--speed input,
.hm-show-opt--sens input {
    width: 7rem;
}

.hm-show-debug {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 5.6rem;
    z-index: 4;
    pointer-events: none;
    padding: 0.45rem 0.6rem 0.35rem;
    border-radius: 10px;
    background: rgba(8, 12, 10, 0.62);
    border: 1px solid rgba(143, 191, 159, 0.28);
}

.hm-show-debug[hidden] {
    display: none !important;
}

.hm-show-debug canvas {
    display: block;
    width: 100%;
    height: 88px;
}

.hm-show-debug-meta {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: #9bb5a6;
    font-variant-numeric: tabular-nums;
}

.hm-show.is-beat .hm-show-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid rgba(243, 193, 107, 0.85);
    pointer-events: none;
    z-index: 2;
}

.hm-show.is-flip .hm-show-stage::after {
    border-color: rgba(126, 224, 168, 0.95);
}

@media (max-width: 720px) {
    .hm-show-bottom {
        gap: 0.45rem;
    }
    .hm-show-track {
        flex-basis: 100%;
    }
}
