@scope (.screenshots-page) {
    .screenshots-hero {
        max-width: 860px;
        margin: 0 auto clamp(28px, 5vw, 52px);
        text-align: center;
    }

    .screenshots-gallery-summary {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin-top: 20px;
        padding: 9px 15px;
        border: 1px solid #dcebe8;
        border-radius: 999px;
        color: #35645f;
        background: #f3f9f7;
        font-size: .82rem;
    }

    .screenshots-gallery-summary i { color: #197d78; font-size: 1rem; }
    .screenshots-gallery-summary strong { color: #145c57; font-weight: 900; }

    .screenshots-hero h1 {
        margin: 0 0 12px;
        color: var(--home-ink);
        font-size: clamp(1.8rem, 4vw, 2.7rem);
        line-height: 1.5;
    }

    .screenshots-hero p {
        margin: 0;
        font-size: .92rem;
        line-height: 2.1;
    }

    .screenshots-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 9px;
        margin: 0 0 24px;
    }

    .screenshots-filter {
        min-height: 40px;
        padding: 8px 14px;
        border: 1px solid #dce5eb;
        border-radius: 999px;
        color: #40576b;
        background: #fff;
        font: inherit;
        font-size: .84rem;
        font-weight: 750;
        cursor: pointer;
        transition: border-color .18s ease, color .18s ease, background-color .18s ease;
    }

    .screenshots-filter:hover,
    .screenshots-filter.is-active {
        border-color: #197d78;
        color: #fff;
        background: #197d78;
    }

    .screenshots-filter:focus-visible {
        outline: 3px solid rgba(25, 125, 120, .25);
        outline-offset: 2px;
    }

    .screenshots-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(18px, 2vw, 26px);
    }

    .screenshot-card {
        display: grid;
        min-width: 0;
        align-content: start;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--home-line);
        border-radius: 18px;
        color: var(--home-ink);
        background: #fff;
        box-shadow: 0 10px 28px rgba(15,42,59,.055);
        font: inherit;
        text-align: start;
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
        cursor: zoom-in;
    }

    .screenshot-card[hidden] { display: none; }

    .screenshot-card:hover {
        transform: translateY(-3px);
        border-color: #c9ded9;
        box-shadow: 0 16px 34px rgba(15,42,59,.1);
    }

    .screenshot-thumbnail {
        display: block;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #f1f5f9;
    }

    .screenshot-thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transition: transform .35s ease;
    }

    .screenshot-open {
        position: relative;
        isolation: isolate;
    }

    .screenshot-open:focus-visible,
    .screenshot-lightbox button:focus-visible {
        outline: 3px solid #197d78;
        outline-offset: 3px;
    }

    .screenshot-open:hover img { transform: scale(1.035); }

    .screenshot-open-hint {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 7px;
        margin-inline-start: auto;
        padding: 5px 0;
        color: #197d78;
        font-size: .72rem;
        font-weight: 750;
        white-space: nowrap;
    }

    .screenshot-card-caption {
        display: flex;
        min-height: 66px;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        color: var(--home-ink);
        font-size: .95rem;
        font-weight: 800;
        line-height: 1.8;
    }

    .screenshot-card-caption strong { min-width: 0; flex: 1 1 auto; font-weight: 850; }

    .screenshot-card-number {
        display: grid;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        place-items: center;
        border-radius: 10px;
        color: #197d78;
        background: #edf7f5;
        font-size: .73rem;
        font-weight: 850;
    }

    .screenshots-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        margin-top: clamp(36px, 6vw, 72px);
        padding: clamp(24px, 4vw, 40px);
        border-radius: 20px;
        background: #f1f6f5;
    }

    .screenshots-cta h2 { margin: 0 0 6px; font-size: clamp(1.2rem, 2.4vw, 1.65rem); }
    .screenshots-cta p { margin: 0; font-size: .9rem; }
    .screenshots-cta .home-button { flex: 0 0 auto; }

    @media (max-width: 1100px) {
        .screenshots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }

    @media (max-width: 820px) {
        .screenshots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 480px) {
        .screenshots-grid { grid-template-columns: 1fr; gap: 16px; }
        .screenshots-filter { flex: 1 1 auto; }
        .screenshots-cta { align-items: stretch; flex-direction: column; }
        .screenshots-cta .home-button { width: 100%; }
    }

    @media (prefers-reduced-motion: reduce) {
        .screenshot-card,
        .screenshot-thumbnail img { transition: none; }
    }
}
