html,
body {
    margin: 0;
    padding: 0;
}

.xibalba-carrusel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: transparent;
    line-height: 0;
}

.xibalba-carrusel-stage {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: transparent;
    transition: height 0.8s ease;
}

.xibalba-carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.xibalba-carrusel-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.xibalba-carrusel-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

.xibalba-carrusel-empty {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    background: transparent;
    color: #000;
    font-size: 24px;
    text-align: center;
    line-height: normal;
}


/*
 * FULLSCREEN
 *
 * Cuando hacemos click, el navegador convierte
 * .xibalba-carrusel en fullscreen.
 *
 * En este modo recuperamos exactamente el
 * comportamiento de pantalla completa.
 */

.xibalba-carrusel:fullscreen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.xibalba-carrusel:fullscreen .xibalba-carrusel-stage {
    width: 100%;
    height: 100%;
    background: #000;
}

.xibalba-carrusel:fullscreen .xibalba-carrusel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.xibalba-carrusel:fullscreen .xibalba-carrusel-slide.is-active {
    position: absolute;
}

.xibalba-carrusel:fullscreen .xibalba-carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/*
 * Compatibilidad con WebKit / Safari.
 */

.xibalba-carrusel:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.xibalba-carrusel:-webkit-full-screen .xibalba-carrusel-stage {
    width: 100%;
    height: 100%;
    background: #000;
}

.xibalba-carrusel:-webkit-full-screen .xibalba-carrusel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.xibalba-carrusel:-webkit-full-screen .xibalba-carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
