the-slideshow {
    position: relative;
}

the-slideshow.media-unavailable::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: 'media unavailable';
    color: var(--secondary-color);
}

the-slideshow.show-legend::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
    border-radius: .25rem;
    background-color: rgba(0, 0, 0, .65);
    color: var(--secondary-color);
    padding: .5rem;
    content: attr(data-media-index)"/"attr(data-max-media-index);
}

the-slideshow .media {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    align-self: center;
    display: grid;
}

/* the-slideshow svg:not(.logo) {
    width: 100%;
    height: 100%;
} */

the-slideshow .media img,
the-slideshow .media video {
    grid-area: 1 / 1 / 1 / 1;
    --index: 0;
    min-height: 0;
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
    transition: opacity .2s;
    position: relative;
    opacity: 0;
    pointer-events: none;
}
the-slideshow .media video {
    background: #000000;
    /* margin-top: 5rem;
    height: calc(100% - 10rem);
    max-height: calc(100% - 10rem); */
}
the-slideshow .media img.active,
the-slideshow .media video.active {
    pointer-events: all;
    cursor: pointer;
}
the-slideshow .media img.loaded,
the-slideshow .media video.loaded {
    /* opacity: 1; */
}
the-slideshow .media img.active.loaded,
the-slideshow .media video.active.loaded {
    opacity: 1;
}

the-slideshow .media video {
    outline: none;
}

the-slideshow .media img.loading,
the-slideshow .media video.loading {
    opacity: 0;
}

the-slideshow.media-unavailable .media {
    width: 100%;
    max-width: 60rem;
}

the-slideshow .media-previous,
the-slideshow .media-next {
    position: absolute;
    width: 25%;
    background: rgba(0, 0, 0, 0);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: opacity .2s;
    opacity: 0;
    pointer-events: none;
    top: 5rem;
    bottom: 5rem;
    border-radius: 0;
}

the-slideshow .media-previous {
    left: 0;
}

the-slideshow .media-next {
    right: 0;
}
the-slideshow .media-previous svg,
the-slideshow .media-next svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, .75);
    border-radius: 50%;
    padding: .75rem;
}

the-slideshow .media-previous svg {
    left: 1rem;
}
the-slideshow .media-next svg {
    right: 1rem;
}

the-slideshow .media-previous *,
the-slideshow .media-next * {
    pointer-events: none;
}

the-slideshow .media-previous svg path,
the-slideshow .media-next svg path {
    stroke: var(--primary-color);
    filter: drop-shadow(0 .25rem .25rem rgba(var(--primary-rgb), var(--glow-intensity)));
}

the-slideshow .media-previous.allow {
    opacity: 1;
    pointer-events: all;
}

the-slideshow .media-next.allow {
    opacity: 1;
    pointer-events: all;
}

the-slideshow .media-zoom {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    border-radius: .25rem;
    background-color: rgba(0, 0, 0, .65);
    fill: var(--secondary-color);
    padding: .5rem;
    /* pointer-events: none; */
    cursor: pointer;
    display: none;
}
the-slideshow.show-zoom .media-zoom {
    display: block;
}
/*********** MEDIA QUERIES START HERE ***********/
@media only screen and (max-width: 720px) {

    the-slideshow .media-previous svg,
    the-slideshow .media-next svg {
        width: 2rem;
        height: 2rem;
        padding: .5rem;
    }

    the-slideshow .media-previous svg {
        left: .5rem;
    }
    the-slideshow .media-next svg {
        right: .5rem;
    }

}
/*********** MEDIA QUERIES END HERE ***********/