.lightbox-gallery {
    display: flex;
    flex-direction: column;
    --lbg-selector-size: 2rem;
    --lbg-selector-size-mobile: 2rem;
    --lbg-selector-padding: .5em;
    --lbg-content-direction: row;
    --lbg-media-strip-visibility: flex;
    --lbg-meta-data-basis: 25%;
    --lbg-transition-duration: 150ms ease;
    scrollbar-width: none;
    height: 100dvh;
    max-height: 100dvh;
}
.lightbox-gallery__main {
    padding-block: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1em;
    flex: 1;
}
.lightbox-gallery__header {
    display: flex;
    align-items: center;
    gap: 1em;
}
.lightbox-gallery__content-flow {
    display: flex;
    flex-direction: column;
    gap: 1em;
    flex: 1;
    min-height: 0; 
}
.lightbox-gallery__player-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    flex: 0;
}
.lightbox-gallery__player-content .selector {
    position: absolute;
}
.lightbox-gallery__player-content .selector.left {
    left: 0rem;
    z-index: 100;
}
.lightbox-gallery__player-content .selector.right {
    right: 0rem;
    z-index: 100;
}
.lightbox-gallery__player-content .player-docker {
    aspect-ratio: 16/9;
    width: 100%;
    background-color: rgba(0,0,0,0.15);
    border-radius: .5em;
    overflow: hidden;
    position: relative;
}
.lightbox-player {
    position: absolute;
    inset: 0;
    display: block;
}
.lightbox-player.image {
}
.lightbox-player img,
.lightbox-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.lightbox-player img {
    object-fit: cover;
}
.lightbox-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.lightbox-gallery__media-info {
    display: flex;
    flex-direction: column;
    gap: 1em;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1 1 auto; 
    flex-basis: var(--lbg-meta-data-basis);
    min-height: 0;
}
.lightbox-gallery__media-info .title {
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.lightbox-gallery__media-info .description {
    flex: 1 0 auto; 
}
.lightbox-gallery__media-info .meta-data {
    display: flex;
    gap: 1em;
    color: #ccc;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    white-space: nowrap;
    padding-block: .5em;
    flex-shrink: 0;
}
.lightbox-gallery__media-info .meta-data[hidden],
.lightbox-gallery__media-info .location[hidden],
.lightbox-gallery__media-info .date[hidden],
.lightbox-gallery__media-info .separator[hidden] {
    display: none;
}
.lightbox-gallery__media-info .categories {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    max-width: 100%;
    flex-shrink: 0; 
}
.lightbox-gallery__media-info .categories button {
    flex-shrink: 0; 
    white-space: nowrap;
}
.lightbox-gallery__content-flow .dot-strip {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-inline: auto;
    gap: .5rem;
    overflow: hidden;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    pointer-events: none;
    max-width: calc( 100% - 1rem);
    align-self: center;
    min-width: 0;
}
.lightbox-gallery__content-flow .dot-strip .dot {
    flex-shrink: 0;
}
.lightbox-gallery__footer {
    display: none;
    align-items: center;
    gap: 1rem;
}
.lightbox-gallery__footer .selector {
    height: calc(var(--lbg-selector-size) * 2);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    position: relative;
}
.lightbox-gallery__footer .selector .image {
}
.lightbox-gallery__footer .media-strip {
    display: flex;
    flex: 1;
    gap: 1rem;
    overflow: auto;
    justify-content: safe center;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.lightbox-gallery__footer .media-strip-item {
    height: 8rem;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    position: relative;
    border-color: transparent;
    overflow: hidden;
}
.lightbox-gallery__footer .play-badge {
    position: absolute;
}
.lightbox-gallery .play-badge {
    position: absolute;
    aspect-ratio: 1/1;
    width: 5rem;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width var(--lbg-transition-duration);
}
.lightbox-gallery .play-badge > div {
    width: 80%;
    aspect-ratio: 1/1;
    background-image: url(/img/play.svg);
    transition: width var(--lbg-transition-duration);
}
.lightbox-gallery .image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-gallery.modalizer-instance {
}
@media only screen and (min-width: 750px) {
    .lightbox-gallery {
        width: 90vw;
        height: 90vh;
    }
    .lightbox-gallery__main {
        width: auto;
        height: auto;
        max-width: 100dvw;
        max-height: 100dvh;
    }
    .lightbox-gallery__content-flow {
        flex-direction: var(--lbg-content-direction);
        padding-inline: 1rem;
    }
    .lightbox-gallery__player-content {
        flex: 1 1 100%;
    }
    .lightbox-gallery__media-info {
        flex: 1 1 50%;
    }
    .lightbox-gallery__player-content .selector.left {
        left: -.5rem;
    }
    .lightbox-gallery__player-content .selector.right {
        right: -.5rem;
    }
    .lightbox-gallery__player-content .player-docker {
    }
    .lightbox-gallery__content-flow .dot-strip {
        display: none;
    }
    .lightbox-gallery__footer {
        display: var(--lbg-media-strip-visibility);
        padding-inline: 1rem;
    }
    .lightbox-gallery__header {
        padding-inline: 1rem;
    }
    .lightbox-gallery__media-info {
        padding-inline: 1rem;
    }
}
@media only screen and (max-width: 750px) {
    .lightbox-gallery {
        width: 100dvw;
    }
    .lightbox-gallery__header {
        padding-inline: 1rem;
    }
    .lightbox-gallery__media-info {
        padding-inline: 1rem;
    }
}
@media only screen and (max-height: 500px) {
    .lightbox-gallery__footer {
        display: none;
    }
    .lightbox-gallery {
        height: 100dvh;
        width: 100dvw;
    }
}
@media (hover: hover) and (pointer: fine) {
}
@media (hover: none) and (pointer: coarse) {
}