/* ################################################# */
/* WordPress documentation screenshots */
/* ################################################# */

/* Keep captured text at its original size, including on small screens. */
.wordpress-docs .wp-doc-shot {
    margin: 28px 0 32px;
    min-width: 0;
}

.wordpress-docs .wp-doc-shot-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--demo-line, #65513f);
    border-radius: 8px;
    background: #f0f0f1;
    scrollbar-width: thin;
    scrollbar-color: #c6c6ca #26221e;
}

.wordpress-docs .wp-doc-shot-scroll:focus-visible {
    outline: 2px solid var(--demo-accent);
    outline-offset: 4px;
}

.wordpress-docs .wp-doc-shot-scroll a {
    display: block;
    width: max-content;
}

.wordpress-docs .wp-doc-shot img {
    display: block;
    max-width: none;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    transform: none;
}

.wordpress-docs .wp-doc-shot figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--demo-muted);
}

/* Give subtopics the same clear spacing as the rest of the guide. */
.wordpress-docs .docs-content h3 {
    margin-top: 32px;
}
