.screenshot-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.screenshot-trigger img {
    transition: opacity .18s;
}

.screenshot-trigger:hover img,
.screenshot-trigger:focus-visible img {
    opacity: .88;
}

.screenshot-trigger:focus-visible {
    outline: 3px solid #edaa2b;
    outline-offset: -3px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 14px;
    padding: 28px;
    background: rgba(0, 0, 0, .88);
    overflow: auto;
}

.lightbox-figure {
    min-width: 0;
    max-width: 100%;
    max-height: calc(100vh - 56px);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-image {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 132px);
    object-fit: contain;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
    cursor: zoom-in;
    transition: max-width .18s, max-height .18s;
}

.lightbox.is-zoomed {
    align-items: start;
}

.lightbox.is-zoomed .lightbox-figure {
    max-width: none;
    max-height: none;
    align-items: flex-start;
}

.lightbox.is-zoomed .lightbox-image {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.lightbox-caption {
    max-width: 900px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.lightbox-caption strong {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
}

.lightbox-caption span {
    color: rgba(255, 255, 255, .78);
}

.lightbox-close,
.lightbox-nav {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    background: #d52d26;
    outline: 0;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.lightbox-nav {
    width: 56px;
    height: 72px;
    border-radius: 4px;
    font-size: 48px;
    line-height: 1;
}

.lightbox-prev {
    justify-self: end;
}

.lightbox-next {
    justify-self: start;
}

@media (max-width: 640px) {
    .lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
        padding: 14px 8px;
    }

    .lightbox-nav {
        width: 42px;
        height: 58px;
        font-size: 38px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .lightbox-image {
        max-height: calc(100vh - 150px);
    }
}
