.product-screenshot {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 0.32rem;
    background: #0a1018;
}

.product-screenshot a {
    display: block;
    cursor: zoom-in;
}

.product-screenshot a:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: -3px;
}

.product-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
}

.product-screenshot figcaption {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}

.screenshot-section {
    padding-block: clamp(1.5rem, 4vw, 3.5rem);
}

.product-screenshot--compact {
    max-width: 30rem;
    margin-inline: auto;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

html.screenshot-open {
    overflow: hidden;
}

.screenshot-viewer {
    width: min(96vw, 1800px);
    max-width: none;
    max-height: 96dvh;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.4rem;
    background: #07101d;
    color: var(--text);
}

.screenshot-viewer::backdrop {
    background: rgba(2, 6, 12, 0.92);
}

.screenshot-viewer__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.screenshot-viewer button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.25rem;
    background: var(--ink-800);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.screenshot-viewer figure {
    margin: 0;
    text-align: center;
}

.screenshot-viewer img {
    display: block;
    max-width: 100%;
    max-height: calc(96dvh - 9rem);
    width: auto;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

.screenshot-viewer figcaption {
    margin-top: 0.75rem;
    color: var(--text-soft);
    font-size: 0.875rem;
}

@media (max-width: 700px) {
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .screenshot-viewer {
        padding: 0.75rem;
    }
}
