.mix-photos-page img {
    max-width: 100%;
}

.mix-photos-page .photostream {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mix-photos-page .photostream li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.mix-photos-page #photo-stream.photostream {
    display: grid;
    grid-template-columns: 2rem minmax(0, auto) 2rem;
    max-width: 100%;
}

.mix-photos-page #photo-stream > .stream-nav.rewind {
    grid-column: 1;
    grid-row: 1;
}

.mix-photos-page #photo-stream > .stream-nav.ff {
    grid-column: 3;
    grid-row: 1;
}

.mix-photos-page #photo-stream > .stream-wrapper {
    grid-column: 2;
    grid-row: 1;
    max-width: calc(100vw - 8rem);
    min-width: 0;
}

.mix-photos-page #photo-stream > .stream-wrapper > .photostream {
    display: flex;
}

.mix-photos-page .photostream a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.mix-photos-page .photostream img {
    border: .0625rem solid var(--up-border-color);
    border-radius: var(--element-border-radius);
    display: block;
    height: 3rem;
    object-fit: cover;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
    width: 3rem;
}

.mix-photos-page .photostream a:hover img,
.mix-photos-page .photostream li.selected img {
    border-color: var(--up-scheme-color);
    box-shadow: 0 0 0 .125rem rgba(var(--up-scheme-color-rgb), .18);
}

.mix-photos-page .photostream li.stream-nav a {
    background: var(--up-color-gray-100);
    border-radius: 9999px;
    color: var(--up-body-color);
    height: 2rem;
    width: 2rem;
}

.mix-photos-page .photostream li.stream-nav a:hover {
    background: var(--up-color-gray-200);
}

.mix-photos-page .photostream li.stream-nav i {
    background: none;
    display: block;
    font-style: normal;
    height: auto;
    width: auto;
}

.mix-photos-page .photostream li.stream-nav.rewind i::before {
    content: "‹";
    font-size: 1.25rem;
    line-height: 1;
}

.mix-photos-page .photostream li.stream-nav.ff i::before {
    content: "›";
    font-size: 1.25rem;
    line-height: 1;
}

.mix-photos-page .stack-nav {
    align-items: center;
    background: rgba(0, 0, 0, .6);
    border-radius: 9999px;
    color: #fff;
    display: inline-flex;
    gap: .5rem;
    padding: .25rem .75rem;
}

.mix-photos-page .stack-nav a {
    color: inherit;
}

.mix-photos-page .stack-nav img {
    height: 1.25rem;
    width: auto;
}

.mix-photos-page #photo-hook-sidebar:empty,
.mix-photos-page #photo-hook-bottom:empty {
    display: none;
}

[data-up-theme="dark"] .mix-photos-page .photostream li.stream-nav a {
    background: var(--up-color-gray-800);
    color: var(--up-color-gray-100);
}

[data-up-theme="dark"] .mix-photos-page .photostream li.stream-nav a:hover {
    background: var(--up-color-gray-700);
}

.mix-photos-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, .86);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 10000;
}

.mix-photos-lightbox.is-open {
    display: flex;
}

.mix-photos-lightbox-open {
    overflow: hidden;
}

.mix-photos-lightbox__stage {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-height: 100%;
    max-width: 100%;
    min-width: 0;
}

.mix-photos-lightbox__image {
    border-radius: var(--element-border-radius);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35);
    display: block;
    max-height: calc(100vh - 8rem);
    max-width: min(100%, 92vw);
    object-fit: contain;
}

.mix-photos-lightbox__caption {
    color: #fff;
    max-width: min(42rem, 92vw);
    text-align: center;
}

.mix-photos-lightbox__title {
    margin: 0;
}

.mix-photos-lightbox__link {
    color: rgba(255, 255, 255, .78);
    display: inline-flex;
    margin-top: .25rem;
    text-decoration: none;
}

.mix-photos-lightbox__link:hover {
    color: #fff;
}

.mix-photos-lightbox__button {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 0;
    border-radius: 9999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.75rem;
    height: 2.75rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    transition: background .15s ease, opacity .15s ease;
    width: 2.75rem;
}

.mix-photos-lightbox__button:hover {
    background: rgba(255, 255, 255, .24);
}

.mix-photos-lightbox__button[hidden] {
    display: none;
}

.mix-photos-lightbox__close {
    right: 1rem;
    top: 1rem;
}

.mix-photos-lightbox__prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.mix-photos-lightbox__next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 760px) {
    .mix-photos-lightbox {
        padding: .75rem;
    }

    .mix-photos-lightbox__image {
        max-height: calc(100vh - 7rem);
        max-width: 100%;
    }

    .mix-photos-lightbox__button {
        height: 2.5rem;
        width: 2.5rem;
    }

    .mix-photos-lightbox__prev {
        left: .75rem;
    }

    .mix-photos-lightbox__next,
    .mix-photos-lightbox__close {
        right: .75rem;
    }
}
