/*
 * Lightbox (c_lightbox.blade.php, js/lightbox.js) and two base rules
 * (box-sizing, x-cloak).
 */
*, *::before, *::after { box-sizing: border-box; }
input, textarea { font-family: inherit; margin: 0; }

[x-cloak] { display: none !important; }

body.lightbox-active { overflow: hidden; }

.lightbox {
    position: fixed; inset: 0; z-index: 99992;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.lightbox-bg {
    position: absolute; inset: 0; background: var(--color-background); opacity: 0;
    transition: opacity 500ms cubic-bezier(0.47, 0, 0.74, 0.71);
}
.lightbox.is-open .lightbox-bg { opacity: 1; transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
.lightbox-inner { position: absolute; inset: 0; }
.lightbox.with-thumbs .lightbox-inner { right: 212px; }

.lightbox-infobar, .lightbox-toolbar, .lightbox-caption-wrap { position: absolute; }
.lightbox-infobar, .lightbox-toolbar, .lightbox-nav, .lightbox-caption-wrap {
    z-index: 99997; opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility 0s linear .25s;
}
.lightbox.shows-ui .lightbox-infobar, .lightbox.shows-ui .lightbox-toolbar,
.lightbox.shows-ui .lightbox-nav, .lightbox.shows-ui .lightbox-caption-wrap {
    opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s;
}
.lightbox-infobar {
    top: 0; left: 0; height: 44px; min-width: 44px; padding: 0 10px;
    font-size: 13px; line-height: 44px; color: #ccc; text-align: center;
    pointer-events: none; user-select: none; mix-blend-mode: exclusion;
}
.lightbox-toolbar { top: 0; right: 0; }

.lightbox-button {
    display: inline-block; vertical-align: top; width: 44px; height: 44px;
    margin: 0; padding: 10px; border: 0; border-radius: 0;
    background: rgba(30, 30, 30, .6); color: #ccc; cursor: pointer; outline: none;
    transition: color .3s ease;
}
.lightbox-button:hover, .lightbox-button:focus { color: #fff; }
.lightbox-button svg { display: block; overflow: visible; shape-rendering: geometricPrecision; }
.lightbox-button svg path { fill: currentColor; stroke: currentColor; stroke-linejoin: round; stroke-width: 3; }
.lightbox-button--play svg path:nth-child(2), .lightbox-button--pause svg path:nth-child(1) { display: none; }

.lightbox-nav button {
    position: absolute; top: 50%; margin: -50px 0 0; z-index: 99997;
    width: 60px; height: 100px; padding: 17px; background: transparent;
}
.lightbox-nav button::before {
    content: ""; position: absolute; top: 30px; right: 10px;
    width: 40px; height: 40px; background: rgba(30, 30, 30, .6);
}
.lightbox-nav button svg { position: relative; }
.lightbox-nav .lightbox-prev { left: 0; }
.lightbox-nav .lightbox-next { right: 0; }

.lightbox-stage { position: absolute; inset: 0; overflow: hidden; z-index: 99994; }
.lightbox-slide { position: absolute; inset: 0; transition: opacity 366ms; }
.lightbox-bild {
    position: absolute; top: 0; left: 0; max-width: none; max-height: none;
    user-select: none; -webkit-user-drag: none; transform-origin: 0 0;
}
.lightbox-bild.can-zoom { cursor: zoom-in; }
.lightbox-bild.is-zoomed { cursor: grab; }

.lightbox-caption-wrap {
    bottom: 0; left: 0; right: 0; padding: 60px 2vw 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.1) 20%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.6) 80%, rgba(0,0,0,.8) 100%);
    pointer-events: none;
}
.lightbox-caption { padding: 30px 0; font-size: 14px; line-height: 20px; color: #fff; }

.lightbox-thumbs {
    position: absolute; top: 0; right: 0; bottom: 0; width: 212px; z-index: 99995;
    margin: 0; padding: 2px 2px 4px; background: #fff; overflow-y: auto;
}
.lightbox-thumbs ul { list-style: none; margin: 0; padding: 0; font-size: 0; }
.lightbox-thumbs li {
    position: relative; float: left; width: 100px; height: 75px; margin: 2px;
    max-width: calc(50% - 4px); overflow: hidden; cursor: pointer;
    background-size: cover; background-position: center;
}
.lightbox-thumbs li::before {
    content: ''; position: absolute; inset: 0; border: 4px solid #4ea7f9; opacity: 0;
    transition: all .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lightbox-thumbs li.is-active::before { opacity: 1; }

@media all and (max-width: 800px) {
    .lightbox-thumbs { width: 110px; }
    .lightbox.with-thumbs .lightbox-inner { right: 110px; }
    .lightbox-thumbs li { max-width: calc(100% - 10px); }
}
