/*#download-contents {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}*/
:root {
    --_spacer: 1rem;
    --_gray-2: #dee2e6;
    --_radius-2: 5px;
    --_shadow-color: 220 3% 15%;
    --_shadow-strength: 1%;
    --_shadow-2:
            0 3px 5px -2px hsl(var(--_shadow-color) / calc(var(--_shadow-strength) + 3%)),
            0 7px 14px -5px hsl(var(--_shadow-color) / calc(var(--_shadow-strength) + 5%));

}

.bb-media-scroller {
    display: grid;
    gap: var(--_spacer);
    grid-auto-flow: column;
    grid-auto-columns: 21%;

    padding: 0 var(--_spacer) var(--_spacer);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.media-element {
    display: grid;
    grid-template-rows: min-content;
    gap: var(--_spacer);
    padding: var(--_spacer);
    background: var(--_gray-2);
    border-radius: var(--_radius-2);
    box-shadow: var(--_shadow-2);
}

.media-element a > img {
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.snaps-inline {
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: var(--_spacer);
}

.snaps-inline > * {
    scroll-snap-align: start;
}

.litebox__image {
    width: 100%;
    display: block;
    margin-bottom: 1em;
    max-width: 90%;
    max-height: 80%;
    margin-top: 2%;
    opacity: 0;
}

.bb-media-scroller-litebox {
    position: fixed;
    z-index: 999;
    height: 0;
    width: 0;
    text-align: center;
    top: 0;
    left: 0;
    background: rgba(0,0,0,.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.bb-media-scroller-litebox:target {
    outline: none;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
}
.bb-media-scroller-litebox:target img {
    border: solid 17px white;
    transition: opacity 0.6s;
    width: auto;
    opacity: 1;
}

.bb-media-scroller-litebox__content {
    min-width: 200px;
    max-height: 640px;
    min-height: 200px;
    padding: 0;
    position: relative;
}

.bb-media-scroller-litebox__content img {
    max-width: 80vw;
    max-height: 370px;
}

.bb-media-scroller-litebox__close {
    position: absolute;
    width: 2em;
    height: 2em;
    background: red;
    top: -1em;
    right: -1em;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.bb-media-scroller-litebox__close::after {
    content: "\00D7";
    color: white;
    font-weight: 900;
    font-size: 2em;
    top: 0;
    margin: -0.25em 0 0 0;
}

.bb-litebox-btn {
    color: #fafafa;
    background-color: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    font-weight: 900;
    font-size: 2em;
    z-index: 99;
}

.bb-litebox-btn:hover {
    color: #286090;
}

.bb-litebox-btn__prev {
    top: 50%;
    left: -9%;
}

.bb-litebox-btn__next {
    top: 50%;
    right: -9%;
}