.ios-guide .guide-screenshot {
    margin: 1.5rem 0;
}

.ios-guide .guide-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.ios-guide .guide-screenshot--phone {
    max-width: 22rem;
    margin-inline: auto;
}

.ios-guide .guide-screenshot--duo-portrait {
    max-width: 26rem;
    margin-inline: auto;
}

.ios-guide .guide-screenshot figcaption {
    margin-top: .5rem;
    color: var(--off-fg);
    font-size: .875rem;
    text-align: center;
}

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

.ios-guide .screenshot-gallery .guide-screenshot {
    width: 100%;
    margin: 0 auto;
}

/* Match the outer padding while preserving each complete Duo bezel. */
.ios-guide .duo-frame {
    display: block;
    padding: 1rem;
    background: rgb(39, 37, 36);
}

.ios-guide .duo-crop {
    position: relative;
    display: block;
    overflow: hidden;
}

.ios-guide .duo-crop img {
    position: absolute;
    max-width: none;
}

@container (max-width: 36rem) {
    .ios-guide .screenshot-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}
